onconfigurationchanged Questions

14

Solved

I am trying to prevent dialogs built with Alert builder from being dismissed when the Activity is restarted. If I overload the onConfigurationChanged method I can successfully do this and reset th...
Remorse asked 26/9, 2011 at 15:14

5

Solved

I've been looking at issues in stackoverflow and I've tried everything I've seen but the layout-land not work. In my code I have and the method onConfigurationChanged @Override public void onConf...

1

Solved

I am using the Android navigation component and I have an activity with three fragments if I am in the second fragment and rotate the screen forcing the activity to restart the navigation is return...

3

I've observed some crashes among the users of my app which is related to a configuration change and the Activity being recreated, I was not able to reproduce it. The issue seems to be inside the An...
Quota asked 14/7, 2019 at 9:46

1

I would like to know if Android has any flag to be added into configChanges in an Activity attribute in the AndroidManifest for modifications in the Invert Colors option of the device. The android...
Exhortative asked 28/1, 2020 at 14:42

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...

4

I would like to now if the is any possible way to trigger an event when the layout is being redrawn because of the event of switching directly from landscape right orientation to landscape left ori...

4

Solved

Background I have an app (here) that has Admob banners in it, and I don't like the fact that the banners get re-loaded every time I change orientation, so for a long time I had the same workaround...
Maintenon asked 22/7, 2018 at 20:48

8

When a config change happens, my ListView Checkbox states get lost, which I understand why. I try to implement public void onSaveInstanceState(final Bundle outState) in one of my Fragments. So ...
Twibill asked 29/6, 2012 at 23:29

3

Solved

One of our views has a ScrollView as its root layout. When the device is rotated and onConfigurationChanged() is called, we'd like to be able to get the ScrollView's new width/height. Our code look...
Whinstone asked 26/3, 2010 at 16:0

2

Solved

I have a listview with two buttons in my main.xml layout. On click of one button i'am creating a textview dynamically and adding it at the bottom of the screen to confirm the user interaction. When...

3

Solved

I am using a tabbed application. There is an EditText my application. When I click on the EditText, the window is getting resized and the virtual keyboard is displaying at the bottom of the window....
Kalakalaazar asked 3/3, 2011 at 12:38

0

Based on the accepted answer here, I added this code to an Activity as what I hoped to be the first step in changing the assigned Layout for an Activity: @Override public void onConfigurationChang...

1

Solved

After screen rotating, the height of one of view object is changed, I want to know the height value in pixel. The onConfigurationChanged method is likely called before view finishing rotation. So ...
Carlita asked 26/7, 2013 at 8:4

1

Solved

I have this code in a fragment public class TestOne extends Fragment { View view = null; @Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(...

2

Solved

Hi and thank you for any help. I am only at the very beginning of configuring my code to handle rotation: I have implemented onDestroy(), but not yet any onSaveInstanceState() or onRetainNonConfig...

2

I have an activity with a dual pane: a list of menu items on the left (fragment M) and details of the currently selected item on the right (fragment D). When the user selects an item in fragment D...
Fitz asked 3/4, 2012 at 18:45

2

Solved

I have a small activity with an EditText and an imageview and a button. When you press the button it launches camera for result, and when it returns it changes the imageview to the picture you've j...

2

Solved

I'd like my VIEW layout to be adjusted on orientation change. My Manifest is set up with: android:configChanges="keyboardHidden|orientation" on the activity. I have res/layout-land, res/layout-po...

1

Solved

I want to make an activity that allows orientation changes on some condition, but not otherwise. More exactly I want to prevent restarting the activity when a background thread is busy. I have put...
Comprehend asked 19/3, 2010 at 7:28
1

© 2022 - 2024 — McMap. All rights reserved.