Problem with URI matcher in Android.
Posted
by
Lunchbox
on Stack Overflow
See other posts from Stack Overflow
or by Lunchbox
Published on 2011-01-17T23:51:39Z
Indexed on
2011/01/17
23:53 UTC
Read the original article
Hit count: 156
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.
© Stack Overflow or respective owner