Jiang wrote: > I start a new activity with the following statements: > > Intnet intent = new Intent(this, NewActivity.class); > intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | > Intent.FLAG_ACTIVITY_MULTIPLE_TASK | > Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); > startActivity(intent); > > After the new activity is launched, I press HOME key for about 3 > seconds, and I see the a dialog with messages "No recent applications". > > why my application is disappeared?
You included FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS in your flags. The dialog shows "recents". Your flag says you do not want to be put in the "recents" list. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to *Advanced* Android Development_ Version 1.6 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en