I have an Activity ("B")various CheckBoxes and depending on whether these are checked or not, they deploy some actions (play a sound, start an animation, show up a toast message etc). The problem is that, if I get back from Activity B to activity A and then again from A to B, for the simple fact that some CheckBoxes are checked, they play the sound and show up the Toast, which are supposed to work only when I change the status and turn out being very annoying.
I considered the onClick method which does not really fit into a CheckBox, correct?
What would you advice me to do?
Aucun commentaire:
Enregistrer un commentaire