(i think that the implementation of onNewIntent is the only place where you 
can reliably call 'setIntent')
 
I tried it, too, changing the intent like this, but was unsuccessful.
 
What i did instead: 
Set the launch-mode of the activity to at least singleTop (i.e. the 
activity's current instance will be re-used and onNewIntent will be called 
by the system).
Then let the activity start itself (call *this.startActivity(...)* with an 
Intent that will resolve to the same activity), with data in the Intent that 
has updated/removed/new data/extras. It is like a 'refresh' of the activity. 
This will cause the system to call *onNewIntent* on *'this'* activity with 
the new intent. Don't forget to call setIntent(..) in the implemenation of 
onNewIntent.
 
This worked reliably for me.
 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to