public static int deleteApksByRepo(Context context, Repo repo) { ContentResolver resolver = context.getContentResolver(); final Uri uri = getRepoUri(repo.getId()); return resolver.delete(uri, null, null); }
public static List<Apk> findByRepo(Context context, Repo repo, String[] fields) { ContentResolver resolver = context.getContentResolver(); final Uri uri = getRepoUri(repo.getId()); Cursor cursor = resolver.query(uri, fields, null, null, null); return cursorToList(cursor); }