diff options
| author | Jules Aguillon | 2023-03-28 11:22:17 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-03-28 11:22:17 +0200 |
| commit | 35b4e442ab2e2b236e785f52dfa5d59439eb037e (patch) | |
| tree | 96651e06a5b53f8e02771f5704464a3338d2be5f | |
| parent | c4de1ec267c9ea062da71674a72c8da5e93bd84a (diff) | |
| download | unexpected-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.
| -rw-r--r-- | AndroidManifest.xml | 6 | ||||
| -rw-r--r-- | res/layout/launcher_activity.xml | 6 | ||||
| -rw-r--r-- | res/values-cs/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-de/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-es/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-fr/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-it/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-ko/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-lv/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-pl/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-pt/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-ru/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-tr/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-vi/strings.xml | 3 | ||||
| -rw-r--r-- | res/values-zh-rCN/strings.xml | 3 | ||||
| -rw-r--r-- | res/values/strings.xml | 3 | ||||
| -rw-r--r-- | srcs/juloo.keyboard2/LauncherActivity.java | 26 |
17 files changed, 80 insertions, 0 deletions
diff --git a/AndroidManifest.xml b/AndroidManifest.xml index df934f5..f268559 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -13,6 +13,12 @@ <action android:name="android.intent.action.MAIN"/> </intent-filter> </activity> + <activity android:name="juloo.keyboard2.LauncherActivity" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/android:Theme.DeviceDefault" android:exported="true" android:directBootAware="true"> + <intent-filter> + <action android:name="android.intent.action.MAIN"/> + <category android:name="android.intent.category.LAUNCHER"/> + </intent-filter> + </activity> </application> <uses-permission android:name="android.permission.VIBRATE"/> <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/> diff --git a/res/layout/launcher_activity.xml b/res/layout/launcher_activity.xml new file mode 100644 index 0000000..424e98d --- /dev/null +++ b/res/layout/launcher_activity.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:padding="16dp"> + <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/launcher_description"/> + <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginVertical="16dp" android:text="@string/launcher_button_imesettings" android:onClick="launch_imesettings"/> + <TextView android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="@string/launcher_sourcecode" android:autoLink="web"/> +</LinearLayout> diff --git a/res/values-cs/strings.xml b/res/values-cs/strings.xml index cf3e4f6..6385849 100644 --- a/res/values-cs/strings.xml +++ b/res/values-cs/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Předchozí</string> <string name="key_action_search">Hledat</string> <string name="key_action_send">Odeslat</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-de/strings.xml b/res/values-de/strings.xml index 895d7d9..03dffe3 100644 --- a/res/values-de/strings.xml +++ b/res/values-de/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Vorheriges</string> <string name="key_action_search">Suchen</string> <string name="key_action_send">Senden</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-es/strings.xml b/res/values-es/strings.xml index 52bc7d4..930a1fd 100644 --- a/res/values-es/strings.xml +++ b/res/values-es/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Anterior</string> <string name="key_action_search">Buscar</string> <string name="key_action_send">Enviar</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-fr/strings.xml b/res/values-fr/strings.xml index 1cd6289..3c58a91 100644 --- a/res/values-fr/strings.xml +++ b/res/values-fr/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Prec.</string> <string name="key_action_search">Chercher</string> <string name="key_action_send">Envoyer</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-it/strings.xml b/res/values-it/strings.xml index cdb557b..1fd3a3c 100644 --- a/res/values-it/strings.xml +++ b/res/values-it/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Precedente</string> <string name="key_action_search">Cerca</string> <string name="key_action_send">Invia</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-ko/strings.xml b/res/values-ko/strings.xml index 07a965f..3764383 100644 --- a/res/values-ko/strings.xml +++ b/res/values-ko/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">이전</string> <string name="key_action_search">검색</string> <string name="key_action_send">보내기</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-lv/strings.xml b/res/values-lv/strings.xml index 7215953..b37fae7 100644 --- a/res/values-lv/strings.xml +++ b/res/values-lv/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Iepriekšējais</string> <string name="key_action_search">Meklēt</string> <string name="key_action_send">Sūtīt</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-pl/strings.xml b/res/values-pl/strings.xml index d4ca164..b6a739d 100644 --- a/res/values-pl/strings.xml +++ b/res/values-pl/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Wstecz</string> <string name="key_action_search">Szukaj</string> <string name="key_action_send">Wyślij</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-pt/strings.xml b/res/values-pt/strings.xml index 72d0d8a..75137f4 100644 --- a/res/values-pt/strings.xml +++ b/res/values-pt/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Anterior</string> <string name="key_action_search">Buscar</string> <string name="key_action_send">Enviar</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-ru/strings.xml b/res/values-ru/strings.xml index 4eab39a..cd3d968 100644 --- a/res/values-ru/strings.xml +++ b/res/values-ru/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Предыдущий</string> <string name="key_action_search">Поиск</string> <string name="key_action_send">Отправить</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-tr/strings.xml b/res/values-tr/strings.xml index 79b4388..749eab9 100644 --- a/res/values-tr/strings.xml +++ b/res/values-tr/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Geri</string> <string name="key_action_search">Ara</string> <string name="key_action_send">Gönder</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index 3d6d316..6828a30 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -75,4 +75,7 @@ <string name="key_action_prev">Trước</string> <string name="key_action_search">Tìm</string> <string name="key_action_send">Gửi</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml index 109a24b..68b7da6 100644 --- a/res/values-zh-rCN/strings.xml +++ b/res/values-zh-rCN/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">前一项</string> <string name="key_action_search">搜索</string> <string name="key_action_send">发送</string> + <!-- <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> --> + <!-- <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> --> + <!-- <string name="launcher_button_imesettings">Enable keyboard</string> --> </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index 11ddc0c..e6b1a8d 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -73,4 +73,7 @@ <string name="key_action_prev">Prev</string> <string name="key_action_search">Search</string> <string name="key_action_send">Send</string> + <string name="launcher_description">This application is a virtual keyboard. Go to the system settings by clicking on the button below and enable Unexpected-Keyboard.</string> + <string name="launcher_sourcecode">This is an free and open source application. You can find the source code or report bugs on <a href="https://github.com/Julow/Unexpected-Keyboard/">Github</a>.</string> + <string name="launcher_button_imesettings">Enable keyboard</string> </resources> 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)); + } +} |
