android-orientation Questions
3
As a test sample, there is an application with 2 activities: MainActivity that launches SecondActivity on button click.
It works fine on Android 4.0.4, but on Android 4.1.2 I encountered unexpected...
Chadwell asked 19/12, 2012 at 15:26
3
Solved
I have an Add Shopping List item Jetpack Compose screen which contains several TextField inputs and an image container at the bottom. The screen overflows at the bottom and is cut off. How can I sc...
Conal asked 27/6, 2022 at 9:0
32
Solved
How can I disable landscape mode for some of the views in my Android app?
Whiteness asked 24/2, 2009 at 15:29
15
Solved
I have an application that I just would like to use in portrait mode, so I have defined
android:screenOrientation="portrait" in the manifest XML. This works OK for the HTC Magic phone (and prevents...
Predikant asked 2/10, 2009 at 22:12
18
Solved
My main activity has some code that makes some database changes that should not be interrupted. I'm doing the heavy lifting in another thread, and using a progress dialog which I set as non-cancell...
Hu asked 31/8, 2010 at 17:11
1
In android-13 devices, am facing issue with playing video within the exoplayer. when user rotates them devices video player will be set to full screen. but in this case rotating device can changes ...
Ker asked 28/12, 2022 at 12:40
6
I have followed Google CameraX code lab to implement custom camera. Camera preview is fine but when i take image after image capture image is rotated. I am taking image in portrait mode but saved i...
Golconda asked 16/9, 2020 at 13:35
2
TLDR: I need a way to disable Android 10 gesture navigation programmatically so that they don't accidentally go back when they swipe from the sides
The backstory: Android 10 introduced gesture nav...
Sympathizer asked 10/4, 2020 at 21:42
9
Solved
I'm trying to controlling the Android camera to take pictures in a portrait app, but when I save the picture, it's in landscape. I've rotated the image 90 grades with setCameraDisplayOrientation() ...
Blus asked 4/4, 2013 at 10:32
9
Solved
Inside my fragment I'm setting my GridLayout in the following way:
mRecycler.setLayoutManager(new GridLayoutManager(rootView.getContext(), 2));
So, I just want to change that 2 for a 4 when the use...
Hectometer asked 11/4, 2015 at 15:49
1
Solved
From the documentation, which says:
Use the default value of SENSOR_DELAY_NORMAL for simple screen orientation change detection.
Does it mean that if I don't include the sensor rate in the constr...
Hun asked 14/4, 2021 at 21:46
7
Solved
My app has a single Activity with a FragmentPagerAdapter with four fragments (Using the ViewPagerIndicator library). One of these fragments has designs for both a separate portrait and landscape la...
Valenza asked 6/11, 2012 at 13:19
7
Solved
I have a simple project that just show the camera with org.opencv.android.JavaCameraView.
my problem is that in default the camera is on landscape mode and I can't change this cause I need to defi...
Poleaxe asked 21/5, 2013 at 12:15
2
Solved
In my android app i have panorama image and i am rotating this image according to phones motion using TYPE_ORIENTATION sensor it is working fine for both landscape and potrait. Here is the code for...
Titular asked 28/9, 2012 at 10:9
3
I have two activities named
'First' and 'Second'
when I call startActivityForResult() method in the first activity will go to second activity and take some data and come back.
If the orientation...
Slab asked 28/7, 2013 at 19:41
3
I am working in an android application in 2.2 and I want to set my application in landscape mode.
For that I added in my manifest with every activity tag android:screenOrientation="landscap...
Ariew asked 15/6, 2012 at 5:46
2
Solved
I am using my Mac webcam to simulate an Android front-camera in the emulator. Unfortunately the camera seems in landscape orientation - screenshot, even though the emulator is in portrait one.
Not...
Gasbag asked 25/4, 2017 at 8:37
16
I am using the Android VNC viewer on my HTC G1. But for some reason, that application is always in landscape mode despite my G1 is in portrait mode. Since the Android VNC viewer is open source, I w...
Xyloid asked 27/1, 2010 at 21:14
3
I have a fragment with EditText and add it into the layout using transactions. But if I rotate to landscape the soft keyboard disappears.
public class MainActivity extends AppCompatActivity {
@O...
Overrate asked 8/11, 2016 at 0:37
2
I am currently working on an Android application in which one I would like to :
disable the rotation on smartphone ;
enable the rotation on tablet.
In order to to do that, I cannot set the rota...
Metabolism asked 4/6, 2019 at 16:30
1
Solved
I would like to confirm that what I am doing is indeed the correct way as some elements behave unexpected.
First, I have a landscape and portrait layout, as I understand, doing this will automatic...
Lw asked 25/7, 2017 at 5:43
2
I want to prevent youtube fragment view from reloading when orientation changes in my app. I am using YouTubeAndroidPlayerApi.jar
I am already added android:configChanges="orientation|screenSize",...
Ashliashlie asked 3/5, 2019 at 16:4
2
Solved
I'm coding a custom Activity class (using it as a super class for my other Activity classes) where it's overriding many default functionalities. One of these functionalities I want is orientation h...
Effusive asked 30/8, 2011 at 15:31
4
I now have 2 fragment, one fragment handle portrait mode then another handle landscape mode. But the problem is that when rotate from portrait to landscape then back to portrait. It will not show t...
Hopefully asked 22/6, 2016 at 3:22
9
Solved
In my app I have TextView and EditText. Both have data in it. When the screen orientation changes the data in the EditText remains, but TextView data is cleared.
Can some one help me out to find a...
Insubstantial asked 3/3, 2011 at 10:47
1 Next >
© 2022 - 2025 — McMap. All rights reserved.