Using an intent to start new activity from ListActivity
my ListActivity has a button on the bottom that I want to use to fire up a new activity using an intent. When I tried saying Intent intent = new Intent(this, OtherActivity.class)
I'm getting an error that the constructor is undefined. FWIW, the o开发者_C百科ther activity extends MapActivity. Not sure if that matters...
What do I need to do to get this to work?
Intent intent = new Intent(NameOfYourListActivity.this, OtherActivity.class)
精彩评论