Writing Text File to SD Card fails

后端 未结 5 735
长发绾君心
长发绾君心 2020-11-30 09:07

I have a strange problem I\'ve come across. My app can write a simple textfile to the SD Card and sometimes it works for some people but not for others and I have no idea wh

5条回答
  •  孤街浪徒
    2020-11-30 10:10

    For all fellow newbies out there debugging on an actual device via USB: Don't forget to unplug the USB cable from your dev PC, like I did. When USB is connected the SD card is unavailable. Happy file writing...

    This is not correct on all phones/ROM builds. CMod7 and MIUI ROMS both allow you to set whether the SD card is mounted or not when plugged into PC, depending on your settings the above may hold true. Best to check.

提交回复
热议问题