In my android app, i am logging errors in a txt file. But when i try to create file , i face an error Java.io.IOException: open failed: EROS( Read Only file system error)
. I have added write permissions in AndroidManifest.xml
but no difference. How to fix it ?
code
try {
File file =new File("Log.txt");
if(!file.exists()){
file.createNewFile();
}
catch (Exception e)
{
Log.w("tun tun", e.toString());
}