On Sun, May 2, 2010 at 8:17 AM, Sebastián Treu <[email protected]>wrote:

> But then, when the user hits the back button, instead of returning to the
> last-in-foreground application, android returns to application A. So now,
> the launched application is on background. Why is this?
>

Because Activities are stacked by the application they belong to. So when
you press back, you go back in your current application's stack, not a
"global" stack.


> I have some questions about it:
>
> 1. when the Intent note was launched, did android finish the
> launched application?
>

What Intent note?


>  2. has the Intent context (in fact, the PendingIntent) has anything to do
> with this?
>

Not really.


>  3. Is there a way to make this behaviour turn in what I want?
>

Look into Task Affinity - I haven't used it myself, but based on what I've
seen around here, it may be what you want.

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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