I've got a question that is annoying me.
With Android, I've got an application that seems to be calling onCreate
every time a new instance of an activity is created, because this activity is the son of an another and it finishes itself while it ends its role for one piece of data.
The calling of onCreate
every time seems to be re-parsing the XML to create the views and re-attaching/re-creating the listeners to the code and so on. So Is there a way to cache an activity to be recalled every time, without seeing it if we click on the back button in the mobile device? It's like having it really hidden (not accessible with the back button) and destroyed only if it's necessary.
Thanks everyone in advance :)