Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My App Screen Appears in Browsers

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.

my app in opera and firefox

like image 694
Ma7moud El-Naggar Avatar asked Oct 08 '15 11:10

Ma7moud El-Naggar


1 Answers

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.

like image 107
tynn Avatar answered Oct 16 '22 17:10

tynn