-1
package xx.xx.xx

public class Mappingactivity extends MapActivity{

}

public class Listactivity extends ListActivity{

}

how to call the Listactivity inside Mappingactivity? coz im trying to get the map view and the list view on the same activity. or else is there any other way?

thank you

Loshi
  • 221
  • 1
  • 5
  • 19

2 Answers2

0

Don't call another class(Activity)

you just add ListView and MapView in layout file.and extends MapActivity.

Create object of ListView.and setAdapter to it.Its not compulsory if you want to show listview then must extend ListActivity.

See here

Community
  • 1
  • 1
Samir Mangroliya
  • 39,918
  • 16
  • 117
  • 134
0

You can make another class for the listactivity and then import it in this one.Then you will be able to use it all over the activity. Use :
import xx.xx.xx.listactivity

Whatever name you gave to the class.

Adam
  • 418
  • 4
  • 14