[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 device, MTP) I can't see the file. I can transfer a text file from 
the PC and view and edit it on the device. Any clues about what might be 
diffferent about a file created on the Nexus?

Also I note that I don't see all the folders on internal storage from the 
PC. FX for example sees a documents folder on the device that is not 
visible in the PC explorer window.

Thanks

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

[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();

This works, except that it puts the file on the internal devce storage
rather than on the SD card. The path given, using
sdRoot.getAbsolutePath(), is /nand

Anyone know how I can get the file to actually write on the external
storage? Device is a MID X5A running 2.1 update 1

Thanks

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