Android:excludeFromRecents控制在不在recent列表中显示。
true时不显示;false显示,默认。
运行如下activity后,不会显示在recent列表中。
<activity android:name="com.example.com.test.wgh.MainActivity" android:label="@string/app_name" android:excludeFromRecents="true">