I'm developing an input method, but i need to know which application is using my input method.
For example (as image):
if someone other open my keyboard for Telegram, the keyboard will turn color to lightblue.
if someone open my keyboard to write on WhatsApp, the keyboard will turn color to green.
There is a way to get the package?
Related
i've seen in some apps that it is possible to order Gboard to force open or focus into an EditText but when keyboard opens it is not the usual keyboard, it opens in a "search gifs" or "random GIF suggestion" mode. It is usually used in some apps to display an "Insert GIF" button next to the edittext. Here's an example:
Keyboard opens as usual when you click on the EditText. Please note the presence of the "GIF" button next to the camera button.
Keyboard opens in GIF search mode, just by tapping the "GIF" button mentioned earlier.
Any ideas on how to trigger this specific soft keyboard mode programmatically? I've been reading a lot of info but not able to find any similar question asked before.
Looks like this did not have anything to do with the keyboard itself. The GIF button just opens a recyclerview full of third party trending gifs withdrown via an API call (eg: giphy/tenor) which sits on top of the keyboard.
In my app i would like to forbid the use of virtual keyboards since want to avoid the user being able to insert emojis via the keyboard. I managed to remove the emoji button from the default keyboard by setting the EditText inputType properties to android:inputType="textVisiblePassword|text", based on this answer/ question.
But given the case that the user uses a different virtual keyboard, the emoji button is back again of course.
Question: Is there a way to forbid virtual keyboards inside the app? So that only the default keyboard can be used.
And if not: How can i make the EditText field not accept any emojis from the user keyboard?
Thanks for your help!
Is it possible to change the background color of soft keyboard when it popups on screen. That is having full control of the native android keyboard and customized it at will.
No, you can not change background color of android soft keyboard while it pops up. For that you have to make you own soft keyboard.
And if you want to customize android native key board then you can do it. Take source code of LatinIME from Android repository and modify it by taking care of Open source licence.
Also check http://developer.android.com/guide/topics/text/creating-input-method.html
I followed these tutorial of developer.android, "Creating an Input Method" and "SoftKeyboard - Soft Keyboard sample".
Think its everything correct, but the custom keyboard dont pop up, what im doing wrong?
Only the default keyboard shows up.
The user has to choose that input method editor, either from the Settings app (for a permanent change) or via the little keyboard icon you typically see in the lower-left corner of every input method editor.
I want to show the Android version of a Model Dialog with text input however I think the keyboard will be behind the actual activity since dialogs weren't made to have inputs. Is there any way I can get the keyboard to show in an actual dialog.
I did see this SO question -- however I'd rather not use an Theme.Dialog'ed activity because I feel like an activity would be too heavy for my purposes. How can I show this Model Dialog with the keyboard input in the foreground?
This is what I am talking about:
Who said dialogs aren't made to have inputs?! A dialog can contain anything - text, buttons, progress bars, input fields. Did you try it out? A keyboard resizes your canvas, so there's no "behind"/"front" going on. (Besides, you can always summon the IME on a phone without a QWERTY
keyboard by holding the menu button - even there's a modAl dialog.)
EDIT: If you need proof, just look at the API Demos (App -> Dialog). There's an example for a dialog with text entry. Source code here: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/app/AlertDialogSamples.html (DIALOG_TEXT_ENTRY)