Android

Programs and news related with Google’s Android Mobile Operating System

Access an activity using explicit intents in Android

June 22, 2012
By
Explicit Intent in action

In simple terms an intent is an object used to access a component from an activity. The component can be an activity or a service or a broadcast receiver. We can classify intents into two category such as explicit intents and implicit intents. In the case of explicit intent, the target component is accessed...

Read more »

Implementing CheckAll and UncheckAll for a listview in Android

June 21, 2012
By
Implementing CheckAll and UncheckAll for a listview in Android

In this article we are implementing the operations “CheckAll” and “UncheckAll”  for a listview in Android 1. Create an Android project named ListViewCheckAll 2.Select build target for this application 3. Enter application details 4. Open and update the file res/values/strings.xml with the given below code 5. Open and update the file res/layout/main.xml with the...

Read more »

Deleting Selected Items from ListView in Android

June 21, 2012
By
Deleting Selected Items from ListView in Android

In this article, we will create an application in which users select the required items to be deleted and click on “Delete Selected Items” button for deleting them. Actually this article is an extension of the article Dynamically add items to ListView in Android, in which we have created an application to add user...

Read more »

Dynamically add items to listview in Android

June 20, 2012
By
Dynamically add items to listview in Android

In this article we are creating an application in which user inputs items to a ListView via an EditText widget. An extension to this article is available in the article titled “Deleting Selected Items from ListView in Android“,  where deleting a listview item is discussed. 1. Create an Android project namely “AddItemsDynamically” 2. Select...

Read more »

ListView with ListActivity in Android

June 20, 2012
By
ListView with ListActivity in Android

In this article, we are creating a listview widget using ListActivity. In this demo, we are not using any layoutfile instead we make use the default layout of the listview. 1. Create an Android project namely ListViewWithListActivity 2. Select a build target for this application   3. Enter application details 4. Open and edit...

Read more »

Opening an activity on a button click in Android

June 19, 2012
By
Opening an activity on a button click in Android

In this article, we will see , how to open an activity from the main activity by a button click. 1. Create a new Android Project namely OpenActivity 2. Select build target for the application 3. Enter application details 4. Open and update the file /res/values/strings.xml with the highlighted code given below 5. Create...

Read more »

ListView with Images and Text using Simple Adapter in Android

June 18, 2012
By
listview_with_images_and_text_featured

In this article we will create an android application with a listview which holds both text and images as listview items. An extension to this article is available in the article titled “Android ItemClickListener for a ListView with Images and Text“, where an item click event handler is added. For loading images and text...

Read more »

Event Listener for a ListView in Single Selection mode

June 15, 2012
By
listview_radiolistener_in_execution_featured

In this article we will create an event listener for listview in single selection mode ( Radio Button ) . 1. Create an Android project namely ListViewRadioListener 2. Select build target for this application 3. Enter application details 4. Open and update the file /res/layout/main.xml with the given below code 5. Open and update...

Read more »

Single Selection mode for ListView in Android

June 15, 2012
By
Single Selection mode for ListView in Android

In this application, we are creating a listview with single selection mode. That is only one item can be selected at a time. This is achieved by adding a radio button on each item in the listview. 1. Create an Android Project namely “ListViewRadio” 2. Select a build target for this application. For this...

Read more »

Event Listener for Checkboxes in ListView

June 14, 2012
By
Event Listener for Listview

In this article, we will see, how to write the code for handling the checkbox state changes in listview. If you want to use ToggleButton instead of checkboxes, please see the article titled “Enabling Multi Selection mode in ListView by adding ToggleButton using custom layout in Android“. 1. Create a new Android Project namely...

Read more »

Be friend at g+

Subscribe for Lastest Updates

FBFPowered by ®Google Feedburner