我的应用程序屏幕会出现在浏览器 [英] My App Screen Appears in Browsers

查看:201
本文介绍了我的应用程序屏幕会出现在浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android浏览器打开(歌剧或Firefox)和写我的地址栏上的深层链接
当我美元的浏览器p $ PSS Go按钮,它重定向我到我的应用程序如预期
但问题是在浏览器出现在我的应用程式,例如在图像
我怎样可以打开我的应用程序,之后关闭浏览器或使其无法在它显示我的应用程序的屏幕。

I open browser (opera or firefox ) on Android and write my deeplink on address bar when I press Go button on Browsers ,It redirect me to My app As expected but the problem is My app appears on Browser like in Image How I can open my app and close the browser after that or make it not display my app screen on it.

推荐答案

您的应用程序启动到浏览器的任务。所以,你必须添加

Your app is launched into the browser task. So you have to add

android:launchMode="singleTask"

你的<活动方式> 标签来使你的应用程序自身的任务根

to your <activity> tag to make your app the root of its own task.

请参阅android:launchMode其完整的文档。

这篇关于我的应用程序屏幕会出现在浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆