Reputation: 7086
I have an app that does not show when I try to resume it from the RecentApps button. This problem only occurs when there is only one app in the list of recent apps. I cannot replicate the issue if there are other apps in the list.
Here is how I navigate to my activities:
Activity_A (Main and Launcher, noHistory=true)
||
\/
Activity_B (noHistory=true)
||
\/
Activity_Main
Activity_Main
is where I press back button. I catch the onBackPressed()
and do some processing in a separate thread. If successful, I call super.onBackPressed()
to exit the app else nothing happens.
I am running on Android Lollipop (v5.1.1). Am I missing something? Probably an Android bug? I can provide source code if needed.
Thanks and keep safe everyone!
Upvotes: 1
Views: 63
Reputation: 439
If you have this line:
android:excludeFromRecents="true"
in your AndroidManifest.xml
then try to remove it or set it to false and let me know if it helps.
Upvotes: 2