예제 #1
0
  /**
   * Deletes a group from the database
   *
   * @param group The group to be deleted
   */
  public void deleteGroupFromDatabase(Group group) {

    String where = GroupColumns._ID + " = '" + group.getId() + "'";
    context.getContentResolver().delete(GroupProvider.CONTENT_URI, where, null);
    context.getContentResolver().delete(UserGroupProvider.CONTENT_URI, where, null);
    Log.i("USER GROUP MANAGER", "Group: " + group.toString() + " deleted from database");
  }