Back to project page Metascan-Online.
The source code is released under:
Apache License
If you think the Android project Metascan-Online listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.opswat.metascan; // w w w. j a va2 s.co m import android.database.sqlite.SQLiteDatabase; import android.util.Log; public class DBTable { // Database creation SQL statement static String CREATE_TABLE = "CREATE TABLE IF NOT EXISTS scandata ( " + "id INTEGER PRIMARY KEY AUTOINCREMENT, " + "name TEXT, "+"dataid TEXT, "+ "status TEXT )"; public static void onCreate(SQLiteDatabase database) { database.execSQL(CREATE_TABLE); } public static void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) { Log.w(DBTable.class.getName(), "Upgrading database from version " + oldVersion + " to " + newVersion + ", which will destroy all old data"); database.execSQL("DROP TABLE IF EXISTS todo"); onCreate(database); } }