Android - Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23

app is not indexable by google search action-view android studio
<action android:name="android.intent.action.view" />
on sdk version 23 and up
implement google search in android app
android app indexing without website
launch android app from browser example
default activity not found
android:pathprefix

I am getting the following tool tip in 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.

Can anyone explain why it is so?

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.

<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

$ 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

App is not indexable by Google Search; consider adding at least , App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. 04/23/2017(edit04/23/2017) macOS Sierra; android sdk 25; Oracle jdk version 1.8.0_72; Android Studio 2.3.1; Android 7.1 (​API level 25) Since the above AndroidManifest.xml does not have Deep Link,  Android – Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23 . Posted by: admin December 31, 2017 Leave a comment

You can remove the warning by adding the below code in <intent-filter> inside <activity>

<action android:name="android.intent.action.VIEW" />

Making Your App Content Searchable by Google, Android – Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23. Posted by: admin December 31, 2017 Leave a comment. Android-Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23 (3) . I am getting the following tool tip in AndroidManifest.xml :

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.app"
tools:ignore="GoogleAppIndexingWarning">

You can remove the warning by adding xmlns:tools="http://schemas.android.com/tools" and tools:ignore="GoogleAppIndexingWarning" to the <manifest> tag.

Intents and Intent Filters, Create deep links to specific content in your app by adding intent filters in your app manifest. Verify ownership of your app content through a  Error: Intent filter. Consider adding at least one Activity with an ACTION-VIEW intent filter." Android + Facebook SDK : “Failed to authenticate the

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>

App Manifest Overview, An Intent is a messaging object you can use to request an action from Settings · Updates For versions earlier than Android 5.0 (API level 21), you can start a service by Figure 1 shows how an intent is used when starting an activity. If the result is non-null, there is at least one app that can handle the  App is not indexable by Google Search; consider adding at least one Activity with an ACTION-VIEW intent filter. See issue explanation for more details.

<data>, When packaging the app, the build tools replace this value with the Example: With the above manifest, an activity declared as <activity of intent filters (​defined with the <intent-filter> element), each one Beginning with Android 6.0 (​API level 23), the user can approve or Last updated 2020-05-01. <intent-filter> <action android:name="android.intent.action.EDIT" /> <action android:name="android.intent.action.VIEW" /> </intent-filter> To pass this filter, the action specified in the Intent must match one of the actions listed in the filter.

warnings in my code : App is not indexable by Google - android, Adds a data specification to an intent filter. a URI; at least one scheme attribute must be set for the filter, or none of the other URI attributes are meaningful. The Developer Preview for Android 11 is now available; test it out and share your feedback . Specifies the types of intents that an activity, service, or broadcast receiver can respond to. An intent filter declares the capabilities of its parent component — what an activity or service can do and what types of broadcasts a receiver can handle.

Android - Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23. Multi tool use. 127. 35. I am getting  Android - Adding at least one Activity with an ACTION-VIEW intent-filter after Updating SDK version 23 android android-intent android-manifest asked Dec 19 '15 at 6:09 stackoverflow.com

Comments
  • To see it in action, see here: stackoverflow.com/questions/56631387/…
  • @user25 scheme is the uri scheme, scheme can be http, https, ftp etc
  • well all of this for specific apps, then why show that warning? not all apps need this, not all apps are webview of some sites. Google is so annoying..
  • It can be suppressed anyway with tools:ignore="GoogleAppIndexingWarning"
  • Curious that the warning says you need an ACTION-VIEW intent-filter, yet the solution involves action.VIEW. Likewise, following the link in Android Studio takes you to a webpage where ACTION-VIEW does not appear. The least they could do with obtrusive warnings is give you accurate messages and help pages.
  • @ecle Where does one put this option? / Never mind; I found it: One has to add xmlns:tools="http://schemas.android.com/tools" to the manifest tag, then add tools:ignore... to the application tag.
  • This work's for me. I think this is the answer what I'm looking for.
  • This appears to be the correct solution if you don't want to enable app indexing. Rather than just removing the warning via tools:ignore="GoogleAppIndexingWarning". I added it as a sibling to <action android:name="android.intent.action.MAIN" /> in the main activity.
  • but why we need this line in code blindly ? any specific reason ?
  • @GhanshyamNayma adding this line just removes the warning. Without the extra code needed to add actual app indexing. Not exactly best practice, but I understand that warnings are annoying. I would just go with tools:ignore="GoogleAppIndexingWarning" instead because then you won't be adding an empty ACTION_VIEW. It might not cause any issues, but you always want to be safe.
  • ah so THIS is why so many random apps are showing up for ACTION_VIEW now... eesh
  • This works for me, and exactly the solution I was looking for.
  • This is the perfect solution.