Can anyone tell me a way to store an XML file in the android apps so that I can update it in a regular basis just like we do it in SQlite database.
I am developing an apps in which I use an xml file to store data and I need to update the data on regular basis, please tell me a way to store the xml file.
Means where should I store that xml file so that I can update it.
Can anyone tell me a way to store an XML file in the android
Share
Usually, you will want to save it in the private directory for your app. You can get a pointer to that directory by invoking the
getFilesDirmethod from an Activity or other kind of contexts. Other useful method isopenFileOutputwhich returns aFileOutputStreamthat you can use to save a file. This should answer your question how “where to save” the file.