java.io.FileNotFoundException: (Permission denied) when writing an object using ObjectOutputStream

后端 未结 3 1820
予麋鹿
予麋鹿 2021-01-20 02:42

I have been trying to work around this for several hours and I am extremely frustrated so I am coming to you guys for some guidance.

I am trying to save and retriev

3条回答
  •  梦谈多话
    2021-01-20 03:07

    This java.io.FileNotFoundException: /storage/emulated/0myFile.ser looks like you are missing a '/' in the path.

    Use

    String path = Environment.getExternalStorageDirectory().getAbsolutePath() + '/';
    

提交回复
热议问题