Okay, I found out what I believe to be the proper way to format The 
external type (It is stored as a uri) but it doesn't seem to want to work.
This is how I set up the Foreground Dispatch for my tag:
mPendingIntent = PendingIntent.getActivity(this, 0, new Intent(this, 
getClass()).addFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP), 0);
        IntentFilter ndef = new 
IntentFilter(NfcAdapter.ACTION_NDEF_DISCOVERED);
        try{
         ndef.addDataType("vnd.android.nfc://ext/example.com:a");
        }
        catch (Exception e)
        {
         throw new RuntimeException("fail", e);
        }

Does anyone know if ndef.addDataType is the proper method to use to add a 
uri? I haven't found any examples of filtering based on any other Ndef type 
other than MIME. Using other apps, it detects the type of my card just 
fine, but I am unsure about how to format the Foreground Dispatch.

Also, when I was trying to start up using a MIME filter for Foreground 
Dispatch, I noticed that my app was always competing with other apps to 
start, and this was with a very specific MIME filter. After the first time 
I chose it, the app would start up when ever I selected the card with the 
app off, but until then others would compete with it. Does a specific MIME 
type trump the wild card "*/*" or if other apps use the wild card will it 
always compete with a custom app? 

Thanks to anyone who can help!

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