how could i detect if my phone language has been changed, like facebook application that will give us announce : please wait, we preparing your language
i used myString = Locale.getDefault().getDisplayLanguage();
in my onCreate()
on my onCreate()
@Override
public void onCreate(Bundle savedInstanceState) {
String myString = Locale.getDefault().getDisplayLanguage();
if(myString.equals("en"){
ProgressDialog progressDialog = new ProgressDialog(getApplicationContext());
progressDialog.setMessage("Please wait, we preparing your language");
progressDialog.show();
/*
it will dismiss until the language has been prepared
*/
}else{
//do nothing
}
}
}
please give me suggestion, i still learning, will try harder. thank you.