To close 2 when going from 3 to 1, use the CLEAR_TOP flag in startActivity(). To "kill the variables", just set them to null in the activity's onDestroy.
2009/6/23 tstanly <[email protected]> > > by the way, > not only close the 2, > but i want to kill the variables in the 2, > > thanks! > > On 6月23日, 下午5時25分, tstanly <[email protected]> wrote: > > hi all, > > > > i have a app,the structure composed three .java, > > 1.java,2.java,3.java > > > > their relationship is: > > 1->2->3 > > and 3 can go back to 1 > > > > when i was back to 1 from 3, > > i want to close the 2, > > > > how to do this? > > thanks!! > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

