Android Basics – Learn how to use a ListActivity to display and manage a List of Items

 

In the last Post you got familiar with using a ListView to display a list of items which came from a static String Array.

You can also accomplish the same using a ListActivity.

Why use ListActivity ?

A ListActivity class is quite useful as you don’t need to create a Layout file.

You have the option to create your own Layout file, but it’s not mandatory.

Also you don’t need to create an Event Listener. In order to use the ListActivity you will need to extend this class.

public class ScrollingActivity extends ListActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

}

Follow the Video in which I will guide you to create a new ListActivity to display the items.

Source Code is available here

Author: codesmartly

I am Enthusiastic about Learning new things and sharing my Knowledge. I like programming and have a pretty good background in Computer Science.

One thought on “Android Basics – Learn how to use a ListActivity to display and manage a List of Items”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s