6

I have application which I would like to hide from list of running processes (the 'recent' selector on Android 4.x). How can I accomplish that? I'd be grateful if anybody could point me to resources or overall architecture of the matter?

I'm fairly new to android so it took me some time to learn that selector window is called 'recent'. (also having difficulties navigating source code on grepcode and distinguishin between manufacturer originated processes/activities and the ones included in android main release).

I have vague understanding that the individual running elements are called tasks, but not sure how tasks and apk's / activities / services relate. There must be piece of code somewhere that selects whether a given process can be switched to, and represented in task manager.

I'd expect that rooting is required, or some manufacturer granted capability.

user2164194
  • 459
  • 5
  • 5

1 Answers1

11

Just add this to your manifest:

<activity android:name="qualified.name.of.Activity" android:excludeFromRecents="true" ...>  

More on that here: http://developer.android.com/guide/topics/manifest/activity-element.html

An SO User
  • 24,612
  • 35
  • 133
  • 221
  • 1
    Aaand now a duplicate answer :) – Andrew G Aug 29 '13 at 18:24
  • Thanks! However, I was suspecting that there's more to it. And now saw it myself: on my Android 2.3.4 (Samsung) there is additionally a 'task manager' in Recent apps popup, seemingly com.sec.android.app.controlpanel. My application still shows up there, as a task. Any idea if it can be removed from there? – user2164194 Aug 30 '13 at 06:45