I’m calling an Intent from an activity: I want to know what happens with the activity when I’m calling the Intent, I mean, is it destroyed? onPause? onStop?
This is what I use to call an Intent:
Intent intent = new Intent(context,class);
context.startActivity(intent);
I want to know that if I have a checkbox in an activity, so for example I check that checkbox and after I go to the next activity, but if I go back to the previous activity, the checkbox is not checked as it was when I call the Intent.
I don’t know if I have explained my self, but I hope you can give me a hint to solve this.
By default, the activity is stopped, not destroyed. It might be destroyed if the system is low on resources.
So what’s probably happening in your case is, the system gets low on resource so it destroys your activity. You should save your UI state in
onSaveInstaceState, and restore it inonRestoreInstanceState. Read more here.