On Thu, Mar 17, 2011 at 9:39 AM, Jake Colman <[email protected]> wrote: > It is a ListPreference so the value is coming from a string array. > According to what I have googled, an integer array cannot be used in > this instance to produce an integer value. You have to use a string > array and then convert it.
Yup, ListPreference only works with strings. > KV> You might work something out by subclassing Application, or by > KV> using a static, but I would recommend that your preference > KV> activity send a broadcast action to the widget provider, telling > KV> it to update the value. > > Damn. I thought it might be something like that. Ah well. I guess I > just have to fire another intent. Or simply update the alarm in the PreferenceActivity. Register your preference change listener in the PreferenceActivity, and if the user changes alarm-related settings, update the alarm. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android Training in London: http://bit.ly/smand1, http://bit.ly/smand2 -- 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

