On Sun, Oct 31, 2010 at 10:25 AM, longingtoadopt.com <[email protected]> wrote: > I thought that Action was preeminent during intent resolution and if > the intent had the same action as the intent filter, it would be > considered a match regardless of data, if the filter did not specify > anything.
Quoting the IntentFilter object documentation: "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." I suspect that you are confusing <intent-filter> characteristics with IntentFilter characteristics. > 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. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android 2.2 Programming Books: http://commonsware.com/books -- 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

