From df04eae85f7500ab5385c031b65e2b9cc484fff9 Mon Sep 17 00:00:00 2001 From: RetrogisusDEV Date: Wed, 23 Aug 2023 18:53:31 -0400 Subject: Launcher activity: Add "Select keyboard" button --- srcs/juloo.keyboard2/LauncherActivity.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'srcs/juloo.keyboard2/LauncherActivity.java') diff --git a/srcs/juloo.keyboard2/LauncherActivity.java b/srcs/juloo.keyboard2/LauncherActivity.java index 35ef461..2180b43 100644 --- a/srcs/juloo.keyboard2/LauncherActivity.java +++ b/srcs/juloo.keyboard2/LauncherActivity.java @@ -7,6 +7,7 @@ import android.os.Bundle; import android.provider.Settings; import android.view.KeyEvent; import android.view.View; +import android.view.inputmethod.InputMethodManager; import android.widget.EditText; import android.widget.TextView; @@ -33,6 +34,13 @@ public class LauncherActivity extends Activity startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS)); } + public void launch_imepicker(View v) + { + InputMethodManager imm = + (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE); + imm.showInputMethodPicker(); + } + final class Tryhere_OnUnhandledKeyEventListener implements View.OnUnhandledKeyEventListener { public boolean onUnhandledKeyEvent(View v, KeyEvent ev) -- cgit v1.2.3