postheadericon Image Gallery Widget Example in Android



postheadericon GridView Example in Android




postheadericon Switch Example in Android



postheadericon RatingBar example in Android




postheadericon ToggleButton example in Android



postheadericon How to set text style for TextView using Typeface in Android



postheadericon How to access Resource String in Android



MainActivity.java

package com.example.r_stringdemo;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;


public class MainActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

String nm=getApplicationContext().getString(R.string.un);
if(nm.equals("bipin"))
{
Toast.makeText(getApplicationContext(), "True", Toast.LENGTH_LONG).show();
}
}
}

postheadericon Simple ListView Example in Android



Follow by Email

Total Pageviews

© BipinRupadiya.com. Powered by Blogger.