Disabling landscape mode is unforgivable?

Our application can support landscape mode without any problems, but this is such a pain that we are thinking about forcing portrait mode .

Question: Is this a bad?

The main problem is that orientation changes generate random crashes on many screens. Preventing these crashes will potentially allow us to devote more time to the main aspects of the application. Will the same crashes happen when users switch applications anyway?

In addition, are there landscape devices where our application will become useless?

+3
source share
3

, .

, :

Android- , . HTC G1.

, , , . , , , Android-. . , , .

, , .

: . , , .

+7

, , .

, , , . , Android .

+2

The crashes are probably caused by a reset of activity when the orientation changes. With a configuration change, you can prevent this by not forcing the application to be in portrait mode all the time. Add a line of configuration changes and this will prevent a restart of activity.

<activity 
android:name=".active.help.HelpMenu" 
android:label="@string/help_string"
android:configChanges="keyboardHidden|orientation">
+1
source

Source: https://habr.com/ru/post/1781673/


All Articles