title: Updating prepopulated database in Android
body: <p>I lost last 3 hours trying to do this. Im making an app that will ship with a DB filled with populated tables that would not change on clients devices. 
  I managed to do this by putting it in the assets folder and copying it as a stream of bytes to the appropriate data folder on the phone. Problem is when I wish to update the database, I cant get it to work. I delete the DB in data folder on phone (from code), but copying the new database always fails, or the copied DB has the appropriate size but no tables in it.
  How to do this? Or is there a simpler way? Can I open DB directly from assets (it would be the simplest way if it can, but I cant find how to access the path to assets from code)? </p>