Switch the language of all app dynamically!

by Stephen Le » Fri, 13 Mar 2009 01:42:40 GMT

Sponsored Links
 Hi all:

I must change en_US Locale into zh_CH dynamically(Like user choose
it). I writed a demo where the code is following:

public void onClick(View v){
     Resources resource=super.getResources();
     Configuration cf=resource.getConfiguration();
     DisplayMetrics dm =resource.getDisplayMetrics();
     resource.updateConfiguration(cf, dm);


}//the end of onClick block

The code works fine.But I think this is very heavy to android
developer so I have to change every activity . Is there anyone know
the quicky way to change language setting?Please tell me the detail
steps if you know. Thanks!

TIP: My enviroment: android-sdk-windows-1.0_r2+JDK 6


Switch the language of all app dynamically!

by MrSnowflake » Fri, 13 Mar 2009 03:54:00 GMT

 Try saving the locale some way, make your own implementation of
Application and change the locale in Application. Then when the users
wants a new locale, restart the activity/task.


Sponsored Links

Other Threads

1. OOT: WTI : HP Purchases Palm for $1.2 Billion

Hewlett Packard today announced that it is acquiring Palm for a cool 
$1.2 billion, or $5.70 per share of common stock. The acquisition has 
been approved by the boards of both Palm and HP, but is subject to 
regulatory approval. All of the regulatory wrangling is expected to be 
completed by the end of HP third quarter which ends July 31, 2010. 
Palm CEO John Rubinstein is expected to remain at the company in an 
undisclosed capacity. From the wording within the press release, it 
appears as if webOS may live on. Check out the full press release after 
the jump.

PALO ALTO, Calif. & SUNNYVALE, Calif. (BUSINESS WIRE) HP (NYSE: HPQ News) and Palm, Inc. (NASDAQ: PALM News) today announced that they have entered into a definitive agreement under which HP will purchase Palm, a provider of smartphones powered by the Palm webOS mobile operating system, at a price of $5.70 per share of Palm common stock in cash or an enterprise value of approximately $1.2 billion. The transaction has been approved by the HP and Palm boards of directors. The combination of HP global scale and financial strength with Palm unparalleled webOS platform will enhance HP ability to participate more aggressively in the fast-growing, highly profitable smartphone and connected mobile device markets. Palm unique webOS will allow HP to take advantage of features such as true multitasking and always up-to-date information sharing across applications. alm innovative operating system provides an ideal platform to expand HP mobility strategy and create a unique HP experience spanning multiple mobile connected devices,said Todd Bradley, executive vice president, Personal Systems Group, HP. nd, Palm possesses significant IP assets and has a highly skilled team. The smartphone market is large, profitable and rapidly growing, and companies that can provide an integrated device and experience command a higher share. Advances in mobility are offering significant opportunities, and HP intends to be a leader in this market. ee thrilled by HP vote of confidence in Palm technological leadership, which delivered Palm webOS and iconic products such as the Palm Pre. HP longstanding culture of innovation, scale and global operating resources make it the perfect partner to rapidly accelerate the growth of webOS,said Jon Rubinstein, chairman and chief executive officer, Palm. e look forward to working with HP to continue to deliver industry-leading mobile experiences to our customers and business partners. Under the terms of the merger agreement, Palm stockholders will receive $5.70 in cash for each share of Palm common stock that they hold at the closing of the merger. The merger consideration takes into account the updated guidance and other financial information being released by Palm this afternoon. The acquisition is subject to customary closing conditions, including the receipt of domestic and foreign regulatory approvals and the approval of Palm stockholders. The transaction is expected to close during HP third fiscal quarter ending July 31, 2010. Palm current chairman and CEO, Jon Rubinstein, is expected to remain with the company. -- Jus* || owner white google_one || HTCClay's CSDI_REMIX_SuperCSDI_X10 v1 ^update 12/April/2010 -- "Indonesian Android Community [id-android]"

2. Does any boby know how can control multitouch ???

Actually I do not want to use multitouch..
but i do not know how can i control multi touch...


3. Generate timer tick

4. Handset android tanpa koneksi internet ?

5. Service to Observe Contacts Addition and notify with the Application id through which contacts have been added or modified

6. Frame by Frame Animation using java not happening

7. scroll-ball selection