Re-launch app on application launcher icon tap

961 Views Asked by At

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?

1

There are 1 best solutions below

0
Meenal On

just set this in your launcher activity

android:clearTaskOnLaunch="true"