Exemplo n.º 1
0
 public static int deleteApksByRepo(Context context, Repo repo) {
   ContentResolver resolver = context.getContentResolver();
   final Uri uri = getRepoUri(repo.getId());
   return resolver.delete(uri, null, null);
 }
Exemplo n.º 2
0
 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);
 }