Back to project page android-Notifier.
The source code is released under:
GNU General Public License
If you think the Android project android-Notifier 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 rickflail.messaging.notifier; //w ww . java 2 s . c o m import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class MessagesOpenHelper extends SQLiteOpenHelper { public MessagesOpenHelper(Context context) { super(context, "messages", null, 2); } @Override public void onCreate(SQLiteDatabase db) { db.execSQL("CREATE TABLE messages (_id INTEGER PRIMARY KEY ASC AUTOINCREMENT, title VARCHAR, message VARCHAR, link VARCHAR, linkText VARCHAR, key VARCHAR DEFAULT NULL, timestamp DATETIME DEFAULT CURRENT_TIMESTAMP, viewed INTEGER DEFAULT 0)"); } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { return; } }