get pressed key and throw another key in android - android

i want to make an android app that works in background and get's what key is pressed in keyboard and throw Equivalent of it in another language,for example persian or arabic.
how can i do this?
thanks for your help.

I doubt you can write such APP, this would violate lots of security measures in android. But you can write your own custom soft keyboard:
How to develop a soft keyboard for Android?
user will have to choose your keyboard explicitly in settings. You will be able to do all the translations inside your keyboard.

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 change the language of the keyboard

My Android application has multi language support.my problem is if I select the language(from application) then app will changed to corresponding language but keyboard is still in system language any idea to change the keyboard language too.
This isn't really that possible.
The keyboard is itself an application. Therefore, you cannot change it directly from your app, nor can you guarantee that your user will have the "Arabic" charset or addon or whatever, for they keyboard app that they employ.
Your only real and reliable solution if you wish to accomplish what you need would be to create your own keyboard input. Otherwise, it will be in the user's hands to change their keyboard to Arabic.

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.

How to make a Emoticon Keyboard

I am trying to develop a emoticon keyboard for Android. I would like for the user to be able to purchase the app and install the emoticons to use with their keyboard for text and social networking my emoticons are graphics would I have to create a softkeyboard? how can I go about making this app any source codes advice would be appreciated I am new to app development its nothing like web..PLEASE HELP!!
I am trying to develop a emoticon keyboard for Android
Please bear in mind that most people do not speak exclusively in emoticons. Either you will need to create a full natural-language soft keyboard that also has emoticons, or users will have to flip back and forth between their regular soft keyboard and yours. The latter seems unlikely to be popular.
would I have to create a softkeyboard?
You are asking to create a soft keyboard.
how can I go about making this app
There is a SoftKeyboard sample app in your SDK that you can use as a starting point. Beyond that, search for tutorials on how to create an InputMethodService.

How can I get/change the current typing language?

I want to make an app that allows the user to quickly change input language on his android phone...
I've searched Android Dev but I couldn't find the appropriate class... Any ideas?
Unfortunately, you can not change the locale of the user from withing your application.
This is not possible until the date of this question.
Swiping the spacebar to change the locole (language) is a behavior due to the android's default soft keyboard.
It will not work ):

Categories

Resources