Prevent app from appearing in recent tasks list

Kevin

Well-Known Member
Licensed User
Longtime User
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
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.

Should be easy to do with the manifest editor. :sign0060:
 
Upvote 0
Top