My application screen is displayed in the browser

I open the browser (opera or firefox) on Android and write my unplanning link to the address bar when I click the Go button in browsers, redirects me to My Application. As expected, but the problem is that the My Application application is displayed in the browser, for example, in Image How can I open my application and close the browser after that or not display the screen of my application on it.

my application in opera and firefox

+7
android firefox opera deep-linking
source share
1 answer

Your application launches into a browser task. Therefore you need to add

android:launchMode="singleTask" 

in the <activity> tag to make your application the root of your own task.

See android: launchMode for full documentation.

+5
source share

All Articles