Android(安卓)获取当前语言的方法1

使用android.os.SystemProperties class,

call public static String get(String key, String def) function.

the key is :

"persist.sys.language" get language.

"persist.sys.country" get Country.

for example:

Simplified chinese(简体中文)

"persist.sys.language" zh

"persist.sys.country" CN

Traditional chinese(繁体中文)

"persist.sys.language" zh

"persist.sys.country" TW