How to copy android database sqlite file to sdcard?
问题 I am trying to copy created database sqlite file from android memory to an sdcard but I am getting "failed to copy" error. Is there a way to create the database sqlite file so it can be easily copied? Do I need to set permissions anywhere on the device? 回答1: Yes you do need permissions and how depends upon the API if less than 23 then you need to have <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> in your manifest (AndroidManifest.xml). If 23 or greater then you