Question: I'm currently using a Parser and it parses every time the onCreate gets called.
My parser uses an XML file that's located in my assetfolder.

Is there any chance that I can make it parse only once, instead of every time I rotate the screen or restart the application?

Thank you :)

Answer: 
There are 2 answers to this question. The easy one first:

If you only want this to happen once, create a static boolean in your main activity and set it to true when the XML is parsed in. Then use:

```
if(!isParsed)
    XML.parse();

```

The more complete answer to this question is to make sure you are handling configuration changes correctly. 

I suggest you read [this article](http://developer.android.com/guide/topics/fundamentals/activities.html#SavingActivityState) on how to implement configuration change handling. You should be able to solve this problem "the Android way" by implementing this.

Hope this helps!
You can parse your XML in a "Application" object and have it accessible from there. Check out the documentation at <http://developer.android.com/reference/android/app/Application.html>