Android: how to write a file to internal storage
问题 I am developing a simple android application and I need to write a text file in internal storage device. I know there are a lot of questions (and answers) about this matter but I really cannot understand what I am doing in the wrong way. This is the piece of code I use in my activity in order to write the file: public void writeAFile(){ String fileName = "myFile.txt"; String textToWrite = "This is some text!"; FileOutputStream outputStream; try { outputStream = openFileOutput(fileName ,