Tasks have nothing to do with threads and processes. Be sure you read this overview:
http://developer.android.com/guide/topics/fundamentals.html You need to use NEW_TASK because you are not starting the activity from an existing activity, and thus you are not starting it from an existing task. On Tue, Jun 23, 2009 at 5:31 AM, ani <[email protected]> wrote: > > Guys, > > I was under the impression that onRecieve runs in the main UI thread > and we can launch an activity in onRecieve without setting the flag as > new task.Why do we need to create a new task and launch the activity > there.Why cant the activtiy launch in the task in which main UI thread > is running? > > regards, > ani > > > > -- 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 -~----------~----~----~----~------~----~------~--~---

