top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Android: Locales with script part not supported in KitKat?

+3 votes
85 views

It appears that Locale.java in master (https://android.googlesource.com/platform/libcore/+/master/luni/src/main/java/java/util/Locale.java) now supports BCP-47, including script names. Does this mean that with the next Android version ("L"?) I will be able to create and use locales like "bs_Latn_BA" or "bs_Cyrl_BA"?

I am currently running KitKat and I don't see a system property that will persist the script part of the locale name. We have just:
/data/property/persist.sys.country
/data/property/persist.sys.language

I have tried to set the language property to include the script part (setprop persist.sys.language bs_Cyrl), and the value gets stored, but the script part is apparently ignored. If I set the language to bs_Cyrl and the country to BA, I get my dates/times/numbers etc. formatted with Latin values, not Cyrillic (bs_Latn_BA).

Am I correct in concluding that KitKat does not support locale names that include script parts, but that L will (might)? And that it will presumably have a new persistent property that will store the script?

posted May 13, 2014 by Kaushik

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

Similar Questions
+3 votes

I want to port the ART in android below kitkat. Is there somebody has done this and can give some instruction?

+2 votes

What's the difference of /system/app/ and /system/priv-app in Kitkat? And which app should be put in /system/priv-app?

+1 vote

According to Kit Kat specs its mentioned that android now supports adaptive playback(MPEG-DASH). How do i go about testing this on Kit Kat?

0 votes

AIDL make the interface easy to write,but the android programmer not totally use aidl anywhere, some case such as ActivityManagerService(they use ActivityManagerNative) not use aidl to descript the interface, neighter ApplicationThread(they use ApplicationThreadNative).

So why they not use aidl in these cases ? cant or something else?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...