No software buttons for the ICS emulator?
Asked Answered
G

5

23

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.

Gayl answered 6/12, 2011 at 7:19 Comment(0)
D
15

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.

Descendent answered 15/12, 2011 at 6:27 Comment(0)
C
28

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

Circumvent answered 6/12, 2011 at 7:56 Comment(2)
Neither are really acceptable. I need to ensure the menu key appears when appropriate / or I have it available in the action bar.Gayl
On a Mac: ESC is back, FN and left arrow is home, FN and up arrow brings up the tab at the bottom with search, settings etc. (OSX 10.7 - ADT Build: v21.1.0-569685)Unlace
G
17

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
Gustafson answered 13/12, 2011 at 15:23 Comment(2)
On Windows it is vim \Users\<name>\android\avd\<name>.avd\config.iniLard
This should be the winning answer. Works great.Calculous
D
15

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.

Descendent answered 15/12, 2011 at 6:27 Comment(0)
C
9

On a MacBook air (which has no Home or Page Up keys) use the fn key + arrows:

  • fn + Left Arrow = "Home Button"
  • fn + Up Arrow = "Menu Button"
  • esc = "Back Button"
Clavicorn answered 22/8, 2012 at 16:41 Comment(0)
A
4

I needed to add the following to my AVD's config.ini file:

skin.dynamic=yes

This can also be set via the AVD Manager GUI by checking Skin: Display a skin with hardware controls, see screenshot below:

enter image description here

This is for ADT Build: v21.0.1-543035

Anastassia answered 13/2, 2013 at 23:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.