Monday, April 14, 2014

How to exclude activity from recent application list on Android

To forbidden your activity in the recent application list, just define this parameter in AndroidManifest.xml for the activity:

android:excludeFromRecents="true"

for example:
        <activity
            android:name="com.test.MainActivity"
            android:noHistory="true"
            android:screenOrientation="portrait"
            android:excludeFromRecents="true"
            android:label="@string/app_name">
            ......
         </activity>

No comments:

Post a Comment

Thrift fails on Windows - thrift failed error: The command line is too long.

Meet a thrift compiling failure on my project on Windows 7. Using Maven in IntelliJ so I choiced maven-thrift-pluging for thrift files. For ...