0
我可以知道Locale.getDefault().getLanguage()
和mContext.getResources().getConfiguration().locale.getLanguage()
之間的區別 對不起我的草案,但我需要詳細區分它們。兩種區別獲取區域設置語言的方法android
我可以知道Locale.getDefault().getLanguage()
和mContext.getResources().getConfiguration().locale.getLanguage()
之間的區別 對不起我的草案,但我需要詳細區分它們。兩種區別獲取區域設置語言的方法android
Locale.getDefault().getLanguage();
返回語言名稱此語言環境如果沒有 語言設置爲空字符串,雖然文件指出,使用getLanguage()返回的語言代碼,但事實並非如此。
getResources().getConfiguration().locale.getLanguage()
返回語言代碼。