0

I have an SQLite databese which succesfully imports/exports by my app to my oldie Samsung Galaxy S (i can see the file from my computer).

But when i try same with samsung tablet (GT-P7500) it gives me an error:

java.io.filenotfoundexception: /mnt/sdcard/Android/data/package...: open failed, no such file or directory.

I am using import export function from here(the second answer): Simple export and import of a SQLite database on Android

So what is wrong, (a gave permisions of reading and writing in manifest)

Community
  • 1
  • 1
galvakojis
  • 408
  • 1
  • 5
  • 19
  • have you checked if your sqlite file is in that directory? – zozelfelfo Sep 19 '14 at 08:18
  • SQL exist, but tablet has no external SD card (it has 16GB internal memory) Also my SGS1 has no external SD card but it creates file in my specified dir – galvakojis Sep 19 '14 at 08:22
  • The problem is your hardcoded path: `/mnt/sdcard/...` many devices use the internal storage, which can have a different logical name (i.e.: internal, card_00, storage_0, ...) – Phantômaxx Sep 19 '14 at 08:32
  • My path is not hardcoded. It looks like this "/Android/data/com.mypr/Notes/listManager" – galvakojis Sep 19 '14 at 08:39

0 Answers0