Provide a mechanism to identify all the incoming uri patterns

private static final UriMatcher sUriMatcher;

private static final int INCOMING_BOOK_COLLECTION_URI_INDICATOR = 1; private static final int INCOMING_SINGLE_BOOK_URI_INDICATOR = 2; static {

sUriMatcher = new UriMatcher(UriMatcher.NO_MATCH); sUriMatcher.addURI(BookProviderMetaData.AUTHORITY

, INCOMING_BOOK_COLLECTION_URI_INDICATOR);

sUriMatcher.addURI(BookProviderMetaData.AUTHORITY

INCOMING_SINGLE_BOOK_URI_INDICATOR);

0 0

Post a comment