Http://blog.school51.com/show_diary.asp? Uid = 84890 & logid = 622777
Solution:
In the activity corresponding to androidmanifest. XML, find "Android: excludefromrecents", change the value to false, or directly remove the item.
E.g.
Androidmanifest. xml<Activity Android: icon = "@ drawable/ic_launcher_fmradio" Android: Name = ". fmradio "Android: Label =" @ string/app_name "Android: taskaffinity =" "Android: launchmode =" singletop "Android: screenorientation =" portrait "> <! -- Android: excludefromrecents = "true"
--> <Intent-filter> <action Android: Name = "android. intent. action. main "/> <category Android: Name =" android. intent. category. launcher "/> </intent-filter> <action Android: Name =" com. quicinc. fmradio. fmradio_activity "/> <category Android: Name =" android. intent. category. default "/> </intent-filter> </activity>
Develop reference
android:excludeFromRecents
Whether or not the task initiated by this activity shocould be excluded from the list of recently used applications ("Recent apps "). that is, when this activity is the root activity of a new task, this attribute determines whether the task shocould not appear in
The list of recent apps ."
true
"If the task shocould be
ExcludedFrom the list ;"
false
"If it shoshould be
Included. The default value is"
false
".
======================================
On the contrary, you can add Android: excludefromrecents = "true" if you do not need to add any activity in the APK.