I made a game with Adobe AIR and ActionScript 3 for Android devices.
My problem is with landscape mode. Everything is fine as long as the device get lock screen.
When you open the screen and return to the game, it has changed from landscape to portrait mode.
I fixed this with:
stage.addEventListener(Event.ACTIVATE,Activate);
into Activate function: stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
into Activate function: stage.displayState = StageDisplayState.FULL_SCREEN;
portrait problem is fixed but FULL SCREEN is with android titlebar... How can I fix it?
Related
I've just noticed this quirk with android emulators. They seem to always photo in landscape mode, even when the phone is in portrait mode. This isn't a problem when running the actual code on a live device.
Why does android emulator do that?
I'm currently trying to run an Android application on a BlackBerry Q10. The application forces itself into landscape mode, but Q10 does not support it.
I've already tried changing the AndroidManifest.xml file (changing landscape mode to portrait mode), the splash screen runs perfectly in portrait mode, the rest won't load (screen turns black) because it still forces itself into landscape mode.
Can someone help me with this?
Regards
I'm working on an application that will appear on the home screen that I've been testing on my phone in debug mode. However, none of the five phones I have will switch the home screen into portrait mode, making it impossible to test my app in portrait mode. I know that ctrl+F11 will rotate the emulator between portrait and landscape modes. However, much like my physical phones the emulator, when rotated to landscape, simply displays everything sidewise at a 90 degree angle.
Is there a way that the emulator can be setup to allow a landscape home screen? If not, how does one test an application that requires that short of buying one of the few phones that support it?
you can press Numpad 7 to rotate the emulator
My app runs in landscape mode.
I have android:screenOrientation="landscape" set in AndroidManifest.xml file.
If the screen orientation of the device is locked to portrait mode, then my app still runs in landscape mode. But the gallery activity started from within the app runs in portrait mode.
Is there any way to force gallery activity to always run in landscape mode?
As long as the device is locked to portrait mode, There is no way to achieve this.
Of course you could try to change the device orientation to landscape (in your app) so that the gallery runs in landscape but this will cause a confusion to the user.
I want the home screen and the lock screen to be in the landscape mode. I used this app and able to make the home screen to stay in landscape mode but the lock screen is still in the portrait mode. I would like to know how this app changing the orientation of the home screen and is it possible to change the orientation of lock screen to landscape without installing some other third party lock screen.
I am only looking for the solution that works on Nexus 7.
Google has released a new version for Nexus 7 Android 4.1.2 which supports both home screen and the lock screen in the landscape orientation. Please update your software..