25.01.2011 22:00, Wall-E пишет:
"does
'MyApplication.class' refer to your main activity, or to your
application class?"
The MyApplication.class refers to my application class. My app has
multiple activities so which activity do I use because I want it to
load or restore whichever activity the user left.
I don't think this is going to work - in fact, you are seeing it not
work, if I understood your original message correctly.
FYI - launching an activity from a notification always starts it in a
new task - even if you don't set FLAG_ACTIVITY_NEW_TASK in your intent,
it's automatically added by the framework and you get a logcat warning.
Perhaps you could figure out the most appropriate activity at the time
when you set the notification, and use an intent specific to that
activity, taking the user directly to where he can see or work with the
information that caused the notification.
--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com
--
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