AVD won't change orientation. All answers I saw says numpad 7, numpad 9, ctrl + F11, ctrl+ F12, even the link from developer.android. But my AVD only goes sideways, but not the screen orientation itself. I want to simulate the exact change orientation of a device, not just the normal avd looking sideways. Here's a pic of what I mean:
Even checked Auto rotate screen on android settings sideways. But still no. Lol.
It seems that there is a bug for AVD with Android 4.4. To fix the problem you may install Android 4.3 over the SDK Manager and then switch the target of your emulated device to Android 4.3.
Looks like your system settings are simply set to not rotate the screen. Go to Android settings -> Display and enable "Auto-rotate screen"
I got it working by changing the skin. WXGA800 worked for me
Related
I made android emulator for Nexus 10 using latest ADT(21) and SDK tools.
I know that in Android JellyBean 4.2 there's a new feature called DayDream. I want to access it in my Nexus10 Emulator I have. but don't know how.
i am not getting option Daydream inside Settings -> Display.
How can i enable and use it Inside Emulator?
Here's what i need to do:
1st Step: Launch the Settings app, scroll to the bottom, and tap About Phone.
2nd Step: In the middle of the screen is the listing for Android Version. Tap this item until you see a jelly bean appear on your screen. You can then tap and hold the giant jelly bean until your device vibrates. You should then see interactive beans floating all over your screen. And yes, you can fling them. Go ahead, try it.
3rd Step : After doing, this the BeanFlinger Daydream will be unlocked. You can find the Daydream option by going to Settings > Display > Daydream.
Hope it Will Help to all of the Users Facing this Same kind of Problem.
I too had the same problem, what I did was, previously, I had an emulator with 4.2.1 version. I changed it to 4.3, now its working for me.
I am running android 3.2 RC2 eeepc on Virtual Box.
The OS assumes it a tablet and sets the orientation to landscape by delfault.
How can I manually change the orientation between landscape and portrait?
Is there a way to do this through the commandline in the android OS?
Is there a shortcut key like the emulator from AVD Manager?
I tried Numlock off 7 and Ctrl F11. No use. Kindly help
I use the VM to run an app that I am currently building.
My app has many views and most are set to work in both portrait and landscape.
One view is strictly set to portrait. When I launch this, the entire OS turns to portrait.
How to revert to landscape mode?
download apps like "Set Orientation" so u can set it as potrait, lanscape or automatic
Sadly, VBox is really bad at handling screen orientation. There is no shortcut to change screen orientation on the go I'm afraid. However, there are ways to force the screen into one orientation always. This is however probably not what you were looking for.
You could however try going with BuilDroid - which is a type of addon for VBox to try and support Android as best as possible. It makes sure that screens are "managed". I have no experience with BuilDroid myself, but it could have what you're looking for.
Try it out! You can find it here: http://www.buildroid.org/blog/?page_id=121
Alternatively, there's a blog post giving information on how to change the orientation permanently, as I mentioned before, here: http://davematthew.blogspot.com/2011/09/app-development-with-android-x86-on.html
I have no idea if that helps you either though! But I hope one of these answers your question.
EDIT: The problem seems to have been solved by apps such as the one user2835272 referred to. I have not tried the app personally, but trying "Set Orientation" might be a proper solution for the problem now. Even better, if F9 - F12 works now, that is the functionality that should be used. Again, I haven't played around with VM Android for a while, so I cannot confirm this.
Try just using F9 or F11. It worked for me.
I encountered this problem when trying to run QQ on Android 4.4 running in VirtualBox. F9-F12 were ineffective as soon as QQ started. The app "Ultimate Rotation Control" does the trick but does not resize the QQ window. So part of it gets to lie out of the virtual screen. Finally, I ended up redefining the screen size of the virtual Android to 360x640 (portrait) as described here. It seems that QQ detects which side of the screen is longer and rotates according to this. So if you start with a portrait aspect ratio it will not rotate sideways. I do not about other apps, but guess they operate the same way.
If you are trying to set the display to a portrait resolution. There is one way to set the resolution manually in VBox
I set it to 600x800 successfully in Android x86 4.4.
So basically do the following:
VBoxManage setextradata "Android" "CustomVideoMode1" "360x640x16"
Start Android in VBox in Debug mode
At the Linux prompt, enter the following commands:
mkdir /boot
mount /dev/sda1 /boot
vi /boot/grub/menu.lst
Find the line with tile like "Android-x86 4.4", add "UVESA_MODE=360x640" (replace 360x640 with your resolution) at the end of the line
Save the file.
Clean up and then restart the VM.
umount /boot
rmdir /boot
reboot –f
For those who want to change the screen orientation on Windows.
To run VB on the full-screen mode on a vertical screen, select different sizes and scales from view>>virtual screen x>>resize to ../scale to xx%. After trying different combinations you will find the right settings for you.
So as the title says, on an AVD with android 2.3.3, if the hw keyboard is set to false the displays stops rotating when you rotate the AVD with ctrl+F11 or ctrl+F12.
I tried the solution that somebody mentioned at Android - Emulator in landscape mode, screen does not rotate with the accelerometer setting and the keyboard lid setting but it didn't work.
Is there a (easy?) way to get it to work without resorting to AVD with 2.2?
Thank you for your time.
Here is the answer: http://code.google.com/p/android/issues/detail?id=13189
Its a bug :D
I just downloaded the Android 3.0 SDK and booted up an emulator with it. I rotated the emulator to portrait mode with Ctrl-F12 and then opened and the activity that was build with 2.2 and the whole emulator is upside down ( as in the emulator is upside down, home buttons are on the top and screen is upside down) . Is there a way to rotate it the other way or am I missing something entirely? ( I have already tried doing Ctrl-F11 or the Num pad, same result)
open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu. It's only available from api-level 9 (2.3.1) and higher.
Well , there can be one of the 2 cases ,
1 - I misinterpreted your question , in which case i am extremely sorry
2 - The problem has been solved in the latest download of the android 3.0 Sdk(i just downloaded 1 right now )
Here , i am posting the screen shot of my AVD running 3.0 and a 2.2 Hello World Activity .
I had this same issue when I was forcing portrait by setting screen orientation to "portrait" in the manifest file. When I made my app support rotation, and switched screen orientation back to "unspecified" the issue went away.
If you don't want to support rotation, just change the manifest while you test, and before you open the app, rotate the emulator so it opens in portrait.
I encountered this problem on running the Android SDK (Eclipse) on an Intel (Core i5) Mac. I was able to fix it by disabling the "Use Host GPU" option for the AVD.
I had the same problem, in my case when I rotated the emulator to portrait, the "desktop" would show correct. However the app would run upside down.
(This worked for v4 Ice Cream)
So, in portrait mode, in the bottom right corner of the emulator, select the settings and set "Auto-rotate screen" to OFF.
Run the app now and it will show correct.
Some of the emulator targets like 4.4 (API level 19) and 2.3 have a bug. Change your emulator to target version 4.2 or 4.3 and try to change the orientation or try to disable hardware keyboard.
The same thing just happened to me with a KitKat emulator whenever I setup the AVD with a default orientation of Landscape. Switching the default to Portrait fixed the problem.
The easiest way to tackle that problem is to just flip the display of your host system.
On the Mac you can do this in System Preferences > Display on Windows there is a keyboard shortcut: ctrl + alt + arrow key. (see here: https://superuser.com/questions/554589/how-can-i-horizontally-flip-invert-my-monitor-not-rotate and here: http://osxdaily.com/2010/12/28/rotate-mac-screen-orientation/)
And if you have a standalone trackpad you can just turn it around physically to have your mouse pointer move naturally.
I just tested an app developed for Android 2 on the 3.2 emulator. The app supports only portrait mode, thus in default landscape mode of the emulator it's rotated by 90° (as on Android 2).
If however I rotate the emulator to portrait mode, the screen is shown reversed by 180°. That means, what should be on top is on the bottom of the screen and the other way round. It's not only the app, but also the Android status bar.
If I exit (background) the app, the issue disappears.
I've tested the app on several Phones and emulators, this never happened with Android 2. Can't test on a real Honeycomb device yet.
what version of android 2 are you developing, 2.1, 2.2, 2.3.1 or 2.3.3.
If it's 2.3.1 and higher then open your androidmanifest file. In the application tab select an activity. Then scroll down to screen orientation and select sensorPortait in the drop-down menu.
was fixed by changing the properties of config.ini in
%SYSTEM_DRIVE%\Users\%USER_NAME%\.android\avd\YOUR_AVD_NAME_HERE
form
skin.path=1280x720
to
skin.path=720x1280
hope that'd help you
You can rotate emulator screen by pressing 7 or 9 on numpad (windows)