Both your previous question and your current question show that you
did not pay enough attention to learning the fundamentals of Android
before you started coding. You must not only read, but study
http://developer.android.com/guide/topics/fundamentals.html especially
the section on Component Lifecycles, 
http://developer.android.com/guide/topics/fundamentals.html#lcycles

For the answer is the same: you do not do this, you let the system do
it for you. Now the system generally will do this for you when you
send an Intent from the one Activity to the other, but it is still the
system that makes the final decision. And you have to do the right
thing in all your lifecycle-related callbacks for this to work.

On Sep 8, 8:03 am, Ajmer singh <[email protected]> wrote:
> Thanks for your reply
>
> I have another question regarding that, How can i put the already running
> activity in the background to the foreground,
> For example : if i have started Activity A then i started other Activity B
> Then Activity A should be sent to background Then how can i bring back
> Activity A to foreground(With using the Back button).
>
> On Wed, Sep 8, 2010 at 8:08 PM, viktor <[email protected]> wrote:
> > Yahel is right, it is very dangerous.
>
> > But you can try doing it with broadcast, and listen it in activities
> > which you want to close.
>
> > If you did, look at device CPU status. Maybe your devise is down!!!
>
> > Or another way is saving your own activity stack, and consequentially
> > finish.
>
> > --
> > 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]<android-developers%2Bunsubs 
> > [email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-developers?hl=en
>
> --
> *Thanks and Regards
> Ajmer Singh*

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