Programming Tutorials

Comment on Tutorial - Reading and Writing a file to SD card sample program in Android By Ashley



Comment Added by : Göktuğ ÖZEL

Comment Added at : 2013-03-13 22:44:55

Comment on Tutorial : Reading and Writing a file to SD card sample program in Android By Ashley
Hi i changed some codes in that and i gave internet permission to manifest. But I have a problem. when I click the write button I cannot change my xml file on my host with this sample. could u help me please. Error is: open failed: EROFS(Read-only file system)

I changes so:
try {
URL url = new URL("http://22net.edirnesaglik.gov.tr/deneme/data.xml");

File myFile = new File("url.openStream()");
myFile.createNewFile();
FileOutputStream fOut = new FileOutputStream(myFile);


Thank You =)


View Tutorial