How to save parsed text file in internal/external storage in android

后端 未结 3 1346
余生分开走
余生分开走 2021-01-13 16:51

Currently I am working in project where I need to parse a remote text file and store it in local storage (internal/external). I am able to parse the text file but unable to

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-13 17:33

    File myFile = new File("sdcard/mysdfile.txt");
    

    Should be changed to

    File myFile = new File("/mnt/sdcard/mysdfile.txt");
    

提交回复
热议问题