Code example for ContentProviderClient

Methods: release

0
   * After invoking this method, this instance should be discarded. 
   */ 
  public void releaseProviders() { 
    try { 
      if (providerClient != null) {
        providerClient.release();
      } 
    } catch (Exception e) {
    } 
    providerClient = null;
  } 
 
  @Override 
  protected void finalize() throws Throwable { 
    this.releaseProviders();
    super.finalize(); 
  } 
 
  private static String[] HISTORY_MIGRATION_COLUMNS = new String[] { Control.ENSURE_HISTORY_MIGRATED };
  private static String[] BOOKMARKS_MIGRATION_COLUMNS = new String[] { Control.ENSURE_BOOKMARKS_MIGRATED };
 
  /** 
   * Pass in a unit array. Returns true if the named column is 
   * finished migrating; false otherwise. 
   * 
   * @param columns an array of a single string, which should be one of the 
   *                permitted control values. 
   * @return true if the named column is finished migrating; false otherwise. 
   */ 
  protected boolean isColumnMigrated(final String[] columns) {
    try { 
      final Cursor cursor = queryHelper.safeQuery(providerClient, ".isColumnMigrated(" + columns[0] + ")",
                                                  columns, null, null, null);
      try { 
        if (!cursor.moveToFirst()) {
          return false; 
        } 
Connect your IDE to all the code out there  Get Codota for Java