Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I modify the default locale in android?

By default, the android system's default location is US and language is en. But I want to set the default location to another country. So, the users will see their mother language when the first time startup android.

I have tried to modify the code(/dalvik/libcore/luni/src/main/java/java/util/Locale.java), changed the locale's default value. But no effect.

Can you tell me how to set the default location?

*I want to make an android image, then burn it to the device, when the android starts up the first time, I want its os language is not English but another language.

like image 548
aooray Avatar asked Sep 02 '10 13:09

aooray


1 Answers

thanks for all you reply.

i have found the method to change the default language.

just modify the file(build/core/Makefile).

set PRODUCT_DEFAULT_LANGUAGE and PRODUCT_DEFAULT_REGION to what you want to set.

like image 130
aooray Avatar answered Sep 29 '22 21:09

aooray