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="" android:scheme="http"></data>
  5. </intent-filter>


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.