intent filters and uris

android intent-filter data

Search for: android intent-filter data

Here are the docs

http://developer.android.com/guide/topics/intents/intents-filters.html


scheme://host:port/path

content://com.example.project:200/folder/subfolder/etc

tel:
content:
file:
http:
https:
mailto:

android uri schemes

Search for: android uri schemes

can I make up my own android uri scheme?

Search for: can I make up my own android uri scheme?


<activity android:name=".MultiViewTestHarnessActivity"
           android:label="MultiView Test Harness">
      <intent-filter>
         <action android:name="android.intent.action.VIEW"/>
         <data android:scheme="content" 
          android:host="com.ai.android.search.uri">
          </data>
         <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
      <intent-filter>
         <action android:name="com.ai.android.intent.action.MVIEW"/>
         <category android:name="android.intent.category.DEFAULT" />
      </intent-filter>
</activity>

In the first part it uses a generic view and a specific Data uri

In the second part it uses a specific view