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?

Thnaks

--



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. [WTS] Droid 2

Dear all members,

Want To Sell Droid 2 kondisi 80%, kelengkapan Hape plus charger nya
ajah ^_^

Udah ada nomor smart dengan paket internet unlimited ;)

Harga nya yang terbaik diatas 3,3 juta

Terima kasih momod untuk b/w nya

--

-- 
===============
"

2. Problem with the new SDK r08 on linux

Hello Guys,

I have downloaded the new release of SDK: r08 and wanting to get run
on my vmware-image: ubuntu 10.10 x64.

My Problem is now, that I can not execute some binares, for example in
the new folder: "platform-tools/adb" or "/tools/emulator".

Bash always says: "bash: ./adb: No such file or directory"

even though ./adb exists?!

Some other executables like "/tools/android" or "/tools/ddms" are
working fine...

Does anybody have the same problem?

Do I perhaps need to install a special libary to get this executable
runnable?


Greetz
Dudero


-- 

3. review froyo official di galaxy 5

4. Annoyed by not having any information on my users!

5. Need for speed shift dari samsung apps utk gtab gak bisa download

6. ddms problem ping emulator standalone? unable to set gps geo fix

7. High resolution icon require to make my app not "Mature" - What the heck?