This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final String DATABASE_NAME = "BGHISTORY_v3"; | |
private static final String DATABASE_PATH = "/data/data/com.nmp90.bghistory/databases/"; | |
private void copyDataBase() throws IOException { | |
//Open your local db as the input stream | |
InputStream myInput = myContext.getAssets().open(DATABASE_NAME); | |
// Path to the just created empty db | |
String outFileName = DATABASE_PATH + DATABASE_NAME; |
NewerOlder