Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <activity android:name="MainActivity">
- <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" />
- <data android:host="subdomain1.example.com" />
- <data android:host="subdomain2.example.com" />
- <data android:host="subdomain3.example.com" />
- </intent-filter>
- </activity>
- <activity android:name="MainActivity">
- <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" />
- <data android:host="subdomain1.example.com" />
- <data android:host="subdomain2.example.com" />
- <data android:host="subdomain3.example.com" />
- <data android:path="/path1" /> <!-- matches /path1 only -->
- <data android:pathPrefix="/path2" /> <!-- matches /path2, /path2/something or also /path2?key=value etc... -->
- <data android:pathPattern="/wild.*" /> <!-- matches /wild, /wild3, /wilderness etc... -->
- </intent-filter>
- </activity>
- http://example.com/gizmos?1234,
- http://example.com/gizmos/1234,
- http://example.com/gizmos/toys/1234,
- etc.
- <activity android:name="com.example.android.GizmosActivity" android:label="@string/title_gizmos" >
- <intent-filter android:label="@string/filter_title_viewgizmos">
- <action android:name="android.intent.action.VIEW" />
- <category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.BROWSABLE" /> <!-- Accepts URIs that begin with "example://gizmos” -->
- <data android:scheme="example" android:host="gizmos" />
- </intent-filter>
- <intent-filter android:label="@string/filter_title_viewgizmos">
- <action android:name="android.intent.action.VIEW" />
- <category android:name="android.intent.category.DEFAULT" />
- <category android:name="android.intent.category.BROWSABLE" />
- <!-- Accepts URIs that begin with "http://example.com/gizmos” -->
- <data android:scheme="http" android:host="example.com" android:pathPrefix="/gizmos" />
- </intent-filter>
- </activity>
- <?xml version="1.0" encoding="utf-8"?>
- <search-engine xmlns:android="http://schemas.android.com/apk/res/android">
- <noindex uri="http://example.com/gizmos/hidden_uri"/>
- <noindex uriPrefix="http://example.com/gizmos/hidden_prefix"/>
- <noindex uri="gizmos://hidden_path"/>
- <noindex uriPrefix="gizmos://hidden_prefix"/>
- </search-engine>
- <?xml version="1.0" encoding="utf-8"?>
- <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.Gizmos">
- <application>
- <activity android:name="com.example.android.GizmosActivity" android:label="@string/title_gizmos" >
- <intent-filter android:label="@string/filter_title_viewgizmos">
- <action android:name="android.intent.action.VIEW"/> ...
- </activity>
- <meta-data android:name="search-engine" android:resource="@xml/noindex"/>
- </application>
- <uses-permission android:name="android.permission.INTERNET"/>
- </manifest>
Add Comment
Please, Sign In to add comment