[android-developers] Re: How to get result from Activity

2010-03-11 Thread Bob Kerns
Why not? Post a notification, give it a PendingIntent pointing to your login activity: Intent intent = new Intent(this, MyLoginActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); PendingIntent pintent = PendingIntent.getActivity(getApplicationContext(), 0,

[android-developers] Re: How to get result from Activity

2010-03-10 Thread ailinykh
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 hack...@android.com wrote: You should never start any activity outside of an existing activity.  

Re: [android-developers] Re: How to get result from Activity

2010-03-10 Thread social hub
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