Simple Problem With Intent Extras?

This is a known issue with PendingIntents; when Android compares PendingIntents it does not compare Intent extras, so you can't schedule the same basic Intent multiple times with only different extras. Right now, you can only solve this by making the Intent unique in some way other than extras, such as adding extra information to the Intent data There's a little bit of discussion of this on the Google Android Group: groups.google.com/group/android-develope....

This is a known issue with PendingIntents; when Android compares PendingIntents it does not compare Intent extras, so you can't schedule the same basic Intent multiple times with only different extras. Right now, you can only solve this by making the Intent unique in some way other than extras, such as adding extra information to the Intent data. There's a little bit of discussion of this on the Google Android Group: groups.google.com/group/android-develope....

Ah, that makes sense thanks for the clarification! I've tried using the setData() method (with just a plain old http url to google for testing purposes) to set the widget ID, but now the onReceive() method is never called. I'll have to keep tinkering with it, but thanks for the response!

– tonyc Dec 2 '09 at 3:55.

So in order to tell my method which widget to update, I'm adding an extra to the intent that is launched to change the data. This correctly stores the widget id, but when the change data method is called, the widget id that is read from the intent is the first widget instance. That is, there is is a for loop that generates all of the widgets and no matter what widget you tap, the widget id that is recieved is always the first widget id in the first widget.

Anyone have an idea on how to solve this?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions