Posted By

abwaters on 03/28/09


android intent-filter

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Android Intent Filter for Hijacking Specific Web Site URLs

 / Published in: XML


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

  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  

You need to login to post a comment.