title: How can I replace (overwrite the entire file) a sqlite database provided by SQLiteAssetHelper?
body: <p>I have a database file in my app's <code>src/main/assets/databases</code> directory. I want to download a new copy of the entire database (no data needs to be retained), and overwrite the old one. How can I do this with <code>SQLiteAssetHelper</code>? </p>
  
  <p>My understanding is that <code>SQLiteAssetHelper</code> checks if the database is "installed" on the device, and if not, pulls it out of the <code>src/main/assets/databases</code> directory and copies it somewhere that android can use. Since I can't modify my app's assets, where does <code>SQLiteAssetHelper</code> copy the database, and what's the proper way to overwrite it? </p>
  
  <p>Here's my extended <code>SQLiteAssetHelper</code>, in case it's of any use:</p>
  
  <pre><code>import android.content.Context;
  import android.database.Cursor;
  import android.database.sqlite.SQLiteDatabase;
  import com.readystatesoftware.sqliteasset.SQLiteAssetHelper;
  
  public class EnumDatabase extends SQLiteAssetHelper {
  
      private static final String DATABASE_NAME = "enums.sqlite3";
      private static final int DATABASE_VERSION = 1;
  
      public EnumDatabase(Context context) {
          super(context, DATABASE_NAME, null, DATABASE_VERSION);
      }
  
  }
  </code></pre>