Thank kostya. You are helping me from long time.

But where should i set that flag FLAG_ACTIVITY_REORDER_TO_FRONT ?

I call
Intent intent = new Intent().setClass(context, A.class);
startActivity(intent);

Or

Intent intent = new Intent().setClass(context, B.class);
startActivity(intent);

to start Activity from options. Tell me where and how to pass that
floag.

On Nov 17, 5:25 pm, Kostya Vasilyev <[email protected]> wrote:
> There is a flag you can use for this, when launching A from B:
>
> http://developer.android.com/reference/android/content/Intent.html#FL...
>
> If A is already running, it will be brought to front.
>
> -- Kostya
>
> 17.11.2010 15:18, umakantpatil пишет:
>
>
>
>
>
>
>
>
>
> > 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.
>
> --
> Kostya Vasilyev -- WiFi Manager + pretty widget 
> --http://kmansoft.wordpress.com

-- 
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

Reply via email to