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?
只需在启动器活动中进行设置
android:clearTaskOnLaunch="true"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.