I want to open (start) activity named: "Language and input", where the user can change the device language.
startActivity(new Intent(Locale....));
It's in the Locale or... settings? Where is it?
Satur6ay
try this:
Intent intent = new Intent();
intent.setComponent( new ComponentName("com.android.settings","com.android.settings.Settings$InputMethodAndLanguageSettingsActivity" ));
startActivity(intent);
Ammad12
try this
Intent intent=new Intent(android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS);
startActivity(intent);
Use this for open language and settings..
Intent i = new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS);
startActivity(i);
it will work
来源:https://stackoverflow.com/questions/18162873/how-to-start-activity-language-and-input