You should never start any activity outside of an existing activity. Thus to get a result, you need to be starting from an activity. If you want to inform the user of something going on from the background, you should use the notification manager.
On Tue, Mar 9, 2010 at 9:20 PM, ailinykh <[email protected]> wrote: > Hello, everybody! > I'm doing some network job in AsyncTask. Sometimes it requires > communication with user. (connection is dropped, session is expired > and so on). I want to pop up a dialog or launch an Activity, and then, > depending on user's input, stop the job or redo it. > I can launch any Activity from AsyncTask, but how to get result back? > It seems to be possible only if I launch new Activity from another > Activity. What are possible solutions? > > Thank you, > Andrey > > -- > 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

