@Override
public void onCreate(SQLiteDatabase db)
{
try{
db.execSQL("create table " + NotificationManager.getUserStatic(context) + "log ("+
KEY_TIME +" INTEGER primary key, "+ KEY_TEXT +" TEXT not null);");
}
catch (SQLException e) {
e.printStackTrace();
}
}
/**
* onOpen method called when app is opening.
*/
@Override
public void onOpen(SQLiteDatabase db)
{
try{
System.out.println("tophere");
db.execSQL("create table if not exists "+DATABASE_NAME+"." + NotificationManager.getUserStatic(context) + "log ("+
KEY_TIME +" INTEGER primary key, "+ KEY_TEXT +" TEXT not null);");
System.out.println("downhere");
}
catch (SQLException e){
e.printStackTrace(); …