Code example for Uri

Methods: notifyChangegetPathSegments

0
		switch (uriMatcher.match(arg0)) {
		case BOOKMARKS:
			count = db.delete(TB_NAME, arg1, arg2);
			break; 
		case BOOKMARK_ID:
			String id = arg0.getPathSegments().get(0);
			count = db.delete(TB_NAME, _ID + " = " + id
					+ (!TextUtils.isEmpty(arg1) ? " AND (" + arg1 + ')' : ""),
					arg2);
			break; 
		default: 
			throw new IllegalArgumentException("Unknown URI " + arg0);
		} 
		getContext().getContentResolver().notifyChange(arg0, null);
		return count;
	} 
 
	@Override 
	public String getType(Uri uri) {
		switch (uriMatcher.match(uri)){
Connect your IDE to all the code out there  Get Codota for Java