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.
I had the same problem too with IllegalArgumentException. Even those have debugging the Uri’s were the same! [drove me crazy]. If you have defined */ match first that seems to match and prevent others from matching. ORDER IS IMPORTANT!!
I reordered and the ‘external_warning_id’ now works fine.