Android appWidget multiple instances
This question is pretty much a duplicate of Android - Multiple appWidgets playing different sounds , but my code isn't working. I am adding an intent extra with the widget id, with log statements to prove it, but whenever I click on one of my widgets when there are multiple instances of it, I only get the last appWidgetId. It looks like the intent of the first widget is changing after the second one is added. If the code in that other post should work, then I must be overlooking something because I believe mine is set up pretty much the same way. public class PhcaAppWidgetProvider extends