问题
I have an Application in which first I want to create a backup of message from inbox and store it into backup.xml
file which is stored at SDCARD/MYBACKUP/mybackup.xml
Now I want to retrieve data, stored on SDCARD/MYBACKUP/mybackup.xml
and display all messages in listview.
回答1:
For Writing XML file to sdcard see this answeer Qberticus's Answer
android Reading file is just simple you have to use Xml parsing See This for XML parsing
To R/W Sdcard You have to give Permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
来源:https://stackoverflow.com/questions/9256245/reading-and-writing-xml-file