我们如何获取Android设备中当前选择的语言?
我们如何获取Android设备中当前选择的语言?
if(Locale.getDefault().getDisplayName().equals("हिन्दी (भारत)")){
// your code here
}
if(Locale.getDefault().getDisplayName().equals("हिन्दी (भारत)")){
//Block executed only for the users resides in India who speaks Hindi
}