Hi,
I need some help with checkboxes. I want to be able to check a box and save the state of it so that when i close the app and then open it again, the box is still checked.
Any help would be appreciated.
Hi,
I need some help with checkboxes. I want to be able to check a box and save the state of it so that when i close the app and then open it again, the box is still checked.
Any help would be appreciated.
Use the isChecked() function of the checkbox.
Find your checkbox by
MyCheckbox = (CheckBox) findViewById(R.id.your_checkbox_id);
You can save the state in the sharedpreferences or an other place.
SharedPreferences | Android Developers