Code example for SimpleCursorAdapter

Methods: changeCursor

0
    } 
  } 
 
  @Implementation 
  public void changeCursor(Cursor c) {
    realSimpleCursorAdapter.changeCursor(c);
    // rescan columns in case cursor layout is different 
    findColumns(mOriginalFrom);
  } 
 
  /** 
   * Change the cursor and change the column-to-view mappings at the same time. 
   * 
   * @param c The database cursor.  Can be null if the cursor is not available yet. 
   * @param from A list of column names representing the data to bind to the UI.  Can be null 
   *            if the cursor is not available yet. 
   * @param to The views that should display column in the "from" parameter. 
   *            These should all be TextViews. The first N views in this list 
   *            are given the values of the first N columns in the from 
   *            parameter.  Can be null if the cursor is not available yet.