WRT addDataType(string) I've only used it with mime types so I'll let 
someone else comment on the best practice here.


As far as the mime based filter, the more specific filter should start fire 
first.  If you have specified your app as default, for the correct action 
and for your specific mime type it should launch with no competition from 
other apps (no chooser dialog).

Were you specifying the filter in the manifest or at run time? 

Here's an example mime based filter to be specified under the activity in 
your manifest:

     <intent-filter>
    <action android:name="android.nfc.action.NDEF_DISCOVERED"/>
    <category android:name="android.intent.category.DEFAULT"/> 
    <data android:mimeType="text/x-my-app-mime" /> 
    </intent-filter>

I use this type of filter in a few different apps and have yet to have any 
issues with my app(s) not starting when the tags are read or presenting the 
chooser dialog.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to