I have developed one android keyboard. It's working properly as separate app on any device. Now I need to show my app in:
(Setting->Input)
Below image shows external keyboard added in device:
As you see in image Android keyboard is default.
Example: Swiftkey 3 is added externally.
But I don't know how to add my own keyboard so I can choose this?
You should first take a look here. Then continue with this thread here, as stated there:
Some tips:
An inputMethod is basically an Android Service
, so yes, you can do HTTP and all the stuff you can do in a Service
.
You can open Activities
and dialogs from the InputMethod
. Once again, it's just a Service
.
Here's another tutorial on the topic. I hope all this is helpful for you.
Cheers
You have to create InputMethodService... and just add below code in Menifest.xml
file
<service android:name="FastInputIME"
android:label="@string/fast_input_label"
android:permission="android.permission.BIND_INPUT_METHOD">
<intent-filter>
<action android:name="android.view.InputMethod" />
</intent-filter>
<meta-data android:name="android.view.im" android:resource="@xml/method" />
</service>
Permisson:
<uses-permission android:name="android.permission.BIND_INPUT_METHOD"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With