If I press a button in my app, I can save a file to datata/com.josh.test/files/text.txt .
- Code: Select all
String sFilename = "text.txt";
String sWriteFile = sEncodedText;
try
{
java.io.FileOutputStream fos = openFileOutput(sFilename, Context.MODE_WORLD_READABLE);
fos.write(sWriteFile.getBytes());
fos.close();
catch
{
...
Ok, this works without any problems. But now I want to read in a file from the public space of the sdcard (the part you can access to without root,...).
But how to do this the best way? So I want to read in the content of the file and write it to another text view.
Thanks,
Josh