java Programming Glossary: mydatabase
Database not copying from assets http://stackoverflow.com/questions/5945196/database-not-copying-from-assets private static String DB_NAME BLib private SQLiteDatabase myDataBase private final Context myContext Constructor Takes and keeps.. Open the database String myPath DB_PATH DB_NAME myDataBase SQLiteDatabase.openDatabase myPath null SQLiteDatabase.OPEN_READONLY.. as required @Override public synchronized void close if myDataBase null myDataBase.close super.close @Override public void onCreate..
onUpgrade database - oldVersion - newVersion http://stackoverflow.com/questions/7173896/onupgrade-database-oldversion-newversion I publish an update I simply could set the version to 2 myDataBase.setVersion 2 . But it will only be 2 as long as the app is running... was assigned to private static int DATABASE_VERSION or myDataBase.getVersion The DataBaseHelper class public class DataBaseHelper.. static String DB_NAME database.sl3 private SQLiteDatabase myDataBase private final Context myContext Do you need this private static..
|