トラッキング コード

2/02/2012

Enable NavigationBar on Emulator

How to Enable NavigationBar on Emulator

Standard ICS is not enable NavigationBar. but, Android Frameworkds is see Emulator settings.

        // Allow a system property to override this. Used by the emulator.
        // See also hasNavigationBar().
        String navBarOverride = SystemProperties.get("qemu.hw.mainkeys");
        if (! "".equals(navBarOverride)) {
            if      (navBarOverride.equals("1")) mHasNavigationBar = false;
            else if (navBarOverride.equals("0")) mHasNavigationBar = true;
        }


You can add "hw.mainkeys" from Edit AVD.


Procedure:
  1. add "Hardware Back/Home keys frome "New" button.
  2. change value to "no".


Start AVD!!


No comments:

Post a Comment