title: Android database simplecursoradapter error
body: <p>I'm programming an android app.</p>
  
  <p>This is my BDHelper class:</p>
  
  <pre><code>public class BD_Helper extends SQLiteOpenHelper{
  
  private static final String BD_NOMBRE = "BD_PAED.db";
  private static final int BD_VERSION = 1;
  private static final String TABLA_AUDIT_NOMBRE = "audit";
  private static final String TABLA_CONTROLES_NOMBRE = "controles";
  
  private static final String crearAudit = 
                                  "CREATE TABLE " + TABLA_AUDIT_NOMBRE + " (" +
                                  "_id INTEGER PRIMARY KEY AUTOINCREMENT, " +
                                  "usuario TEXT, " +
                                  "clave TEXT, " +
                                  "userid INTEGER, " +
                                  "pin TEXT, " +
                                  "tema TEXT, " +
                                  "colorFondo TEXT, " +
                                  "color TEXT, " +
                                  "colorFuente TEXT)";
  
  private static final String crearControles = 
                                  "CREATE TABLE " + TABLA_CONTROLES_NOMBRE + " (" +
                                  "_id INTEGER PRIMARY KEY AUTOINCREMENT, " +
                                  "entryTypeId TEXT, " +
                                  "statusTypeId TEXT, " +
                                  "momentTypeId TEXT, " +
                                  "activityTypeId TEXT, " +
                                  "activityDuration TEXT, " +
                                  "activityTypeOthers TEXT, " +
                                  "intensityTypeId TEXT, " +
                                  "measurementTime TEXT, " +
                                  "glucosePre TEXT, " +
                                  "CHRations TEXT, " +
                                  "rapidInsulin TEXT, " +
                                  "slowInsulin TEXT, " +
                                  "glucosePost TEXT);";
  
  public BD_Helper(Context context){
      super(context, BD_NOMBRE, null, BD_VERSION);
  }
  
  @Override
  public void onCreate(SQLiteDatabase db) {       
      db.execSQL(crearAudit);
      db.execSQL(crearControles);
  }
  
  @Override
  public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
      db.execSQL("drop table if exists "+ TABLA_AUDIT_NOMBRE);
      db.execSQL("drop table if exists "+ TABLA_CONTROLES_NOMBRE);
      onCreate(db);
  }
  
  }
  </code></pre>
  
  <p>In other class I'm trying to use a simplecursoradapter to show the info of the controles database:</p>
  
  <pre><code>private void cargaDatos(){
      String[] from;
  
      cursor = bdHelper.obtenerControles(entryTypeId);
      startManagingCursor(cursor);
  
          from = new String[] {BD_ControlesAdapter.CAMPO_MEASUREMENTTIME,BD_ControlesAdapter.CAMPO_ACTIVITYTYPEID};
  
      int[] to = new int[]{R.id.fila_fecha,R.id.fila_tipo};
  
  
      SimpleCursorAdapter controles = new SimpleCursorAdapter(this,R.layout.fila_controles,cursor,from,to,0);
      setListAdapter(controles);
  
  }
  </code></pre>
  
  <p>But this doesn't work, the <code>new SimpleCursorAdapter</code> throws an:</p>
  
  <pre><code>IllegalArgumentException: column '_id' does not exist.
  </code></pre>
  
  <p>If I check my sqlite database this column is perfectly created in this database.</p>
  
  <p>Any idea?</p>