Problem with URI matcher in Android.
- by Lunchbox
I have an authority string defined as such:
public final static String AUTHORITY = "dsndata.sds2mobile.jobprovider";
Followed by an edition to the UriMatcher:
uriMatcher.addURI(JobMetaData.AUTHORITY, "/JobNames/*",
JOBNAME_SINGLE_URI);
The uri that gets passed to the switch is:
content://dsndata.sds2mobile.jobprovider/JobNames/test
This falls through the switch and hits the default (which throws an IllegalArgumentException).
Am I missing something? I've searched and can't find anything that would account for the mismatch.