0

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?

Zong
  • 5,701
  • 5
  • 27
  • 46
greywolf82
  • 20,269
  • 17
  • 45
  • 90

1 Answers1

2

Just remove pathPattern from data node in your intent-filter. Path patterns restricts the uri to follow applied criteria check here

Nayan Srivastava
  • 3,298
  • 3
  • 24
  • 47