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
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();
2 matches
Mail list logo