Android emulator not responding to physical keyboard on Xubuntu 16.04
While Android emulator was responding exactly as it should on Xubuntu 14.04, this is not the case on 16.04. I have already posted a question/bug report on Android developers' site but have received no answer for two months.
Is anyone else facing the same problem? Has anyone solved it somehow?
Thank you!
p.s. Please do not suggest using other emulators. The question is very precise. I want to fix this Android emulator issue specifically.
Solution 1:
It turns out this is a focus problem. Android emulator does not receive proper focus when clicked upon. I have found two solutions for this so far:
- Clicking on the three dots on the bar on the right and closing the settings window right after, gives correct focus to the emulator and the physical keyboard works properly until the user switches to some other app. Upon returning to the emulator, the same procedure has to be followed.
- In Xubuntu settings, allowing focus to follow mouse position also does the job.
May 28, 2018 UPDATE:
I was forced to recreate the android emulator from scratch since the previous one was not working properly. The newly created emulator does not receive focus no matter what I do, so this answer is no longer valid. It doesn't receive focus even if I use wmctrl -a
.
If anyone else has found a way to force focus on Android Emulator, please share it.
Solution 2:
Try clicking with both (left and right) mouse buttons at once on the emulator window. It works for me (Linux Mint 18.3 XFCE)
Solution 3:
Try this, open your emulator then on the right click the 3 dotted button, then go to settings,Click Send keyboard shortcuts to (select virtual device) and its working. working to my unit using Xubuntu.