Android Emulator - The camera always takes photo in landscape mode? - android

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?

Related

Android Studio, emulator using webcam has landscape orientation instead of portrait

I'm currently trying to test an application through a Pixel 4 AVD in Android Studio. Switching the camera in my emulator to use my webcam worked, as I can see an image, but for some reason it is depicting my webcam image in landscape mode, even though the camera in the emulator is in portrait mode. Any help with fixing this would be appreciated.
Try to add another device in AVD manager and remove this one.

Some part of touch screen not working

I am working in an android project targeted for Samsung Galaxy Tab E in Landscape.
The android application starts on boot(as per requirement), after booting, Android by default loads in portrait and switches to Landscape quickly.
The app is already started(Though screen is locked), but the working area in app would be only the width equal to the width in portrait.
This issue appears when screen is locked and orientation of tablet is set to Landscape.
With reference of attached picture in link https://i.stack.imgur.com/4K5Ul.png.
P : is screen when in portrait.
L : is screen when in Landscape.
A : is working portion of L (Whose width is equal with width in portrait mode)
B : is NON-working portion of landscape.
This issue is resolved, and I have explained my case and solution which might be useful for other developers with similar issue.
The issue was not with android application itself. The issue was because android starts my application before boot completion. In my project, android app would run in accessory mode, controlled from another device.
Once the external device gets tablet during restart/power on, my android application starts to run before boot completion, I made another application (app of external device) which sends request to accessory device to sleep for a while when new device is found, so that tablet has enough time to boot and can start app.
Thank you!

how keep screen in landscape mode after locking and unlocking the device?

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?

Is it possible to rotate the home screen in the Eclipse Android emulator?

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

Strange keyboard layout after running my app

Currently I'm developing android app uses Camera, SurfaceView, GMaps, GPS and fullscreen mode without ability to rotation.
What I'm surprised about is that sometimes after starting my app I see corrupted layout for cifiral keyboard of my HTC Desire phone.
Here is a screen:
And this is how it have to be if OK:
Could you please explain what is the reason of this strange phone behavior?

Categories

Resources