How to start activity Language and input

非 Y 不嫁゛ 提交于 2019-11-30 17:23:38

问题


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?


回答1:


try this:

Intent intent = new Intent();
intent.setComponent( new ComponentName("com.android.settings","com.android.settings.Settings$InputMethodAndLanguageSettingsActivity" ));
startActivity(intent);



回答2:


try this

Intent intent=new Intent(android.provider.Settings.ACTION_INPUT_METHOD_SETTINGS);
startActivity(intent);



回答3:


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!