Why does the android emulator does not rotate back? - android

I'm a Mac user. I just installed the Eclipse and Android SDK. However, I realised that when my emulator rotates from portrait to landscape, the view of the application does not turn back when I press fn+ctrl+11/12 again but the emulator does. This does not occur only on my app, it also occurs on the device program such as setting.
Does anyone know the reason behind it ? Please help. Thanks a lot.

You are probably running into a bug that occurs when the emulator runs certain versions of Android OS. For links, see my answer here: Android 2.3 emulator orientation changes

because each rotation is 90 degrees, the first time you tilt it, it will go sideways (90 deg). what you're experiencing when you tilt it again is that the emulator(phone) is now upside-down (180 deg). even normal android devices do not display portrait mode upside-down. tilt it two more times to go back to 0 degrees portrait.

Related

Google daydream - wrong initial camera orientation

I'm currently experiencing extremely strange behavior with Google Daydream on my Pixel 3 (Android 9 Pie). I simply load one of the Daydream demo scenes in Unity. A couple of months back, when I was first playing around with GVR everything worked fine.
However I just reinstalled the project and somehow the Daydream orientation is rotated by 90 degrees per default, which basically makes every application unusable if no additional correction is performed after initializing the application.
The following image should show the behavior I mean.
The Unity project is set up to only allow Landscape Left device orientation which is the default orientation for Daydream applications. Also auto-rotation is enabled in Android. Which should basically lead to a correct initialization of the application.
Might this be some internal Android issue? Or is there any global unity option that I might be missing here?
EDIT:
I couldn't figure out why the error occurred. A hard reset of the device was my final 'solution'.

In Android Emulator, the second time I rotate the device it does not re-orientate

Just wondering why the emulator only works on the first,third and fourth rotations and not the second as well. It rotates but the view is sideways after the second rotation.
That's because there is no such screen orientation for the chosen device. Your physical device wouldn't rotate upside down as well. This issue is not related to the emulator itself.

Genymotion Emulator - rotate is not working all of a sudden

I have been using the Genymotion Emulator for a few months now. The other day I went to rotate to landscape, and it won't let me.
Here's the things I've tried
Click the Rotate Device Icon
Downloading a fresh device configuration
Click CMD-F11 .. I see the Rotate Device Icon flicker as if it was touched, but again .. still does not rotate
Verified this is not at the app level, because I try it just from the Android desktop there .. no apps running
Can any one suggest a solution here
what am I missing?
do I need to reinstall Genymotion out right ?

Screen rotation not working as intended on some devices

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.

why does the gingerbread emulator orientation get stuck in apps?

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)

Categories

Resources