vendredi 29 juillet 2016

How to ensure that finish() destroy activity and clear all variables?

I'm working in a project with two activities, one shows list of rows from a database, when you click one it opens other activity with a form containing elements you can edit;

The problem is that when i close the second activity and reopen it (even if I call finish()) some variables keep data from last "session".

So may question is: How can I clear all variables/destroy activity?

Aucun commentaire:

Enregistrer un commentaire