Posted By

abwaters on 03/28/09


Tagged

android intent-filter


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Tyster


Android Intent Filter for Hijacking Specific Web Site URLs


 / Published in: XML
 

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

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

Report this snippet  

You need to login to post a comment.