1

I have the exact same problem as described here: Flush MTP connection with Android tablet?

Every time I add a Column in my Android App in a local SQLite-Database, my Database gets malformed when I copy and paste the file to Windows machine.

It works when I do the following steps:

  1. Copy my Database to Android Filesystem
  2. Disconnect USB
  3. Open my App (Add Column)
  4. Connect USB again
  5. Copy/Paste Database File from Android to Windows = Not malformed

Or

  1. Copy my Database to Android Filesystem
  2. Open my App (Add Column)
  3. Reboot Android device
  4. Copy/Paste Database-File to Windows = Not malformed

Rescan does not help at all. It 2019, is there any solutions for this problem?

BR75
  • 633
  • 7
  • 25
  • 2
    Before copying the file try closing the database or try copying the -shm and -wal files (same name as the database file but suffixed with -shm and -wal). – MikeT Jun 12 '19 at 19:28
  • I did close my connection to database but that has no effect or maybe I did it wrong. I have no shm or wal files, just a journal file. – BR75 Jun 12 '19 at 20:06

0 Answers0