I've written my own ContentProvider, which works, except for the URI_MATCHER.
URI_MATCHER returns -1, when it should give me 1:
First, I add my URI, so that the matcher is able to recognize it:
At this point:
is Crowd.CROWD_AUTHORITY = "lan.tiptop.android.CrowdProvider"
and CUSTOMER = 1
At some points in the code it's necessary to check the uri:
The if-statement throws that exception:
"Unkown URI: content://lan.tiptop.android.CrowdProvider/Crowd"
I think the URI ist correct and URI_MATCHER should give me 1.
Does anybody know, how to solve this?
P.S.: I use version 0.9 of the SDK.