The shortcuts for putting the Android emulator into landscape view do not work for me. Searching through related questions I see a lot of information about an old bug where the emulator would change orientations, but the rotation event would not be triggered. However, this is different, my emulator won't even change orientation (the keyboard shortcuts do nothing).
Attempting to turn off the portrait orientation in the emulator manager also does nothing, nor do any of the QEMU options relating to the display size (eg. I can't start it in fullscreen or change the geometry of the display at all).
This happens with both a 4.4 image or a 5.0 image. Keyoard support is on and works in general.
Is this a known issue, or is there some trick to getting newer versions of the Android Emulator to change orientation at all?
Related
This issue seems to occur on some Android devices, notably the Kindle Fire. I'm currently developping an app that runs in Landscape Right and Landscape Left modes, but it seems on some Android devices it starts up on one side then cannot be rotated afterwards.
I'm using Unity 4.3.4f, and my settings are set to support both landscape modes and is set on Auto-Rotation.
Also, I've made sure the problem isn't about the auto-rotation being locked on my device, so it must be something related to my app settings.
Any reason this works on some devices and not on others ?
Note : This issue doesn't occur on iOS devices.
UPDATE : This issue occurs only sometimes on some devices. Sometimes rotation will work fine, other times it just will stay stuck in one direction. Same build, upon killing the app and restarting it may work. Kinda confused as to why this is happening !
Check if in this devices you dont have the rotation blocked in settings.
this is my first post so please correct me if I do any mistake regarding rules :-)
Heres my problem:
I am trying to set a fixed screen rotation for all Apps on an Android device
(not just my App). I searched a lot but found only solutions for single Apps.
I had the following Ideas:
1) Use the API ==> seems not possible
2) Change accelerometer values ==> seems not possible
3) virtually open a hardware keyboard ==> seems not possible
Turning off autorotation keeps all Apps in portrait mode, but I would like all
Apps to be in landscape mode.
Can anybody help me please?
At least for Android 4.2. (Nexus 7) you can hold device in landscape mode and then disable autorotation. Afterwards all apps work in landscape mode.
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.
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)
At first I thought this was a problem with my app, but it seems to be happening in any app (though interestingly, not the home screen) in the gingerbread emulator.
To replicate my issue, open eclipse and fire up the android emulator for gingerbread (I'm using the "Google APIs - API Level 9" as my target)
So the procedure to duplicate once the emulator loads is
press LCtrl-F11 to shift orientation to landscape, then again to switch to portrait
Result:
In the homescreen:
The view rotates to landscape, and then back to portrait, as expected
In any app (i've tried browser, calculator, maps, and the app i'm currently working on):
the view rotates to landscape, and then nothing, it stays in landscape even the emulator is displaying the phone in landscape mode (see below)
Has anyone else had this issue, or have I installed the emulator in some incorrect way - this hasn't been an issue with any of the previous emulators
This is a bug with the Android emulator running 2.3.x. Bug is already acknowledged here
Actually, I have run into that problem occasionally before, though it does seem to get progressively worse with each passing tools release. There is nothing wrong with your installation or how you are using the program, AFAIK. You might try using Ctrl-F12 to switch back rather than Ctrl-F11 and see if that improves matters. I think the problem may stem from the emulator trying to emulate four-way orientation, but that is just a guess.
I just got stuck with the same problem in my own application. The app always stays in lanscape mode after using the camera. The only workaround I found is to click on the home button (emulator changes to portrait mode) and then click again on my application to get back to it also in portrait mode.
Did anybody report that bug already?
(Gingerbread emulator, Eclipse 3.5.x, Android Development Tools 8.0.1.v201012062107-82219)