Possible Duplicate:
where to place an xml file with data in app
I’m kinda new to android dev. I’m storing the data related to my app in an XML file. I’m trying to use SAX parser to read/write/edit data to that xml file.
Where is the proper place to store this xml file? In assets/res/some-other folder ? (I want to use internal memory)
Is there any problem with saving app data to internal memory? This app won’t have huge amounts of data. I need to read/ write/ modify this xml file depending on user actions. (I read that we can’t edit files in assests at runtime !!)
Given a particular directory, how can I access it using InputStream in order to feed it to SAX XMLReader?
If you want also to write the file, I don’t think that you can do that in /res or /assets. Take a look at the android data storage options. For example, you can write the XML file to the internal storage.
http://developer.android.com/guide/topics/data/data-storage.html