I have a question for you. I have a situation where a list will be generated based on the results of an ifStatement. My ifStatement is based on whether a checkbox is checked. If it is, I want a variable (let's say, the time) stored somewhere until the user will be sent to a new activity where he/she will be able to view the results.
In other words, the user will either check the checkbox or not. If he/she does, I want to keep track of each instance that this happens. When the user satisfies the main ifStatement, (let's say, breakfast ends) the user will be able to see how many people checked the checkbox next to: "addBacon" or whatever...
hope this makes sense. Let me know what doesn't so that I can clarify.
Thank you.
Here's an example of the code:
case R.id.ButtonOK:
if (examplecheckBox.isChecked()) {
example++;
if(examplecheckBox.isChecked()) {
textexamplecounterID.setText(String.valueOf(example));
case R.id.ButtonNext:
if (example > 3) {
Intent intent = new Intent(this, FinishActivity.class);
}