투케이2K

826. (Android/Xml) [간단 소스] AndroidManifest 파일에서 프리퍼런스 데이터 미삭제 이슈 , 클라우드 백업 미설정 수행 본문

Android

826. (Android/Xml) [간단 소스] AndroidManifest 파일에서 프리퍼런스 데이터 미삭제 이슈 , 클라우드 백업 미설정 수행

투케이2K 2024. 8. 4. 13:45
반응형

[개발 환경 설정]

개발 툴 : AndroidStudio

개발 언어 : Java / Kotlin

 

[소스 코드]

 

==========================================================

[요약 코드]

        android:allowBackup="false"
        android:fullBackupContent="false"

==========================================================

[전체 코드]

    <application
        android:name=".A_Application"

        android:allowBackup="false"
        android:fullBackupContent="false"

        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"

        android:usesCleartextTraffic="true"

        android:largeHeap="true"

        android:hardwareAccelerated="true"

        android:screenOrientation="portrait"

        android:windowSoftInputMode="adjustPan"

        android:configChanges="keyboardHidden|orientation|screenSize"

        android:extractNativeLibs="true"

        android:requestLegacyExternalStorage="true"

        tools:replace="android:allowBackup">
        <!-- ============================================================= -->
        <!-- 1) android:allowBackup="false" | android:fullBackupContent="false" : 애플리케이션 삭제 후 재설치시 데이터를 초기화 시킨다 -->
        <!-- 2) android:icon="@mipmap/ic_logo" : 앱 설치 시 표시되는 아이콘을 설정한다 -->
        <!-- 3) android:label="@string/app_name" : 앱 설치 시 표시되는 이름을 설정한다 (string.xml 파일) -->
        <!-- 4) android:roundIcon="@mipmap/ic_logo" : 앱 설치 시 표시되는 아이콘을 설정한다 -->
        <!-- 5) android:supportsRtl="true" : RIGHT to LEFT 레이아웃을 지원한다는의미입니다 -->
        <!-- 6) android:theme="@style/AppTheme" : 기본 애플리케이션 및 액티비티 테마, 액션바 표시 여부를 설정한다 (styles.xml 파일) -->
        <!-- 7) android:usesCleartextTraffic="true" : http 를 사용할 수 있다 (보안 강화로 기본적으로 http 접근을 허용하지 않는다) -->
        <!-- 8) android:largeHeap="true" : 기본 애플리케이션 사용 메모리 용량 늘린다 (메모리 누수 위함) -->
        <!-- 9) android:hardwareAccelerated="true" : 기본 애플리케이션 성능 가속화를 허용한다 (모든 그리기 작업에서 GPU를 사용) -->
        <!-- 10) android:excludeFromRecents = "true" : 최근 앱 작업 목록에 남기지 않는다 -->
        <!-- 11) <uses-library android:name="org.apache.http.legacy" android:required="false"/> : apache http 클라이언트 이슈 방지 [application 내부 독립 구성] -->
        <!-- 12) android:screenOrientation="portrait" 항상 앱 화면을 세로 방향으로 표시하겠다-->
        <!-- 13) android:windowSoftInputMode="adjustPan" : 키보드 활성 시 ui 밀림 현상 방지 -->
        <!-- 14) android:configChanges="keyboardHidden|orientation|screenSize" : 액티비티 화면 가로, 세로 간 전환 시 초기화 방지 [1] -->
        <!-- 15) android:configChanges="orientation|keyboardHidden|keyboard|screenSize" : 액티비티 화면 가로, 세로 간 전환 시 초기화 방지 [2] -->
        <!-- 16) android:extractNativeLibs="true" : 액티비티 화면 가로, 세로 간 전환 시 초기화 방지 [2] -->
        <!-- 17) android:requestLegacyExternalStorage="true" : 안드로이드 파일 읽기, 쓰기 접근 허용 -->
        <!-- ============================================================= -->


    </application>

==========================================================

 

반응형
Comments