Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide android application in long-press-HOME-button-menu

I want to hide my android app from (and only from) the menu that appears when long holding the HOME-button after it is finished. Is there a way to do that? Calling finish() programatically dont do the trick.

There are many threads about hiding an app from the launcher and taskmanager, but this is not what I want, I simply dont want it to show up in this "app history".

best regards Sebastian

like image 771
Sebastian Avatar asked Dec 27 '22 04:12

Sebastian


1 Answers

Add android:excludeFromRecents="true" to any <activity> element in the manifest for any activity that should not appear in the recent tasks list.

like image 97
CommonsWare Avatar answered Dec 29 '22 19:12

CommonsWare