android - How to handle only one instance of Activity launched from URL -


my app started customized url schema, built in intent filter documentation datascheme = "mobilepos", datahost = "payment".

app starts correctly , receives data url, in cases (example if press button) when go url, android creates new instance of activity.

which best way use launch mode (standard/singletop/singletask/singletask) have every time 1 instance of activity?

update workaround set launchmode = singletask , overriding onbackpressed call movetasktoback(true). way back/home button pressed sets app in background , oncreate never called when app relaunched.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -