How to start activity Language and input

2020-03-04 03:33发布

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?

3条回答
地球回转人心会变
2楼-- · 2020-03-04 03:57

Use this for open language and settings..

Intent i = new Intent(android.provider.Settings.ACTION_LOCALE_SETTINGS);
startActivity(i);

it will work

查看更多
爷、活的狠高调
3楼-- · 2020-03-04 04:07

try this

Intent intent=new Intent(android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS);
startActivity(intent);
查看更多
beautiful°
4楼-- · 2020-03-04 04:13

try this:

Intent intent = new Intent();
intent.setComponent( new ComponentName("com.android.settings","com.android.settings.Settings$InputMethodAndLanguageSettingsActivity" ));
startActivity(intent);
查看更多
登录 后发表回答