要求用户打开预想文字设置

时间:2019-02-15 08:40:12

标签: android keyboard application-settings

最近我一直在寻找如何显示android设备的键盘设置,并要求用户打开预想性文字。直到现在,我还没有找到让我这样做的解决方案,但是下面的代码显示了设置,并要求用户打开拼写检查器。我想要类似的东西。

Toast.makeText(getApplicationContext(), "Please turn on the spell checker from setting", Toast.LENGTH_LONG).show();
                    ComponentName componentToLaunch = new ComponentName("com.android.settings",
                            "com.android.settings.Settings$SpellCheckersSettingsActivity");
                    Intent intent = new Intent();
                    intent.addCategory(Intent.CATEGORY_LAUNCHER);
                    intent.setComponent(componentToLaunch);
                    intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                    try {
                        getApplicationContext().startActivity(intent);
                    } catch (ActivityNotFoundException e) {
                        // Error
                    }

请问有什么可以帮助的。预先感谢

0 个答案:

没有答案
相关问题