Kevin Well-Known Member Licensed User Longtime User May 2, 2012 #1 Sorry if this has been answered but my searches came up with nothing. Is there a way to prevent an app from appearing in the recent tasks list (such as when you hold down the Home button)?
Sorry if this has been answered but my searches came up with nothing. Is there a way to prevent an app from appearing in the recent tasks list (such as when you hold down the Home button)?
Kevin Well-Known Member Licensed User Longtime User May 2, 2012 #2 I often forget that many things can be answered by googling for non-B4A specific Android programming info..... To answer my own question in case it helps others, I found the following answer. I haven't tried it yet but I'm sure it should work. Add android:excludeFromRecents="true" to any <activity> element in the manifest for any activity that should not appear in the recent tasks list. Click to expand... Should be easy to do with the manifest editor. :sign0060: Upvote 0
I often forget that many things can be answered by googling for non-B4A specific Android programming info..... To answer my own question in case it helps others, I found the following answer. I haven't tried it yet but I'm sure it should work. Add android:excludeFromRecents="true" to any <activity> element in the manifest for any activity that should not appear in the recent tasks list. Click to expand... Should be easy to do with the manifest editor. :sign0060:
NJDude Expert Licensed User Longtime User May 2, 2012 #3 This should be the line in the AndroidManifest to be added using the Manifest editor: B4X: SetActivityAttribute(Main, "android:excludeFromRecents", "true") Upvote 0
This should be the line in the AndroidManifest to be added using the Manifest editor: B4X: SetActivityAttribute(Main, "android:excludeFromRecents", "true")