I recently started creating a mobile application on the google nexus 7. I have previously tested this application on the kindle fire and both portrait and landscape mode worked on all screens but when I upload the application onto the nexus the application always stays in portrait.
Has anyone run into this or know why the nexus only shows my application in portrait mode?
Is your device rotation lock turned on? It's in the quick pull down menu.
Related
I've just deployed the "first app" demo from Android Studio on a Nexus 10 emulator and on my physical Nexus 10 (API 22 / Lollipop 5.1).
On the emulator, when I change the orientation, the app rotates, but on my physical device it doesn't, it's stuck in landscape.
I've checked VLC rotates fine on my physical device for example, so the sensor is not the problem.
If you want to change your screen orientation based on sensors use the below code
activityContext.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR);
Thats what VLC does rotates screen based on Sensors.
This device:
https://www.amazon.de/Sony-Tablet-PC-Touchscreen-GHz-Quad-Core-Prozessor-interner/dp/B00IN1N66I
Sony Xperia Tablet Z2 SGP511 (10,1") Tablet-PC (Touchscreen, 2,3
GHz-Quad-Core-Prozessor, 3GB RAM, 16GB)
Android version 5.1.1 (Lollipop)
I'm developing an app with cordova (hybrid) and the screen gets blurry sometimes for no appearant reason.
This usually goes away when I tap the screen in a random place inside the div or element that is blurry.
Blurry:
=============================================
Clear:
The application gets blurry only while remotely debugging the android device. So it isn't an issue or some error. Blur goes away either when tapping the application or by disconnecting the device from the computer.
I am having some problems with my phone camera (I am using Sony Xperia Z1 Compact) because the camera is always on Landscape mode when I launch it via the intent and therefore the photo is rotated when taken in portrait mode. This issue doesn't exist on Nexus 5. How can I solve it ? The exif returns always 0 because it's locked on landscape
I would recommend to create different layouts for each portrait and landscape mode. How to
On the other hand, there might be the problem with device, test it with other apps from store.
i have created an application which is only work on potrait mode, Samsung screening review give a issue application work on landspace mode on Mid-end Galaxy (LQVGA), They also give video for same to identify, i found they are right, My app show in landscape mode for that device, but i am not able to find the reason, Why this is happen, because except that device my app work fine on all device, i also find device name is Galaxy M pro , i am attaching file screen shot of issue, please suggest me any way to resolve this issue, i already added android:screenOrientation="portrait" that in all activity of manifest.xml file
I just tested an app developed for Android 2.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.2).
If however I rotate the emulator to portrait mode, the screen is shown completely reversed by 180°. That means, what should be on top is on the bottom of the screen. It's not only the app, but also the Android status bar but, if I exit the app, the issue disappears.
I've tested the app on several Phones and emulators, this never happened with Android 2.2 or 2.3 it just happens with 3.0, 3.1 and 3.2. Can't test on a real Tablet device yet. Thanks.
remove this from your activity in manifest file
android:screenOrientation="portrait"