Ricardo A. Sá wrote: > I have a widgett that supports for many languages, but if the user > change the language in Settings, my widget don't update.. Only works, if > I close it and open again, or rebook the handset.. > Someone have any suggestion for me to solve this?
I suspect that there is no automatic answer. Android applications can find out about language changes via onConfigurationChanged() (in Activity or Service) or the ACTION_CONFIGURATION_CHANGED broadcast Intent. That Intent, though, must be registered via registerReceiver() from a running component, making it less than useful. Since you (hopefully) do not have a Service running all the time in support of the app widget, the app widget itself cannot use any of these. You might wish to file a feature request on http://b.android.com -- I would think that app widgets should be notified of configuration changes, somehow, to handle your situation. Beyond that, you could add a "refresh" button to the widget, or otherwise allow them to tap something that, among other things, will pick up the new language. And, if you are lucky, somebody else will have a better idea... -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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 To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

