티스토리 뷰
Stack Overflow에 자주 검색, 등록되는 문제들과 제가 개발 중 찾아 본 문제들 중에서 나중에도 찾아 볼 것 같은 문제들을 정리하고 있습니다.
Stack Overflow에서 가장 먼저 확인하게 되는 가장 높은 점수를 받은 Solution과 현 시점에 도움이 될 수 있는 가장 최근에 업데이트(최소 점수 확보)된 Solution을 각각 정리하였습니다.
아래 word cloud를 통해 이번 포스팅의 주요 키워드를 미리 확인하세요.

Android - Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23
안드로이드 - SDK 버전 23 업데이트 이후 ACTION-VIEW 인텐트 필터가 있는 적어도 하나의 액티비티 추가
문제 내용
I am getting the following tool tip in AndroidManifest.xml:
AndroidManifest.xml에서 다음 툴팁을 받고 있습니다:
App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent-filler. See issue explanation for more details.
Adds deep links to get your app into the Google index, to get installs and traffic to your app from Google Search.
앱이 Google 검색에 의해 색인화되지 않습니다. 적어도 하나의 ACTION-VIEW 인텐트 필터가 있는 액티비티를 추가하는 것을 고려하십시오.
자세한 내용은 문제 설명을 참조하십시오. 딥 링크를 추가하여 Google 색인에 앱을 추가하고 Google 검색에서 앱에 대한 설치 및 트래픽을 얻으십시오.
Can anyone explain why it is so?
왜 그런지 설명해주실 수 있나요?
높은 점수를 받은 Solution
From official documentation :
공식 문서에서는 다음과 같이 설명하고 있습니다.
To enable Google to crawl your app content and allow users to enter your app from search results, you must add intent filters for the relevant activities in your app manifest. These intent filters allow deep linking to the content in any of your activities. For example, the user might click on a deep link to view a page within a shopping app that describes a product offering that the user is searching for.
구글이 앱 콘텐츠를 크롤링하고 사용자가 검색 결과에서 앱으로 진입할 수 있도록하려면 앱 매니페스트에서 관련 액티비티에 대한 인텐트 필터를 추가해야합니다. 이 인텐트 필터를 사용하면 사용자가 해당 액티비티 내의 콘텐츠를 딥 링크하여 이동할 수 있습니다. 예를 들어, 사용자가 검색하는 제품을 설명하는 쇼핑 앱의 페이지를 보려면 딥 링크를 클릭할 수 있습니다.
Using this link Enabling Deep Links for App Content you'll see how to use it.
이 링크를 사용하면 앱 콘텐츠에 대한 딥 링크를 활성화하는 방법을 알 수 있습니다.
And using this Test Your App Indexing Implementation how to test it.
이 링크를 통해 앱 콘텐츠의 딥링크 기능을 활성화하는 방법을 알아볼 수 있습니다. 그리고 이 링크를 통해 구현한 앱 인덱싱을 테스트하는 방법을 확인할 수 있습니다.
The following XML snippet shows how you might specify an intent filter in your manifest for deep linking.
다음 XML 코드 스니펫은 딥링크를 위한 매니페스트에서 인텐트 필터를 지정하는 방법을 보여줍니다.
<activity
android:name="com.example.android.GizmosActivity"
android:label="@string/title_gizmos" >
<intent-filter android:label="@string/filter_title_viewgizmos">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
<data android:scheme="http"
android:host="www.example.com"
android:pathPrefix="/gizmos" />
<!-- note that the leading "/" is required for pathPrefix-->
<!-- Accepts URIs that begin with "example://gizmos” -->
<data android:scheme="example"
android:host="gizmos" />
</intent-filter>
</activity>
To test via Android Debug Bridge
Android Debug Bridge를 통해 테스트하는 방법
$ adb shell am start
-W -a android.intent.action.VIEW
-d <URI> <PACKAGE>
$ adb shell am start
-W -a android.intent.action.VIEW
-d "example://gizmos" com.example.android
가장 최근 달린 Solution
Adding this intent filter to one of the activities declared in app manifest fixed this for me.
앱 매니페스트에 선언된 액티비티 중 하나에 이 인텐트 필터를 추가했더니 이 문제가 해결되었습니다.
<activity
android:name=".MyActivity"
android:screenOrientation="portrait"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.VIEW" />
</intent-filter>
</activity>
출처 : https://stackoverflow.com/questions/34367875/android-adding-at-least-one-activity-with-an-action-view-intent-filter-after-u
'개발 > 안드로이드' 카테고리의 다른 글
탭 호스트 액티비티에서 결과(startActivityForResult) 반환하기 (0) | 2023.01.03 |
---|---|
인텐트의 모든 extra 데이터 출력하기 (0) | 2023.01.03 |
모든 이전 액티비티 종료하기 (0) | 2023.01.01 |
안드로이드에서 커스텀 다이얼로그 박스 만들기 (0) | 2023.01.01 |
shared preference 사용하기 (0) | 2022.12.31 |