Android Intent Filter for Hijacking Specific Web Site URLs


/ Published in: XML
Save to your folder(s)

With android you can define intent-filters to indicate that your app wants to handle requests for specific urls.


Copy this code and paste it in your HTML
  1. <intent-filter><action android:name="android.intent.action.VIEW"></action>
  2. <category android:name="android.intent.category.DEFAULT"></category>
  3. <category android:name="android.intent.category.BROWSABLE"></category>
  4. <data android:host="www.youtube.com" android:scheme="http"></data>
  5. </intent-filter>

URL: http://stackoverflow.com/questions/525063/android-respond-to-url-in-intent

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.