9

On Ice Cream Sandwich the user can see a list of the recently used applications with a screenshot of the the last status of the UI. I'm working on an application that shows confidential information that should not be kept in memory in any way. Is there a way to disable that feature?

AakashM
  • 62,551
  • 17
  • 151
  • 186

2 Answers2

12

Have you tried adding android:excludeFromRecents="true" to the activity in your AndroidManifest.xml?

    <activity
        android:label="@string/your_app_name_goes_here"
        android:excludeFromRecents="true"
        android:name=".SomeActivityNameGoesHere" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
Jens
  • 16,853
  • 4
  • 55
  • 52
3

You can disable it by adding android:excludeFromRecents="true" to all activities in your AndroidManifest.xml application manifest. Make sure to add it to all of them: if you only add it to one or some, your app won't always be excluded from the list of recently used apps.

Brighid McDonnell
  • 4,293
  • 4
  • 36
  • 61
Vinay Patil
  • 189
  • 1
  • 6