Before using FileOutputStream check that there's no directory or file with the same name you're trying to use. Trying to remove it works as well. Try using FileAsyncHttpResponseHandler(context) as well!
You have a different solution? A short tip here would help you and many other users who saw this issue last week.
- java.io.FileNotFoundException: /storage/sdcard/NumberType.txt: open failed: EACCES (Permission denied) Strangely I am able to read the files as expected. It only fails as soon as I try to write something. It's failing in line fileOut = new FileOutputStream(file,true); with below trace. 09-07 15:42:52.174: W/System.err(11739): java.io.FileNotFoundException: /storage/sdcard/DixitMobileUsage/NumberType.txt: open failed: EACCES (Permission denied) at libcore.io.IoBridge.open(IoBridge.java:456) at java.io.FileOutputStream.<init>(FileOutputStream.java:87) at ind.cosmos.utilities.FileManager.appendContentToBottomInFile(FileManager.java:263) at ind.cosmos.main.UNKNOWN_POPUP$1$1.onClick(UNKNOWN_POPUP.java:117)