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. Package tracker

Fungsinya apa pak?

Regards. Adri

- sent from my google powered device #Android -




Latest version, td iseng coba beli di market. Udah gitu coba belajar backup
sekalian. Lumayan, udah belajar jd preman terminal....

_____
sent via N1

-- 
"Indonesian Android Community [id-android]"

2. Search Market by Publisher Name

This link describes how to search the Android Market for apps using
various parameters:

http://developer.android.com/guide/publishing/publishing.html

I'm having a heck of a time figuring out how to format a link for my
apps published by my company using this format. For searching by
developer name, the doc says to use the following format:

market://search?q=pub:<Developer Name>

It also says it returns exact matches only. My publisher name is
"Polyclef Software".

I guess I'm wondering why Google can't make a market search feature
that searches for substrings in the publisher's name, but aside from
that, how am I supposed to format the link? Neither of the following
work:

market://search?q=pub:Polyclef Software
market://search?q=pub:Polyclef+Software

I've tried a number of variations now and nothing works. Any ideas?

-- 

3. Kloteran Nexus Mugen 1600mAH

4. Broadcast/notify/messege when app is launched

5. Broadcast/notify/messege when app is launched

6. passing touch events from one Gallery widget to another widget

7. passing touch events from one Gallery widget to another widget