Activity外部跳转页面,报错android.util.An

2019-11-10  本文已影响0人  周末不加班
android.util.AndroidRuntimeException: Calling startActivity() from outside of an Activity  context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
......
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
context.startActivity(intent);
上一篇 下一篇

猜你喜欢

热点阅读