Philipp
Philipp

Reputation: 11814

Open settings screen to activate input method

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?

Upvotes: 10

Views: 3953

Answers (1)

Amit
Amit

Reputation: 717

You can open the Android settings. Use below code

import android.provider.Settings; 
ctx.startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS));

Upvotes: 19

Related Questions