We are working on our thesis project, it's actually a mobile POS system. I understand that the sales transaction should be in landscape due to it's complexity. The screen is divided into two, right side is for the inventory and left side is for computing the sale.

Our app is not limited to that, we also allow the user to add inventory, manage settings, etc. Like a regular app.

My question is, should I set my app's orientation to landscape? All of the activity?

Is it ethical for a mobile application to be always in landscape mode?

2 Answers

0
raj kavadia On

in the manifest file

 <application
    android:name="androidx.multidex.MultiDexApplication"
    android:allowBackup="true"
    android:appComponentFactory="whateverString"
    android:debuggable="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:screenOrientation="portrait"        //portrait or landscap
    android:supportsRtl="true"
    android:testOnly="false"
    android:theme="@style/AppTheme"
    android:usesCleartextTraffic="true"
    tools:ignore="GoogleAppIndexingWarning,HardcodedDebugMode"
    tools:replace="android:appComponentFactory"
    tools:targetApi="m">

make change there.

0
Community On

It depends on your requirements. Sometimes the whole app needs to run in landscape orientation, for example, most game applications.

In my case, my applications run in fixed portrait mode in some activities and in landscape in others. Keep in mind that your application could be installed also on tablets with big screen size, and therefore it could be suitable compatibility with both orientations.

I think the question should not be whether it is ethical or not since it does not depend on that but on the needs of the application.