06 2013 档案

摘要:使用Intent时intent =new Intent(getApplicationContext(),Register.class);时报错calling startActivity() from ourside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag改为intent =new Intent(this,Register.class);后。可以正常跳转。Context中有一个startActivity方法,Activity继承自Context,重载了startActivity方法。如果使用 Activity 阅读全文
posted @ 2013-06-13 16:31 qinyan 阅读(94) 评论(0) 推荐(0)