I'm trying to implement my own ContentProvider
based on few examples but I'm confused by different approaches in UriMAtcher
. For instance:
JavaDoc shows it with #
like this:
sURIMatcher.addURI("contacts", "people", PEOPLE);
sURIMatcher.addURI("contacts", "people/#", PEOPLE_ID);
sURIMatcher.addURI("contacts", "people/#/phones", PEOPLE_PHONES);
sURIMatcher.addURI("contacts", "people/#/phones/#", PEOPLE_PHONES_ID);
but in "iosched" reference app by Google it uses *
like this:
matcher.addURI(authority, "rooms", ROOMS);
matcher.addURI(authority, "rooms/*", ROOMS_ID);
matcher.addURI(authority, "rooms/*/sessions", ROOMS_ID_SESSIONS);
Can anybody explain the difference of these two approaches ?