Android simulator into landscape - android-emulator

I haven't figured out how to put the Android emulator into landscape. I want to test the landscape design of a layout, but how should that be done ?

For short cut once your emulator start click CTRL F11 and for reverse also you can do the same and you can test in both mode .

Related

How to get Android emulator to rotate its window

The new Android emulator installed with Android Studio Bumblebee has two buttons in its toolbar to rotate the emulated device 90 degrees clockwise or anticlockwise. On the old emulator rotating the device would rotate the emulator's window as well, but on the new one it doesn't.
So if you start the emulator in portrait mode and rotate you get a tiny landscape device image stuck across the middle of the emulator's portrait window, and if you start the emulator in landscape mode and rotate you get a tiny portrait device image stuck up the middle of the emulator's landscape window.
Is there any way to recreate the old behaviour where pressing the rotate buttons would rotate the emulator's window to fit the rotated phone image inside it?
[Running on Linux with kde window system, in case it make any difference]
I think to recreate old behavior with regards to separate emulator window and rotation you may want do the following:
1. Disable the docking and may be open in Window mode to keep emulator window separate from the main IDE as shown below
2. To rotate, Virtual sensors option can be utilized as follows. Steps are marked 1,2,3 & 4. Beware seems the button marked 4 only appears for few seconds.
Also, one can horizontally expand the emulator window pane when device is in landscape position, to get a feel of landscape window like below:
Following blog post can also be helpful in this regard:
https://android-developers.googleblog.com/2020/10/android-studio-41.html
In case important e.g. if options do not appear the same, i'm using Moonlight(Material) theme

iPhone app incorrect autoresizing on iPad

I have developed iPhone app. When i try to run this app in iPad simulator, it doesn't show me 1x/2x zoom button but application autoresize view in wrong way.
I don't want to make ipad native nibs/views so i need to disable autoresing the application.
Can somebody help?
EDIT: In 'Summary' tab, is 'iPhone' selected in the Devices drop-down menu.
EDIT2: When starting application, splash screen loads correnctly in small 1x window, than when firt view loads it switches to full screen.
Go to the Target's settings, 'Summary' tab, and choose 'iPhone' instead of 'Universal' in the Devices drop-down menu.
Go in your Application-Info.plist and check if there is something with iPad.
On a project, I started with doing an app Universal, only developped the iPhone theme. Then, to show to the client a pre-version, I tested on an iPad and the screen was quite reverse (iPhone : Portrait mode, iPad Landscape). I figured that in the Info.plis there was still the iPad : Landscape. Maybe something like that.

Emulator Problem

When I'm lunching an app the emulator is to big for the screen and it is on the side.
What to do?
Thanks,
Nahum
You should learn emulator tutorial and also see here: emulator
The emulator screen can be rotated by pressing:
F11
7 on your Number pad
Which one to use may vary by machine.
Just try it by changing orientation or you can reduce screen resolution when you create avd it'll ask for skin select hvga.If you want to modify current emulator screen size just go to window--->sdk and avd manager--> and it'll display list of avds you have select one avd and edit it's skin property to hvga or whatever you want.

Landscape mode not working with no keyboard in AVD?

I've created two AVDs, one with hardware keyboard, and other without..the one with keyboard shows the landscape mode in the android screen when I click CTRL + F11/F12 or 7/9 on numpad, but in the AVD with no hardware keyboard, the hardware things all change orientation, like the first AVD, but the android screen stays and doesn't change orientation to landscape, like this: http://img571.imageshack.us/img571/3624/landscapeh.jpg
This is a bug in the 2.3 AVD and it is already answered here
Android - Emulator in landscape mode, screen does not rotate
Run 'Android SDK and AVD Manager'
Select AVD
Edit
check Keyboard lid support
if value is no, set to yes.
Run AVD and try
Good luck!!
I had the same problem with an API 19 (Android 4.4.2). I had wanted to only support running in Landscape mode. Despite setting Orientation to Portrait when editing the device (under Startup size and orientation), the device would always start Portrait.
I ended up manually switching the width and height in the hardware-qemui.ini file.
So, edit this file in a text editor:
C:\Users\<user>\.android\avd\<deviceName>.avd\hardware-qemu.ini
Switch the values of the width and height, so that the width is longer than the height:
hw.lcd.width = 800
hw.lcd.height = 480
The AVD now boots in Landscape mode. The orientation may still be changed with shortcut keys.

TV out window in iPad simulator disappears on landscape mode

I'm making an app for the iPad with TV output to an extra screen. Everything works fine, but for some reason the TV out window disappears when I put the iPad in landscape mode. I commented all the code that makes it go to landscape automatically but as soon as I rotate in iPhone simulator, the tv output window goes away.
Is it just not possible to have the device in landscape mode with an extra screen or is there something I'm overlooking?
Thanks in advance.
I've noticed there's a CALayer use-after-release bug in iOS7.0.3 simulator when you have setup an External Screen triggering at some point, but a later iOS7.1 fixes that. Can you confirm if you have the problem with iOS 7.1 ?