Code example for UriMatcher

Methods: addURI

0
		} 
		throw new SQLException("Failed to insert row into " + uri);
	} 
	 
	static{ 
		uriMatcher = new UriMatcher(UriMatcher.NO_MATCH);
		uriMatcher.addURI(EventItemProvider.AUTHORITY, SQLStatements.EVENT_DATABASE_TABLE_NAME, EVENT_ITEM );
		uriMatcher.addURI(NoteProvider.AUTHORITY, SQLStatements.NOTE_DATABASE_TABLE_NAME, NOTE_ITEM);
		uriMatcher.addURI(PictureProvider.AUTHORITY, SQLStatements.PICTURE_DATABASE_TABLE_NAME, PICTURE_ITEM);
		uriMatcher.addURI(EventProvider.AUTHORITY, SQLStatements.EVENT_DATABASE_TABLE_NAME, EVENT);
		uriMatcher.addURI(RecordingProvider.AUTHORITY, SQLStatements.RECORDINGS_DATABASE_TABLE_NAME, RECORDING_ITEM);
		uriMatcher.addURI(VideoProvider.AUTHORITY, SQLStatements.VIDEO_DATABASE_TABLE_NAME, VIDEO_ITEM);
	} 
 
	@Override 
	public String getType(Uri uri) {
		// TODO Auto-generated method stub 
		return null; 
	}