how to use getListView() in Activity?
Whenever you use Activity you set your_layout.xml as your Activity‘s ContentView. So the ListView should b in your_layout.xml. That ListView should have an id attribute defined in xml file say: (android:id=”@+id/list”). You get your ListView object some thing like this way: setContentView(R.layout.your_layout); ListView list = (ListView)findViewById(R.id.list); list.addFooterView(view); And when you use ListActivity you get your … Read more