Android Step-by-Step
Your Step-by-Step Guide to Creating Android Apps
How to Instantiate a new CheckBox object
1.
Delcare a New CheckBox, in Java
named
myCheckBox
.
2. Add the below line to the onCreate method.
myCheckBox = new CheckBox(this);
3. Compile and run!
Resources:
http://developer.android.com/reference/android/widget/CheckBox.html
‹
›
Home
View web version