Update language in Widget

by Ricardo A . S谩 » Fri, 26 Mar 2010 19:59:51 GMT

Sponsored Links
 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?



Update language in Widget

by Mark Murphy » Fri, 26 Mar 2010 20:08:02 GMT


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 


Sponsored Links

Other Threads

1. Android Maket Place Apps


Android Market Place and Google Maps are not both the open
applications now. How we do we get these applications to products
then? Do we need to have any formal communication with Google?

Also is there a documentation on how the interaction works between
Android Market Place on product and server to discover new
applications, get the apk files for installation etc?


2. Android Market :: Free application gets to top of pile on new release, paid app doesn't?

It never used to be like that though - when you uploaded two of them, you'd
see both of the right at the top of the column.  Didn't have to do with

2009/7/7 Cdric Berger <cedric.berge...@gmail.com>


3. Getting the email address of the Google Account tied to the handset

4. Application gets killed due to a timeout

5. why MotionEvent.ACTION_DOWN doesn't fire in onTouchEvent?

6. getting android to assimilate wanted programs

7. Error while application signing