android - All activities are closing on home button press -


thank taking time help.

i have created android application thats starts splash screen, depending if user logged in, application opens either login or main activity.

when user presses home button , click's application icon application resume @ last activity user @ (for example login screen).

this works fine when apk installed onto device via android studio, if try install apk manually (the exact same apk), every time press home button , reopen application acts if killed , started application (the splash screen starts again).

any idea why happening?

thanks

add following line manifest in launching activity means 1st activity

  android:launchmode="singletask" android:cleartaskonlaunch="true" 

on other activities add:

  android:finishontasklaunch="true" 

Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -