如何使用自己的进程从浏览器打开Android应用程序?

时间:2014-01-03 09:15:56

标签: android android-intent

我曾尝试从html打开应用,但它会在浏览器任务中打开。我只想用自己的任务从html页面打开我的应用程序。

1 个答案:

答案 0 :(得分:0)

您可以使用“intent://”URL启动活动并指定Intent标志。例如:

intent://#Intent;package=my.package.app;component=my.package.app.MainActivity;launchFlags=268435456;end;

指定设置launchFlags=268435456

Intent.FLAG_ACTIVITY_NEW_TASK