Android 4.4 Emulator does not rotate screen

Some bug in Android 4.4 Emulator
If I press Ctrl + F11 applications screen does not rotate.

android-4-4-bug-not-rotate-screen

You can change Screen Orientation programatically for example by menu item

	private static final int MY_MENU_6 = Menu.FIRST + 5;
	private static final int MY_MENU_7 = Menu.FIRST + 6;
 
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		super.onCreateOptionsMenu(menu);
 
		menu.add(0, MY_MENU_6, 0, "Ori.Port").setShortcut('6', 'O');
		menu.add(0, MY_MENU_7, 0, "Ori.Land").setShortcut('7', 'L');
 
		return true;
	}
 
 
	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
 
		switch (item.getItemId()) {
		case MY_MENU_7:{
			setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
		}return true;
		case MY_MENU_6:{
			setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		}return true;
		}// end switch
		return super.onOptionsItemSelected(item);
	}

emulator-android-not-rotate-app-portrait-up
emulator-android-not-rotate-app-portrait
emulator-android-not-rotate-app-menu
emulator-android-not-rotate-app

This entry was posted in Bugs, warnings, errors, Eclipse and tagged , , , , . Bookmark the permalink.


Comments are closed.



5,723 views