Making a database backup to SDCard on Android

前端 未结 1 1385
一整个雨季
一整个雨季 2020-11-28 18:58

I am using the below code to write a backup copy to SDCard and I get

java.io.IOException: Parent directory of file is not writable: /sdcard/mydbfile.db<

相关标签:
1条回答
  • 2020-11-28 19:41

    Do you have permissions defined in manifest ?

    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    
    0 讨论(0)
提交回复
热议问题