11 package com.freerdp.freerdpcore.services;
13 import android.content.Context;
14 import android.database.sqlite.SQLiteDatabase;
15 import android.database.sqlite.SQLiteOpenHelper;
20 public static final String QUICK_CONNECT_TABLE_NAME =
"quick_connect_history";
21 public static final String QUICK_CONNECT_TABLE_COL_ITEM =
"item";
22 public static final String QUICK_CONNECT_TABLE_COL_TIMESTAMP =
"timestamp";
23 private static final int DB_VERSION = 1;
24 private static final String DB_NAME =
"history.db";
28 super(context, DB_NAME,
null, DB_VERSION);
31 @Override
public void onCreate(SQLiteDatabase db)
34 String sqlQuickConnectHistory =
"CREATE TABLE " + QUICK_CONNECT_TABLE_NAME +
" (" +
35 QUICK_CONNECT_TABLE_COL_ITEM +
" TEXT PRIMARY KEY, " +
36 QUICK_CONNECT_TABLE_COL_TIMESTAMP +
" INTEGER"
39 db.execSQL(sqlQuickConnectHistory);
42 @Override
public void onUpgrade(SQLiteDatabase db,
int oldVersion,
int newVersion)