Using updateAppWidgetOptions method of AppWidgetManager to store per-widget customization options

Viewed 944

I have three questions about App Widget Options:

1) If I want to add an option value to the options of an app widget, I should always first retrieve the widget options with getAppWidgetOptions(int) and then manipulate the Bundle, otherwise when I call updateAppWidgetOptions(int appWidgetId, Bundle options) I overwrite other existing options, right?

2) Do this options survive a reboot? I.e., if I store some informations related to a widget within a configuration activity, am I sure I'll ever find them even after a reboot? Does the system automagically persist them somewhere?

3) Is this faster than storing widget options in shared preferences?

2 Answers
Related