does handler work for you the handler can post events to the main UI thread. You can process then in main UI thread and send messages to ui handler from ur asyntask
I am just guessing. if its just notifying user then handler should do the trick On Wed, Mar 10, 2010 at 8:23 AM, ailinykh <[email protected]> wrote: > It's not about notification. If session is expired I have to start > LoginActivity. As far as I understand NotificationManager > can't help here. > > Thank you, > Andrey > > On Mar 10, 12:29 am, Dianne Hackborn <[email protected]> wrote: > > 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]><android-developers%2Bunsubs > [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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- 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

