I am copying a pre-existing database to /data/data/packagename/databases using code learned from using-your-own-sqlite-database-in-android-applications
/data/data/packagename/databases
In my case, I have discovered that this error will happen if I leave an open transaction left.
open transaction
In other words: If you forget to commit or rollback a transaction, in the next time you enter in your application, this error raises up.
commit
rollback