Guest User

Untitled

a guest
Jun 24th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. <activity
  2. android:name="com.example.android.GizmosActivity"
  3. android:label="@string/title_gizmos" >
  4. <intent-filter android:label="@string/filter_view_http_gizmos">
  5. <action android:name="android.intent.action.VIEW" />
  6. <category android:name="android.intent.category.DEFAULT" />
  7. <category android:name="android.intent.category.BROWSABLE" />
  8. <!-- Accepts URIs that begin with "http://www.example.com/gizmos” -->
  9. <data android:scheme="http"
  10. android:host="www.example.com"
  11. android:pathPrefix="/gizmos" />
  12. <!-- note that the leading "/" is required for pathPrefix-->
  13. </intent-filter>
  14. <intent-filter android:label="@string/filter_view_example_gizmos">
  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. <!-- Accepts URIs that begin with "example://gizmos” -->
  19. <data android:scheme="example"
  20. android:host="gizmos" />
  21. </intent-filter>
  22. </activity>
  23.  
  24. example://gizmos
  25.  
  26. http://www.example.com/gizmos
  27.  
  28. example://gizmos
Add Comment
Please, Sign In to add comment