I need some help understanding how this works. I have an app widget that extends an AppWidgetProvider to create an application widget.
I would like the application widget to be idle until an activity in my app runs; actually when a service in my app is started. Once that service is started, I need to "wake up" the application widget and communicate with it (i.e. tell it things to display). So I see that AppWidgetProvider simply extends BroadcastReceiver -- so does that mean: 1. I need to call registerReceiver in my service and tell it to filter for certain kinds of events? 2. Can I even do #1, or will an AppWidgetProvider *only* accept ACTION_APPWIDGET_* intents? 3. If #2 is correct, how can I communicate or "wake up" / trigger the application widget? 4. Can I send events to my app widget using sendBroadcast( intent )? Then, my app widget has some buttons on it, I need to send an intent back to the application (or service). I see you can do that with PendingIntents, but if i send the different intents it to the same Activity, it seems to re-use the first created pending intent. tia. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

