Archive

Archive for March, 2011

Directory/File Browser Example Application

March 25, 2011 Leave a comment

Here’s a sample that allows you to browse the file system on your Android. I found some sample code at http://www.linuxdevices.com/articles/AT6247038002.html and adapted it slightly.

Note that it extends ListActivity and the items in the list are are rendered using the layout file file_list_row.xml.

Here’s the code…
Read more…

Advertisements
Categories: Uncategorized

Passing Bundles Around Activities

March 25, 2011 Leave a comment

Herewith you will learn how to pass data from one Activity to Another activity.
The main Activity, will pass information to a sub-activity or second Activity. SecondaryActivity will allow you to alter that information and then return it to MainActivity. The bundle of information will be sent back and forth between the Activity objects via an Intent object.
Read more…

Categories: Uncategorized

Android ListView with CheckBox : Retain State

March 15, 2011 30 comments

I wish to create Custom ListView with CheckBox. I faced a problem to retain state of check box while scrolling. After searching a long for this , I came up with this solution.

I used Custom Cursor Adapter for this. I am attaching the code snippet for this.

Read more…

Categories: Uncategorized

How to implement Radio Button in Android

March 14, 2011 3 comments

Here is the step by step procedure to create radio button in android : –
In Android by using RadioGroup only we can use RadioButton. We can add any number of RadioButtons to a single RadioGroup. we can add any number of RadioGroup to a single Layout.
Read more…

Categories: Uncategorized

How to create Custom Alert Dialog in Android

March 14, 2011 Leave a comment
protected void showAlertDialog(String title, String message)
   {
   new AlertDialog.Builder(this)
      .setMessage(message)
      .setTitle(title)
      .setCancelable(true)
      .setNeutralButton(android.R.string.cancel,
         new DialogInterface.OnClickListener() {
         public void onClick(DialogInterface dialog, int whichButton){}
         })
      .show();
   }
showAlertDialog("Title", "Message will show here");
Categories: Uncategorized

How to implement Tabbar in Android

March 14, 2011 Leave a comment
Categories: Uncategorized

Develop Web Application in Android through HTML, JavaScript, JQuery and Android

March 8, 2011 Leave a comment
Categories: Uncategorized
%d bloggers like this: