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?
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?
try this:
Intent intent = new Intent();
intent.setComponent( new ComponentName("com.android.settings","com.android.settings.Settings$InputMethodAndLanguageSettingsActivity" ));
startActivity(intent);
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
As an alternative answer, you can use this:
startActivityForResult(new Intent(Settings.ACTION_LOCALE_SETTINGS), 0);
It will bring you to the system language menu. Or:
startActivityForResult(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS), 0);
For keyboards and inputs. When the user hits the back button, it will return to your app.