daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <activity android:name="MainActivity">
  2.     <intent-filter>
  3.         <action android:name="android.intent.action.VIEW" />
  4.         <category android:name="android.intent.category.DEFAULT" />
  5.         <category android:name="android.intent.category.BROWSABLE" />
  6.         <data android:scheme="http" />
  7.         <data android:host="subdomain1.example.com" />
  8.         <data android:host="subdomain2.example.com" />
  9.         <data android:host="subdomain3.example.com" />
  10.     </intent-filter>
  11. </activity>
  12.    
  13. <activity android:name="MainActivity">
  14.     <intent-filter>
  15.         <action android:name="android.intent.action.VIEW" />
  16.         <category android:name="android.intent.category.DEFAULT" />
  17.         <category android:name="android.intent.category.BROWSABLE" />
  18.         <data android:scheme="http" />
  19.         <data android:host="subdomain1.example.com" />
  20.         <data android:host="subdomain2.example.com" />
  21.         <data android:host="subdomain3.example.com" />
  22.         <data android:path="/path1" /> <!-- matches /path1 only -->
  23.         <data android:pathPrefix="/path2" /> <!-- matches /path2, /path2/something or also /path2?key=value etc... -->
  24.         <data android:pathPattern="/wild.*" /> <!-- matches /wild, /wild3, /wilderness etc... -->
  25.     </intent-filter>
  26. </activity>
  27.    
  28. http://example.com/gizmos?1234, 
  29. http://example.com/gizmos/1234,
  30. http://example.com/gizmos/toys/1234,
  31. etc.
  32.    
  33. <activity android:name="com.example.android.GizmosActivity" android:label="@string/title_gizmos" >
  34.  
  35.     <intent-filter android:label="@string/filter_title_viewgizmos">
  36.         <action android:name="android.intent.action.VIEW" />
  37.         <category android:name="android.intent.category.DEFAULT" />
  38.         <category android:name="android.intent.category.BROWSABLE" /> <!-- Accepts URIs that begin with "example://gizmos” -->
  39.  
  40.         <data android:scheme="example" android:host="gizmos" />
  41.     </intent-filter>
  42.     <intent-filter android:label="@string/filter_title_viewgizmos">
  43.         <action android:name="android.intent.action.VIEW" />
  44.         <category android:name="android.intent.category.DEFAULT" />
  45.         <category android:name="android.intent.category.BROWSABLE" />
  46.         <!-- Accepts URIs that begin with "http://example.com/gizmos” -->
  47.         <data android:scheme="http" android:host="example.com" android:pathPrefix="/gizmos" />
  48.     </intent-filter>
  49. </activity>
  50.    
  51. <?xml version="1.0" encoding="utf-8"?>
  52. <search-engine xmlns:android="http://schemas.android.com/apk/res/android">
  53.     <noindex uri="http://example.com/gizmos/hidden_uri"/>
  54.     <noindex uriPrefix="http://example.com/gizmos/hidden_prefix"/>
  55.     <noindex uri="gizmos://hidden_path"/>
  56.     <noindex uriPrefix="gizmos://hidden_prefix"/>
  57. </search-engine>
  58.    
  59. <?xml version="1.0" encoding="utf-8"?>
  60. <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.Gizmos">
  61.     <application>
  62.         <activity android:name="com.example.android.GizmosActivity" android:label="@string/title_gizmos" >
  63.             <intent-filter android:label="@string/filter_title_viewgizmos">
  64.             <action android:name="android.intent.action.VIEW"/> ...
  65.         </activity>
  66.             <meta-data android:name="search-engine" android:resource="@xml/noindex"/>
  67.     </application>
  68.     <uses-permission android:name="android.permission.INTERNET"/>
  69. </manifest>
RAW Paste Data
Top