Programming/android2020. 6. 7. 11:11

되긴 한데.. 경고가 뜨네?

이거 말고 이전에 MainActivity.java 에서 강제로 방향 설정할때도 경고 뜨던데.. 그냥 무시해도 되려나?

 

 

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.rpiremotecontrol">

    <uses-permission android:name="android.permission.INTERNET" />

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity"
            android:screenOrientation="landscape"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

[링크 : https://alvinalexander.com/.../how-do-i-make-my-android-app-display-landscape-mode-only/]

Posted by 구차니

댓글을 달아 주세요