问题
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
回答1:
Add android:excludeFromRecents="true"
to any <activity>
element in the manifest for any activity that should not appear in the recent tasks list.
来源:https://stackoverflow.com/questions/9645159/hide-android-application-in-long-press-home-button-menu