> 1) if there are multiple instances of the same widget how to
> differentiate each (so that the content could be different) eg. world
> clock: same clock widget for different countries on diffferent
> screen.

You can find information for each of your widgets that are inserted by
calling AppWidgetManager.getAppWidgetIds(), and then
getAppWidgetInfo() if needed.  Inside your app, such as during a
configuration step, you can store any configuration details using that
unique appWidgetId.  You can use any data storage approach you'd like
(ContentProvider, SharedPreferences, etc.).

Then, when building a widget update, you can compare your stored
settings against the appWidgetId you're updating to generate the
update correctly.


-- 
Jeff Sharkey
[email protected]

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to