[英]Android - Launch Intent as new app
Is it possible to launch an Intent as a new application?是否可以将 Intent 作为新应用程序启动?
Wanted behaviour:通缉行为:
Thanks谢谢
I am not sure as I've never used it, but I guess you could use the intent flag FLAG_ACTIVITY_NEW_TASK for this.我不确定,因为我从未使用过它,但我想您可以为此使用意图标志 FLAG_ACTIVITY_NEW_TASK。
Intent intent = your intent;
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
See http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK for more info.有关详细信息,请参阅http://developer.android.com/reference/android/content/Intent.html#FLAG_ACTIVITY_NEW_TASK 。
Cheers干杯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.