Hick
Hick

Reputation: 36374

How to make my app show up in the list of browsers when I click on any link in Android?

    <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:scheme="appname"/> 
</intent-filter>

I tried that but still my app won't show up in the list of browsers when I click on any link. What might be going wrong?

Upvotes: 0

Views: 219

Answers (1)

avepr
avepr

Reputation: 1896

use this 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:scheme="http"/>
        </intent-filter>

Upvotes: 3

Related Questions