I'm launching an activity from a service and want it to appear in the recent apps list.
However, I want the activity to be removed from the recent apps list if I exit the application (e.g. press button on activity's UI which calls finish()).
Excluding the activity from the recent apps list with android:excludeFromRecents="true"
does not give me the initial activity behaviour that I require, i.e. the activity appearing in the recent apps list.
Is this possible?
Large thumbnails of recently used apps display with each app's icon. To remove an app from the list, hold your finger down on the thumbnail for the app you want to remove until a popup menu displays. Touch “Remove from list” on that menu. NOTE: Notice the “App info” option available on the popup menu.
Swipe down, settings, Advanced, double press home key, select the option for recent apps. So when you want to clear all the recently used apps, double press the home key, and then close all. Swipe down, settings, Advanced, double press home key, select the option for recent apps.
you can put whatever apps you want to hide on the same Home Screen(s) and hide that specific screen. tap + hold the Home Screen to enter “jiggle mode” then tap the dots at the bottom in the center; this opens the “edit pages” screen where you can put a check mark under the pages you want visible / hidden.
Use
android:excludeFromRecents="true"
for the activity in manifest file
android:excludeFromRecents
Whether or not the task initiated by this activity should be excluded from the list of recently used applications ("recent apps"). That is, when this activity is the root activity of a new task, this attribute determines whether the task should not appear in the list of recent apps. Set "true" if the task should be excluded from the list; set "false" if it should be included. The default value is "false".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With