a.p.
a.p.

Reputation: 3288

Android: How to pass a value from an AppWidgetProvider to a service?

I would like to pass a value from the AppWidgetProvider to a service. How can I do that? This value is taken from the widget configuration. If this value changes (by going to the configuration again), how do I pass it back to the service? Is there another way to do this?

Thanks

Upvotes: 0

Views: 400

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

How can I do that?

Call startService() and package your value as an extra on the Intent.

Upvotes: 1

Related Questions