Reputation: 22193
I want to open my activity when the user click on a link on my web page, pointing to an itr file, currently I've got:
<activity
android:name=".ui.Activity"
android:label="@string/activity_load"
android:theme="@android:style/Theme.Translucent.NoTitleBar">
<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" android:host="www.mywebsite.com" android:pathPattern="*.itr"/>
</intent-filter>
</activity>
The web page is opened on http://www.mywebsite.com/contents from this page the user can click on links to itr files. However my activity is not opened, any tips?
Upvotes: 0
Views: 76
Reputation: 3725
Just remove pathPattern from data
node in your intent-filter.
Path patterns restricts the uri to follow applied criteria check here
Upvotes: 2