Code example for RadioButton

Methods: setEnabledsetText, setChecked

0
		dbh.close();
	} 
	 
	private void setValues()	{ 
		question.setText(c.getString(c.getColumnIndex("Question")).toString());
		rbn1.setText(c.getString(c.getColumnIndex("Choice1")).toString());
		rbn2.setText(c.getString(c.getColumnIndex("Choice2")).toString());
		rbn3.setText(c.getString(c.getColumnIndex("Choice3")).toString());
		rbn4.setText(c.getString(c.getColumnIndex("Choice4")).toString());
	//	corrAnswer = c.getString(c.getColumnIndex("Correct")).toString(); 
	} 
	 
	private void setNewQuestion()	{ 
		 
		rbn1.setEnabled(true);
		rbn1.setChecked(false);
		 
		rbn2.setEnabled(true);
		rbn2.setChecked(false);
		 
		rbn3.setEnabled(true);