- String selectQuery = "SELECT * FROM " +
- ProviderTableMeta.FILE_TABLE_NAME +" WHERE " +
- ProviderTableMeta.FILE_ACCOUNT_OWNER +"=? AND " +
- ProviderTableMeta.FILE_STORAGE_PATH + " IS NOT NULL;";
+ String whereClause = ProviderTableMeta.FILE_ACCOUNT_OWNER + "=? AND " +
+ ProviderTableMeta.FILE_STORAGE_PATH + " IS NOT NULL";
+
+ Cursor c = db.query(ProviderTableMeta.FILE_TABLE_NAME,
+ null,
+ whereClause,
+ new String[] { newAccountName },
+ null, null, null);