How to add keyboard languages to Android Things 1.0.15 - keyboard

I need to add languages to AOSP keyboard in Android Things version 1.0.15.
When I try to modify the language pressing long the button (",") next to the spacebar the app crashes:
android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.settings.INPUT_METHOD_SUBTYPE_SETTINGS flg=0x14200000 (has extras) }
I tried to install other keyboards such as gboard or swiftkey with no success. I am not able to start those apps.
Do you know some other workaround?

I solved installing Gboard and then select the keyboard programmatically using the following code:
InputMethodManager inputMethodManager = (InputMethodManager) this.getSystemService(Context.INPUT_METHOD_SERVICE);
inputMethodManager.showInputMethodPicker();

Related

Why 'New Kotlin Class/File' window not responding to keyboard when making a new Kotlin class in android?

Error message shown in terminal inside android studio is
ERROR: ld.so: object '/usr/lib/spectrwm/libswmhack.so.0.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Once I make a right click on com.example.myapplication> new > Kotlin class/file, a window appears that asks for name of the class. That 'New Kotlin Class/File' window does not take any input from the keyboard. I even tried it in xfce Desktop Environment, but faced same problem.
I'm running android on Debian 11 with spectr window manager. My android studio is ran via flatpak. I have Kotlin plugin installed. The keyboard also works fine in all other aspects.
This is not exactly an solution but a workaround.
The mouse still works in that window. Write the name of the class or file somewhere else, copy it to the clipboard control+shift+c. Then paste it in the name field with middle mouse button click. Then double click on the type of file you want to create.

How to enable Flutter intentions (IDE shortcuts) in Android Studio

I've been reading about IDE shortcuts to make Flutter programming easier in Android Studio, but when I hit Alt-Enter (or click the yellow light bulb in the fringe) the only item in my context menu is "Adjust code style settings" (no "Add padding", "Wrap with Container", "Remove widget", etc.).
From what I can tell these are called "Intentions" in Android Studio. In my intentions settings I don't see anything for "Flutter". How do I get those added?
Screenshots:
I had the same issue. Could you try this way:
Use the terminal: flutter clean -> flutter upgrade -> ( my version upgraded )
I think you should remove flutter and download again
Hope it works for you!!
As suggested by
Duong Quang Son
make sure you have checked
Editor -> Intentions -> Quick assist powered by the Dart Analysis Server.
GAH! As suggested by #faroukosama in the comments, all I needed to do was close and reopen the project...
Have you tried unplugging it and plugging it back in?

How to disable/pass refactoring preview window in Android Studio

I'm using Android Studio for a long time and I always found annoying the fact that you have to manually move the mouse to click 'Do Refactor' when refactoring. Is there a way to do it by some keyboard shortcut or completely skip this preview window? When I'm refactoring I know what I'm doing and I don't feel like I need a preview in most cases.
I didn't find anything that could answer my question.
I had a similar issue with Android Studio. I couldn't find a way to disable preview, but I did find a keyboard shortcut workaround. Just press Alt+D and it will "do refactor".

Android : cannot input text from keyboard

When my android sdk update to newest version, i met the issue is : I cannot type text into Android Emulator by using computer keyboard, and I cannot use Android Emulator keyboard (the keyboard that next to the screen).
If I want to input some text, I must use this : click to textfield where I want to type. It will go to screen with virtual keyboard (as a real mobile phone), and click the character I want.
This annoy me because make me slower when debug an app. Please help me, how to type directly using keyboard.
Thanks :)
Add "Keyboard support" to your emulator hardware:
On Eclipse, go to Window > AVD Manager
Choose your emulator > Edit
Click "New" button in "Hardware" section
Select "Keyboard support" and change value to "Yes"
Finally, click on "Edit AVD" button.
Then you could input text to your emulator from your keyboard.
FYI - since I upgraded to sdk v14, I've had settings issues on the emulators. Leap's solution does work, but you might have to start and stop the emulator several times before these settings stick. No idea why that is ...

Add project to an existing Monodevelop (Mono Touch) solution

Where is the command/button/dialog to add a project to an existing mono touch solution?
e.g. I have a MonoTouch App and I want to add a class library to the solution.
It seems as if my IMac was not responding in the normal fashion for CTRL Click. Got around this with double click to get to context menu

Resources