Yes we can see your thread! FYI: when discussing AppWidgets, better to refer to them as AppWidgets rather than widgets to avoid confusion ;) A widget is any UI element, whether it is in an AppWidget or an App.
Concerning your problem: can you not simply apply the User-defined background image ID to all instances of your AppWidget? If not, then you need to put in place some means to link an AppWidget instance (i.e. its ID) to its corresponding User-defined background. E.g. you could also store the AppWidget ID in SharedPreferences. Also, from what I've seen when you add a new AppWidget, its ID is the last one in the array of AppWidget IDs - so you could get away with just applying the User-defined background to the last AppWidget ID from the array. On Oct 27, 5:52 am, Greg Mort <[email protected]> wrote: > New to this, just want to make sure this is viewable to people... can > someone at least tell me that? > > thanks > > > > On Tue, Oct 26, 2010 at 9:48 AM, Greg Mort <[email protected]> wrote: > > ? > > > On Mon, Oct 25, 2010 at 9:17 PM, morty346 <[email protected]> wrote: > > >> I have a issue that I have been struggling with for some time and its > >> becoming quite frustrating... > > >> I have an app that a user can modify the background image of a widget > >> in a configure activity. Once they select what image they want I save > >> a SharedPreferences file with the widgetsID and the value for the > >> image... however in the onEnabled of the WidgetProvider I do not know > >> the widget ID, so I can not do a look up of which image to use... > >> Since there can be multiple instances of this widget I do not know > >> which id goes with which onEnabled... > > >> any suggestions?- Hide quoted text - > > - Show quoted text - -- 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

