Hola amigos tengo un problema, yo quiero mostrar los datos en sus respectivos textview, osea por ejemplo busco por turno y si el turno esta que me muestre todos los datos en sus respectivos textviwe aquí les dejo parte de mi código y no me funciona, me manda el mensaje que puse.
public void consulta(View v) {
AdminSQLiteOpenHelper admin = new AdminSQLiteOpenHelper(this,
"administracion", null, 1);
SQLiteDatabase bd = admin.getWritableDatabase();
Cursor fila = bd.rawQuery(
"select valor1,valor2,valor3 from votantes where valor3='noche'", null);
if (fila.moveToFirst()) {
et1.setText(fila.getString(0));
et2.setText(fila.getString(1));
et3.setText(fila.getString(2));
} else
Toast.makeText(this, "No existe una persona con dicho turno",
Toast.LENGTH_SHORT).show();
bd.close();
}