abouttreesummaryrefslogcommitdiff
path: root/srcs/juloo.keyboard2
diff options
context:
space:
mode:
authorJules Aguillon2023-03-28 11:22:17 +0200
committerJules Aguillon2023-03-28 11:22:17 +0200
commit35b4e442ab2e2b236e785f52dfa5d59439eb037e (patch)
tree96651e06a5b53f8e02771f5704464a3338d2be5f /srcs/juloo.keyboard2
parentc4de1ec267c9ea062da71674a72c8da5e93bd84a (diff)
downloadunexpected-keyboard-35b4e442ab2e2b236e785f52dfa5d59439eb037e.tar.gz
unexpected-keyboard-35b4e442ab2e2b236e785f52dfa5d59439eb037e.zip
Add a launchable explanatory activity
This activity points to the system settings page for enabling input methods. This is purely a shortcut but is expected by many users. It could be made more useful in the future or hidden whenever the keyboard is enabled.
Diffstat (limited to 'srcs/juloo.keyboard2')
-rw-r--r--srcs/juloo.keyboard2/LauncherActivity.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/srcs/juloo.keyboard2/LauncherActivity.java b/srcs/juloo.keyboard2/LauncherActivity.java
new file mode 100644
index 0000000..83217a8
--- /dev/null
+++ b/srcs/juloo.keyboard2/LauncherActivity.java
@@ -0,0 +1,26 @@
+package juloo.keyboard2;
+
+import android.app.Activity;
+import android.content.Intent;
+import android.content.SharedPreferences;
+import android.content.res.Configuration;
+import android.os.Build;
+import android.os.Bundle;
+import android.provider.Settings;
+import android.view.View;
+import android.widget.Button;
+
+public class LauncherActivity extends Activity
+{
+ @Override
+ public void onCreate(Bundle savedInstanceState)
+ {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.launcher_activity);
+ }
+
+ public void launch_imesettings(View _btn)
+ {
+ startActivity(new Intent(Settings.ACTION_INPUT_METHOD_SETTINGS));
+ }
+}