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;
java.io.FileOutputStream fos = openFileOutput(sFilename, Context.MODE_WORLD_READABLE);
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.