Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK fla

Posted 黄立柳

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK fla相关的知识,希望对你有一定的参考价值。

安卓出现如下错误,需要增加FLAG_ACTIVITY_NEW_TASK标志

Intent intent1 = new Intent(getApplicationContext(), CameraActivity.class);
intent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
startActivity(intent1);

  

以上是关于Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK fla的主要内容,如果未能解决你的问题,请参考以下文章

UVa 247 - Calling Circles(Floyd求有向图的传递闭包)

如何获取调用方法的类?

Home / Python MySQL Tutorial / Calling MySQL Stored Procedures in Python Calling MySQL Stored Proced

JAXB - Calling marshal

function calling convention

markdown 함수호출규약(Calling Convention)