Android: How to use my custom IME only in my Application? - android

I have made an IME depend on Google's SoftKeyboard Sample. But while I set it as my System default IME, the other APP also user it, My custom IME is not friendly to other APP. I only want to use it in my APP, is there any good advice?

Related

how can I record Gboard typing in other apps from a service

What I want to do is to make an Android app with the same functionality callable by typing special words into the Google keyboard at any moment in which it is open (even if it is used into another app).
The easiest solution to achieve this is by making my own keyboard and let the user set it as default but I would prefer to insert this functionality to the Gboard so the user does not have to change his keyboard application
So the question is:
How can I know from a service what's typed into the Gboard even when the keyboard is used by other applications?
is it possible?

How to programatically change keyboard language to Arabic?

I'm working on an Android app that needs to take input in Arabic whenever the User taps on an EditText view. So how do I change the keyboard language programatically or ask the User to do so?
I conducted extensive research and found out that it can be done via:
a) creating a custom Arabic keyboard,
b) using the IME manager to prompt the user to change input method by calling showInputMethodPicker(),
c) using the IME manager to change input method by calling setInputMethod.
of these, (c) is only workable for System apps, and (a) requires a lot of time (which I currently don't have), and (b) requires the user to manually enable it.
Is there absolutely ANY simple and workable way to accomplish this? Any external API that I could use or anything at all?
https://www.codeproject.com/Questions/996415/ceate-custom-arabic-keyboard-for-android
Above link can help you.For getting above required feature you need to make custom keyboard Arabic then open that keyboard when you type in edit text.

Distinguishing multiple keyboards in an Android application

I am working on an Android application, which has a custom keyboard inside it. Is there any way I could distinguish between the custom keyboard that I have in my application and the default one which is provided by Android ?
I want to know which keyboard whether it is default or custom which is opened ?

Creating an IME in Android, how can I only cover one input type and let another keyboard handle all others?

I'm following posts like:
How to develop a soft keyboard for Android?
Create Custom Keyboard in Android
I was wondering though, is their a way to default to using another keyboard?
IE: I want to only cover the email input, nothing else. What can I do to make it use the system keyboard, or Swift or another keyboard for all other inputs (Numbers, general text etc.).
http://developer.android.com/reference/android/text/InputType.html
Any help is appreciated, I've not gotten to play too much with this, just want to see feasibility before I start a project.
Cheers,
Justin W.
Using InputMethodService, you can definitely switch to another IME if you want to.
But, once another IME is activated, you cant switch from another IME to your IME. This is for security reasons.
It's clearly mentioned in the Docs.
A client application can ask that the system let the user pick a new
IME, but can not programmatically switch to one itself. This avoids
malicious applications from switching the user to their own IME, which
remains running when the user navigates away to another application.
An IME, on the other hand, is allowed to programmatically switch the
system to another IME, since it already has full control of user
input.

Not allowing a third party IME - android

I'm developing an application where I do not want the keyboard in text fields to be replaced by a third party one that a user has installed. I want the system one to be always used. Alternatively, a custom one included with my app to be always used.
Does anyone know how this can be achieved?
You cannot control what keyboard the user uses within your app on Android, sorry.
At best, you could always make the user use your keyboard, but then you'd have to extend and customize every UI component that accepts input to show your keyboard when clicked instead.

Categories

Resources