앱이 설치되었는데 아이콘이 안보이는 버그

울늘·2022년 7월 10일
0

기기나 애뮬레이터에 앱을 실행 시켰는데 앱은 설치되었는데 아이콘이 안보이는 경우에 manifest의 intent-filter가 잘못되었을 수 있다.

<activity
            
            .../>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />

                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />

                <data
                    android:host="@string/host_url"
                    android:scheme="https" />
                <data
                    android:host="@string/host_url"
                    android:scheme="http" />
               
            </intent-filter>
        </activity>

이런식으로 intent필터가 분리되지 않고 한 intent필터에 한번에 적혀있는 경우 앱 아이콘이 보이지 않는 버그가 발생한다. intent필터를 분리해서 작성하는 것에 유의하자

profile
주니어 안드로이드 개발자입니다!

0개의 댓글