intent filters and uris

satya - Thursday, October 22, 2009 3:38:21 PM

android intent-filter data

android intent-filter data

Search for: android intent-filter data

satya - Thursday, October 22, 2009 3:39:12 PM

Here are the docs

Here are the docs

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

satya - Thursday, October 22, 2009 3:58:46 PM

url structure


scheme://host:port/path

satya - Thursday, October 22, 2009 4:01:11 PM

example


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

satya - Thursday, October 22, 2009 4:02:46 PM

Some of the known schemes in Android


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

satya - Thursday, October 22, 2009 4:04:01 PM

android uri schemes

android uri schemes

Search for: android uri schemes

satya - Thursday, October 22, 2009 4:31:26 PM

can I make up my own android uri scheme?

can I make up my own android uri scheme?

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

satya - Thursday, October 22, 2009 5:30:30 PM

A sample that plays with data uris


<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>

satya - Thursday, October 22, 2009 5:32:44 PM

This shows different ways to invoke the same view

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

In the second part it uses a specific view