It just like tab views. When we open app. First tab is activity is created, when we click second tab then that acitvity is created. But if we click again on first tab. It just shows in same state as it was looking. does not reload the Activity or create new instances.
Just want to do same thing on menu options.. On Nov 17, 5:18 pm, umakantpatil <[email protected]> wrote: > Hi, > > I have been in problem of the Activity life-cycle. All though i read > lots of docs on it put on getting clear picture on it. > > I have Activity A. In that activity I have menu options. If we click > any option it opens the respective activity like > if i click on 2nd button it opens Activity B > Now again Activity B has same options into it. When user clicks on 1st > button then i need to go back to activity A. > So using this. > Intent intent = new Intent().setClass(context, Articles.class); > startActivity(intent); > So always it starts new instance of activity and fetch data from DB. I > want something like > Activity A can be resumed back as it was. -- 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

