Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open settings screen to activate input method

Tags:

android

input

I have written a custom input method (soft keyboard). I can check whether it's enabled or not based on this post. Now if it's enabled (but not the current IME) I can call imeManager.showInputMethodPicker(); which displays a list of enabled IMEs so the user can pick mine.

However, if my IME is not enabled in the system settings, I would rather take the user directly to the system settnigs screen so he can enable my IME (I remember that Swiftkey does this after installing).

How can I open this specific settings screen?

like image 530
Philipp Avatar asked Apr 05 '13 04:04

Philipp


People also ask

What is input method in Android?

An input method editor (IME) is a user control that enables users to enter text. Android provides an extensible input method framework that allows applications to provide users alternative input methods, such as on-screen keyboards or even speech input.

How do you change the input method?

Input Method Action Button is located in the bottom right corner of the soft keyboard.

What is keyboard or input method?

An input method is a set of functions that translates key strokes into character strings in the code set specified by your locale. Input method functions include locale-specific input processing and keyboard controls (for example, Ctrl, Alt, Shift, Lock, and Alt-Graphic).


1 Answers

You can open the Android settings. Use below code

import android.provider.Settings; 
ctx.startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS));
like image 138
Amit Avatar answered Sep 30 '22 12:09

Amit