1
如何通过活动的指定类名启动android活动?通过类名启动android活动
如何通过活动的指定类名启动android活动?通过类名启动android活动
从您的基本活动(比如,通过选项菜单中点击):
public boolean onOptionsItemSelected(MenuItem item)
{
Intent intent = new Intent (this, NewActivity.class);
startActivityForResult (intent, SOME_ACTIVITY_ID);
}
希望帮助!
不要忘记将活动类名添加到清单文件中。 – Whaledawg 2009-10-05 20:21:10