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
One thought on “Android Basics – Learn how to use a ListActivity to display and manage a List of Items”