Activity display new locale words without restart?

Put your problem here if it does not fit any of the other categories.

Activity display new locale words without restart?

Postby StephenLe » Fri Mar 13, 2009 10:59 am

Hi all:
now, I can change the locale dynamically
According to this article:https://groups.google.com/group/android-developers/web/localizing-android-apps-draft

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2.                 try {
  3.  
  4.                         PrintWriter out1 = new PrintWriter(new BufferedWriter(new FileWriter("/data/locale")));
  5.  
  6.                         out1.append("zh-CN");
  7.  
  8.                         out1.close();
  9.  
  10.                 } catch (EOFException e) {
  11.  
  12.                         System.err.println("End of stream");
  13.  
  14.                 }
  15.  
  16.  
Parsed in 0.032 seconds, using GeSHi 1.0.8.4


then I found that i have to restart the emulator every times to see the new locale words in activity.
but How can I display the activity's labels words with new locale without restart?


Sincerely!
User avatar
StephenLe
Freshman
Freshman
 
Posts: 5
Joined: Thu Mar 12, 2009 7:55 am
Location: Beijing China

Top

Postby MrSnowflake » Fri Mar 13, 2009 1:16 pm

Apparently you simple can't.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

So,,,Could tell me how i can do that

Postby StephenLe » Sat Mar 14, 2009 3:55 am

MrSnowflake wrote:Apparently you simple can't.



I've no idea....This fragment must restart the emulator...
Could you tell me some code about this topic?
Thanks a lot
User avatar
StephenLe
Freshman
Freshman
 
Posts: 5
Joined: Thu Mar 12, 2009 7:55 am
Location: Beijing China

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 24 guests