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
Post a Comment