Android: How to call ListActivity methods for class that extends MapActivity?

view story

http://stackoverflow.com – I am trying to create a class that uses both a ListView and MapView. I originally wrote the class to extend ListActivity. However, I later found out that I would need to extend MapView and then reference the ListView if I wanted to combine the two. So, this is how is is now declared: public class MapListActivity extends MapActivity { Next I figured I needed a way to get at the ListView so I wrote this: //instance vars ListView listView; //get ref to listview listView = (ListView) findViewById(android.R.id.list); In line with the old code I added: listView.setListAdapter(adapter); (HowTos)