i'm seeing some weirdness and just wanted to confirm my 
understanding/theories about intents and activity lifetimes.

i have a broadcast receiver which signs up to get phone state 
notifications. when the phone rings, i construct a new intent, put 
the phone details in its extras, set its NEW_TASK flag, and start 
another activity. this activity checks its intent in onResume() and 
then puts up some appropriate UI.

the specific problem i'm seeing is that when i call getIntent() in 
the second activity, i always seem to get the one that it was created 
with, rather than a "new" one - ie if the phone rings the second 
time, i still have the first intent. i overrode onNewIntent(), but it 
didn't get called, though i understand this is only in the SINGLE_TOP 
case.

IIUC, if an extant activity is restarted with a different intent, 
then getIntent() in onResume() should return the new one.... right?

thanks for any help with this.
-- 
jason.software.particle

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to