Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide Android application from task switcher

Tags:

android

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.

like image 984
user2164194 Avatar asked Aug 29 '13 18:08

user2164194


People also ask

What does it mean to hide app in app switcher?

It is called Screen Security and you can use this to prevent the Signal screen from showing up in the app switcher on your phone and also prevents any screenshots of conversation being taken in case your phone ends up in someone else's hands.

Can you hide an installed app on Android?

Open the App Drawer (the page that shows all your apps) by swiping up from the bottom of the screen. Tap the three dots in the top right corner, then select Settings. Select Hide Apps from the menu that appears. You'll see a list of all your app appear, go through and select the ones you want to hide.


1 Answers

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

like image 150
An SO User Avatar answered Oct 02 '22 20:10

An SO User