intent_back.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); Peli www.openintents.org
On Jun 24, 5:51 am, tstanly <tsai.sta...@gmail.com> wrote: > hi all, > > in thehttp://developer.android.com/reference/android/content/Intent.html > there are constant "FLAG_ACTIVITY_CLEAR_TOP" > and setFlag method, > > but i use for: > Intent intent_back=new Intent(); > intent_back.setClass(favorit.this, demo.class); > intent_back.setFlags(FLAG_ACTIVITY_CLEAR_TOP); > > startActivity(intent_back); > favorit.this.finish(); > > setFlag is error, > how to use the constant in the class?? > thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---