[android-developers] Nexus 7 files not visible when using USB (MTP) connection to Windows XP

2012-10-16 Thread Cognos
I have an app that writes data to a .txt file on the Nexus 7 internal storage. The file is fine, I can read it on the device using the application itself, and can see and view it using FX file explorer. But when I connect the Nexus to my PC using the USB connection (connecting as a media

[android-developers] Writing to SD card on MID X5A using getExternalStorageDirectory()

2011-04-20 Thread Cognos
I am trying to write text data onto a storage card. I am using the following File sdRoot = Environment.getExternalStorageDirectory(); File dataFile = new File(sdRoot, psData.txt); FileWriter fWriter = new FileWriter(dataFile, true); fWriter.write(resultString); fWriter.flush(); fWriter.close();