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
阅读全文

浙公网安备 33010602011771号