Do you really want this to be deep in your app?  If you want finishing to go
back to the launcher, it sounds like this should be done as a separate task
than the main app task.  If that is the case, don't use special Intent
flags, just set android:taskAffinity="" for this activity.  (Or give it a
scoped name for the affinity if multiple activities are going to
inter-operate in the same task.)

On Fri, Dec 31, 2010 at 10:26 PM, Zsolt Vasvari <[email protected]> wrote:

> This is part of my ongoing effort to tidy up my AppWidget code:
>
> When a user clicks on my Widget, it goes to an Activity "deep" in my
> app.  When the user finishes this activity, I'd like to exit back to
> the Launcher as opposed to whatever the last Activity on the stack is
> for my app.
>
> Is there an Intent flag I am not using correctly?  I tried all the
> ones I could see to be relevant, but nothing worked.  I know I could
> probably pass result codes back up the stack to wind down my app, but
> that's some ugly stuff.  Is there an easier way?
>
> Happy New Year everyone!
>
> --
> 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%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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