
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.61 KB | hits: 37 | expires: Never
Android - matching a url pattern?
http://www.example.com/abc123/foo/xyz789
<activity>
<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="example.com"
android:pathPattern="/.*/foo/.*" />
myexample.com
myexample.com/whatever
<data android:scheme="http"
android:host="example.com"
android:pathPattern="/[^\/]*/foo/.*" />
http://www.example.com/.+/foo/.+