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 ):
Related
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.
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.
I'm building a single purpose app for one and only one device model. Therefore I allow switching languages within the app as I do not want the user to open the settings.
I was successful in changing the Locale.
I was unsuccessful switching the language input (understand switching the keyboard from thai to english and english to thai).
Note: It comes from factory with English and Thai language inputs already installed and available.
Note 2 : I've seen a load of solution on google but I find none of them precise enough to know if it's doable and how to perform this. I mention this because I'd like to avoid one more copy paste of this solution for eg : Change Keyboard Input Language Programmatically. It might be a good solution, but I just don't get it.
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.
I have made android app. my client ask me that change default language at soft keyboard case by case. one case, keyboard should be English keyboard, another, Korean keyboard.
how can i do?
thx.
Android should provide there keyboard with a broadcast receiver which accepts some kind of intents to change its language. so users can use intent to access keyboard language.