Changing App Behavior for Android Apps

I have finished developing an application for Android and in the process of testing. I tested it using a simulator, and everything works fine, but when I deploy it on devices, some of them, when the screen orientation is changed, the application screen flickers.

Any clue where to start researching a problem with?

+3
source share
2 answers

When the orientation changes from portrait to landscape or vice versa, onCreate is called again, which makes the application start from the beginning. Make sure you handle it in the manifest by declaring android:configChanges="keyboardHidden|orientation"infront of your class name or by overriding the function onConfigChanged().

+1
source

, , - , .

0

All Articles