There is an activity. Depending on the orientation of the screen, different layouts are loaded for this activation. In onConfigurationChange () I say which layout to load. The layout loads fine, but the data is lost (the data is downloaded from the Internet to TextView). I override the TextView in onConfigurationChange (). What to do next? How to make TextView display data loaded in onCreate ()?

1 answer 1

Got it. It turns out that each TextView refers to an element of its layout. The problem can be solved only by explicitly saving the value of one TextView, and transferring this value to another TextView.