> "For actions, the field will not be tested if no values have been
> given (treating it as a wildcard); if no data characteristics are
> specified, however, then the filter will only match intents that
> contain no data."
>

Thanks for your reply...
If you look at the code, I did specify the action in both the Intent
and the Intent filter: ALERT_ME_ACTION
Correct me if I am mistaken but it is intuitive to expect that if the
Actions match then that should be the overriding consideration. It is
analogous to a message or a method call.
If the name of the method matches, then the case "no data" is also
valid and handled by the same method.


> I suspect that you are confusing <intent-filter> characteristics with
> IntentFilter characteristics.
>

I think one is just a convenient way of specifying in XML and the
other is a way of specifying the same thing dynamically. This is also
true of Views.

> > To get it to work with the data (an id that is simply a String), what
> > mime type should I specify in the intent filter?
>
> Data is not "an id that is simply a String". Data is a Uri. Please use
> a string extra for an arbitrary string.
>

Yes, the data is a Uri
Here is the value I was using: "content://com.iovercomer/alerts/99"

I meant that in the line
                Intent inte = registerReceiver(receiver, new
IntentFilter(ALERT_ME_ACTION));

If I am now instead trying to specify

public IntentFilter (String action, String dataType)
http://developer.android.com/reference/android/content/IntentFilter.html#IntentFilter%28java.lang.String,%20java.lang.String%29

the MIME type is specified as a String. if it is to be lower case,
what would I use to pass in?

Diahn Hackborn mentioned that the data part is used to distinguish
PendingIntents.

Since I am using PendingIntent.FLAG_UPDATE_CURRENT, I want the
PendingIntent associated with
"content://com.iovercomer/alerts/99" to be different from the
PendingIntent for
"content://com.iovercomer/alerts/100"
Hence I am not simply passing it in as an extra in the Bundle.
thanks,

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

Reply via email to