How to create a file in Android? Code used:
String FILENAME = "hello_file"; String mystring = "hello world!"; FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); fos.write(mystring.getBytes()); fos.close(); Throws FileNotFoundException. If thrust in try / catch, then IOException. What to do? On the Internet, found solutions that cause the same Exception. Thank you in advance...