Android respond only to a Sub-URI -
Android respond only to a Sub-URI -
my app able respond link in browser visiting example.com next code. question is, how can programme app respond
"http://example.com/#push/...". i have implement way, because if link contains specific path, should possible open link app. not in general. possible solution allow uri, one. app respond link one.
<intent-filter> <data android:host="example.com" android:scheme="http" /> <category android:name="android.intent.category.default" /> <category android:name="android.intent.category.browsable" /> <action android:name="android.intent.action.view" /> </intent-filter> i tried add together pathpattern, results in not opening link anymore:
<data android:host="example.com" android:pathpattern=".*push.*" android:scheme="http" />
you should seek with
<data android:host="example.com" android:pathprefix="/#push/" android:scheme="http" /> this way can check initial part of path. remember include leading / since path segment.
the official documentation has couple of examples on using element: http://developer.android.com/guide/topics/manifest/data-element.html
android
Comments
Post a Comment