|
|
@ -20,6 +20,7 @@ import java.sql.SQLException; |
|
|
|
|
|
|
|
|
|
|
|
import android.content.Context; |
|
|
|
import android.content.Context; |
|
|
|
import android.database.sqlite.SQLiteDatabase; |
|
|
|
import android.database.sqlite.SQLiteDatabase; |
|
|
|
|
|
|
|
import android.support.annotation.Keep; |
|
|
|
import android.util.Log; |
|
|
|
import android.util.Log; |
|
|
|
|
|
|
|
|
|
|
|
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; |
|
|
|
import com.j256.ormlite.android.apptools.OrmLiteSqliteOpenHelper; |
|
|
@ -35,6 +36,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper { |
|
|
|
private static final String DATABASE_NAME = "transdroid.db"; |
|
|
|
private static final String DATABASE_NAME = "transdroid.db"; |
|
|
|
private static final int DATABASE_VERSION = 1; |
|
|
|
private static final int DATABASE_VERSION = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Keep |
|
|
|
public DatabaseHelper(Context context) { |
|
|
|
public DatabaseHelper(Context context) { |
|
|
|
super(context, DATABASE_NAME, null, DATABASE_VERSION); |
|
|
|
super(context, DATABASE_NAME, null, DATABASE_VERSION); |
|
|
|
} |
|
|
|
} |
|
|
|