Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Activity display new locale words without restart?

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.015 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] and 22 guests