876 questions
0 votes
1 answer
57 views
Wrong Android UI elements found after rotating phone when Biometric prompt is active
I am trying to deal with this new Landscape requirement nonsense. I also have this problem is also with a more complicated fragment but I noticed it happens with this as well and it is much easier to ...
0 votes
2 answers
113 views
Android APIs frequently return incorrect screen resolutions after device rotation
I need to know the dimensions of an app in pixels for screen capture purposes. Previously I used methods like getRealMetrics to get the resolution and this works flawlessly under normal circumstances ...
1 vote
0 answers
45 views
Compass drift issue when using FusedOrientationProvider's DeviceOrientation values
I'm trying to calculate the compass rotation in my viewmodel, The orientation data is provided by FusedOrientationProviderClient. Despite applying a low-pass filter to the azimuth value, the compass ...
0 votes
1 answer
207 views
Flutter(Android): How to enable landscape orientation on a specific screen while keeping portrait as the default?
I have a Flutter application currently targeting Android. For the entire app, I want to support only portrait orientations, so I've set it up as follows (in myapp widget): SystemChrome....
2 votes
0 answers
143 views
Force Jitsi android app to Landscape Mode Even When Device Orientation is Locked
I have downloaded the Jitsi sample app from GitHub: Jitsi Meet Android. When I start a conference call from the Android app, the phone's orientation defaults to portrait, and the orientation is locked ...
0 votes
1 answer
488 views
Rotate the app to landscape where app replies on sensors for rotation in mobile app automation
I am having mobile app which starts in portrait and then requires device to change orientation to landscape mode to continue. I was performing mobile automation on this app using appium 2 and appium-...
1 vote
0 answers
40 views
Android: Margins respond to taps. Portrait orientation app and horizontal tablet
I am developing an Android app in kotlin. I am trying to create an app with a fixed portrait orientation (landscape not supported). In the Android project creation, I selected "Basic Views ...
1 vote
0 answers
260 views
White screen appears on orientation changes in Android using jetpack compose
Hi all. I am facing an issue with my app. I am creating an app with Jetpack compose and on orientation changes the activity is recreating and before rotation the app goes in the white screen mode for ...
0 votes
1 answer
45 views
Android Studio Media Player won't stop after orientation change
If I change the orientation of the phone the music would keep playing which is good but it won't pause or stop either. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(...
0 votes
1 answer
73 views
Android Studio Progress Bar Orientation not saved
I currently have a progress bar that tracks the progress on music files however upon different orientation it doesn't seem to want to update and just stuck at the previous location ? private ...
0 votes
2 answers
147 views
Getting Portrait mode's height and width when the orientation is Landscape in OrientationEventListener in Android
I want to get the screen height and width when the device's orientation changes and I'm using OrientationEventListener instead of the onConfigurationChanged() method. For the below Code: 1)...
0 votes
2 answers
90 views
How to use landscape and portrait layout?
I have an activity and several fragments(they are called fragmentA and fragmentB). Now fragmentA need to have both portrait and landscape layout. fragmentB have to keep portrait. The activity shows ...
1 vote
3 answers
2k views
How to do Responsive UI using Compose with Kotlin for Mobile and tablet
I have a case like using a single Compose UI for both the mobile and Tablet in both orientations (Portrait and Landscape), I have a simple login design which is developed for mobile but I need this to ...
0 votes
1 answer
53 views
Radio button not showing selected by default while orientation change
I added a RadioGroup which contains 3 RadioButtons and by default first one should be selected so added android:checked="true" in xml. Now when device orientation getting changed to ...
0 votes
2 answers
468 views
How to use setRequestedOrientation
I am using Visual Studio 2019, C#, for Android. I am trying to set the orientation and lock it. When I follow the examples, I get the error message: The name 'setRequestedOrientation' does not exist ...