M madmadhouse Member Licensed User Longtime User Jul 6, 2013 #1 Wondering if anyone can help me that may have had the same problem. I wrote my program on an xp laptop, it works perfect, even works on the phones when i made the apk... However, I copied all the relevent files onto my Windows 7 laptop, and it wont read from the database file, it keeps coming up saying permission denied, I have redone the database, renamed it all on the Windows 7 laptop, but it still says the same Code: Copy java.io.FileNotFoundException: /mnt/sdcard/Android/data/b4a.example/files/gk2.db (Permission denied) there is no such folder
Wondering if anyone can help me that may have had the same problem. I wrote my program on an xp laptop, it works perfect, even works on the phones when i made the apk... However, I copied all the relevent files onto my Windows 7 laptop, and it wont read from the database file, it keeps coming up saying permission denied, I have redone the database, renamed it all on the Windows 7 laptop, but it still says the same Code: Copy java.io.FileNotFoundException: /mnt/sdcard/Android/data/b4a.example/files/gk2.db (Permission denied) there is no such folder
M madmadhouse Member Licensed User Longtime User Jul 6, 2013 #2 Sorry False alarm, I had not set an SD card size on the emulator! :sign0161: So if anyone else has this problem.. just double check you have done this Upvote 0
Sorry False alarm, I had not set an SD card size on the emulator! :sign0161: So if anyone else has this problem.. just double check you have done this
Erel B4X founder Staff member Licensed User Longtime User Jul 7, 2013 #3 Small tip. You can use DBUtils.CopyDBFromAssets. It first checks whether File.ExternalWritable is True and then copies the database file from the assets folder to the external storage or to the internal storage if there is no writable external storage. Upvote 0
Small tip. You can use DBUtils.CopyDBFromAssets. It first checks whether File.ExternalWritable is True and then copies the database file from the assets folder to the external storage or to the internal storage if there is no writable external storage.