开发者

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜