I have an application that uses switches. The default value for this button is set in the main.xml file, that is:
android:id="@+id/rb_sat1E" android:checked="true"
In the Java file, I:
final RadioButton radio1 = (RadioButton)findViewById(R.id.rb_sat1E);
I also created a "Reset" button in the main Java file and can use the following code to reset TextView information, i.e.
pos1_deg.setText("0.0");
But how do I reset the switch? I would think that this is something like
radio1.setBoolean("TRUE");
But this does not work at all.
Any help is greatly appreciated. Thank.
android radio-button
Entropy1024 Nov 09 '10 at 14:13 2010-11-09 14:13
source share