Code example for UriMatcher

Methods: addURI

0
	// Holds the database object 
    private SQLiteDatabase db;
	 
     
    static { 
    	sURIMatcher = new UriMatcher(UriMatcher.NO_MATCH);
		sURIMatcher.addURI(AUTHORITY, CredentialTable.TABLE_NAME, CREDENTIAL_ID);
		sURIMatcher.addURI(AUTHORITY, ServiceTable.TABLE_NAME, 	  SERVICE_ID);
		sURIMatcher.addURI(AUTHORITY, CssProfileTable.TABLE_NAME, PROFILE_CSS);
		sURIMatcher.addURI(AUTHORITY, CssNodeTable.TABLE_NAME, 	  NODE_CSS);
		 
		// Add other URI to be user to select more tables.... 
		// ..... 
	} 
     
	@Override 
	public synchronized int delete(Uri uri, String where, String[] whereArgs) {
		SQLiteDatabase db = mOpenHelper.getWritableDatabase();