According to Android behavior when user takes an app to background by pressing home button, on launcher icon tap the app will resume from where it went to background. I want a different behavior in my app, i want to relaunch the launcher activity whenever user taps on the launcher icon, no matter the app is in background or not. Any suggestions?
Asked
Active
Viewed 893 times
0
-
Why do you want this behaviour, maybe you should try to handle the relaunch. – A.S. Jun 29 '15 at 08:40
-
Override the `onResume()` method in your activities, to close all the running activities and launch the launcher activity. – Prerak Sola Jun 29 '15 at 08:40
-
See http://stackoverflow.com/a/5540250/3697191 – chiragjn Jun 29 '15 at 08:40