Back to project page xposed-keyboard-tweaks.
The source code is released under:
Apache License
If you think the Android project xposed-keyboard-tweaks 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 ca.spacek.gkdd.data; /* w ww . j a v a 2 s . c o m*/ import java.util.Collections; import java.util.HashSet; import java.util.Set; import android.database.sqlite.SQLiteDatabase; public class DictionaryWordTable { public static final String TABLE_DICTIONARY_WORD = "dictionaryword"; public static final String COLUMN_ID = "_id"; public static final String COLUMN_WORD = "word"; public static final Set<String> COLUMNS; static { HashSet<String> columns = new HashSet<String>(); columns.add(COLUMN_ID); columns.add(COLUMN_WORD); COLUMNS = Collections.unmodifiableSet(columns); } private static final String SQL_CREATE = "create table " + TABLE_DICTIONARY_WORD + "(" + COLUMN_ID + " integer primary key autoincrement, " + COLUMN_WORD + " text not null" + ");"; public static void onCreate(SQLiteDatabase database) { database.execSQL(SQL_CREATE); } public static void onUpgrade(SQLiteDatabase database, int oldVersion, int newVersion) { // handle this gracefully database.execSQL("drop table if exists " + TABLE_DICTIONARY_WORD); onCreate(database); } }