Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No software buttons for the ICS emulator?

So I'm working on an update for my application from 3.0 to 4.0 and I'm having issues with the emulator. Specifically, the software buttons do not appear when using the Galaxy Nexus~ish skin (I'm not sure its exact, but it should be close enough).

This is the WXGA720, its values:

Hardware Back/Home keys = no
Abstracted LCD Density = 320
Keyboard Lid Support = no
Max VM Heap = 48
Device Ram Size = 1024

The first line is the most important, because it tells the emulator we need software keys for back/home. This works using the WXGA800 skin (tablet) - even using API level 14 (ICS).

Screenshot of missing keys (Don't mind the jaged edges in the screenshot, I have the emulator scaled down - this doesn't affect the keys not appearing) As you can see its difficult to interact with the emulator since I have no back/home buttons.

So the software keys show up for the tablet skin but not the phone. Has anyone else solved this issue?

EDIT

I've changed the screenshot to reflect the latest version of the tools, r16. The buttons appear using the WVGA800 skin and hardware back/home = no.

like image 219
smith324 Avatar asked Dec 06 '11 07:12

smith324


3 Answers

Use your Keyboard's "Home" for Home, "Esc" for back and "Page Up" for Menu.

like image 120
Abhinav Manchanda Avatar answered Nov 19 '22 04:11

Abhinav Manchanda


You can get the software keys up if you edit the AVD's "config.ini" file. I don't know where this is in windows, but in linux it's ~/.android/avd/.avd/config.ini

You need to put in these lines (not sure if you need to put in all 3):

hw.mainKeys=no
hw.keyboard=no
hw.dPad=no
like image 17
old486whizz Avatar answered Nov 19 '22 04:11

old486whizz


Here's a workaround that works for me: create your AVD by selecting the WXGA720 preset for the Skin, but before you click the "Create AVD" button, click on the "Resolution" radio button for the Skin and enter 720 x 1280 manually on the provided inputs.

You might also want to make sure that you add "Keyboard support: no" and "DPad support: no" in the Hardware section.

like image 15
Joe Avatar answered Nov 19 '22 04:11

Joe