My App Screen Appears in Browsers

99封情书 提交于 2019-12-08 17:30:48

问题


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.


回答1:


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.

See android:launchMode for its complete documentation.



来源:https://stackoverflow.com/questions/33014389/my-app-screen-appears-in-browsers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!