On 5/31/2010 11:39 PM, Bob Kerns wrote:
Your description is a little unclear, but I think what you're seeing
is that Android does not support simultaneous access between the PC
and the SD card.

Once you mount the SD card on the PC, it is not available on the
device.  To access it on the device again, you must first unmount it
from the PC. The easiest way to do that is from the notifications bar,
where it says "Turn off USB Storage / Select to turn off USB storage".

On May 30, 8:57 pm, jp<[email protected]>  wrote:
Thanks all, it finally work
However i was not able to view the text file when i mount the phone to
the pc
It requires me to restart my phone inorder to get the text file in my
sdcard.
Is there a way i do not need to restart my phone and the view the text
file when i mount it?
i've tried SDRescan.apk but it wont work.
Yep, I have tried to write a xml file onto sd card. use this we have to bind the new file with a FileOutputStream then we create a XmlSerializer in order to write xml data then we set the FileOutputStream as output for the serializer, using UTF-8 encoding then Write <?xml declaration with encoding (if encoding not null) and standalone flag (if standalone not null) and start and end of a tag called "root"

It will work fine.

File newXMLFile=new File(Environment.getExternalStorageDirectory()+"/new.xml");
newXMLFile.createNewFile();
fileios=new FileOutputStream(newXMLFile);
XmlSerializer serializer=Xml.newSerializer();

--
Technology never Ends, Learn Fast...

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to