@@ -0,0 +1,2154 @@
+package ar.edu.unc.famaf.redditreader.backend;%0A%0Aimport android.content.Context;%0Aimport android.database.sqlite.SQLiteDatabase;%0Aimport android.database.sqlite.SQLiteOpenHelper;%0Aimport android.util.Log;%0A%0A/**%0A * Created by aguilarjp on 03/11/16.%0A */%0A%0Apublic class RedditDBHelper extends SQLiteOpenHelper %7B%0A    private static final String TAG = %22RedditDBHelper%22;%0A%0A    public static final String DATABASE_NAME = %22redditdb.db%22;%0A    public static final int DATABASE_VERSION = 1;%0A%0A    public static final String POST_TABLE_ID = %22_id%22;%0A    public static final String POST_TABLE = %22post%22;%0A    public static final String POST_TABLE_TITLE = %22title%22;%0A    public static final String POST_TABLE_AUTHOR = %22author%22;%0A    public static final String POST_TABLE_CREATED_TIME = %22created_time%22;%0A    public static final String POST_TABLE_COMMENT_NUMBER = %22comment_number%22;%0A    public static final String POST_TABLE_THUMBNAIL = %22thumbnail%22;%0A    public static final String POST_TABLE_SUBREDDIT = %22subreddit%22;%0A    public static final String POST_TABLE_POST_ID = %22id%22;%0A%0A    public RedditDBHelper(Context context) %7B%0A        super(context, DATABASE_NAME, null, DATABASE_VERSION);%0A    %7D%0A%0A    @Override%0A    public void onCreate(SQLiteDatabase db) %7B%0A        String createSentence = %22 create table %22 + POST_TABLE + %22 ( %22%0A                + POST_TABLE_ID + %22 integer primary key autoincrement, %22%0A                + POST_TABLE_TITLE + %22 text not null, %22%0A                + POST_TABLE_AUTHOR + %22 text not null, %22%0A                + POST_TABLE_CREATED_TIME + %22 integer not null, %22%0A                + POST_TABLE_COMMENT_NUMBER + %22 integer not null, %22%0A                + POST_TABLE_THUMBNAIL + %22 text not null, %22%0A                + POST_TABLE_SUBREDDIT + %22 text not null, %22%0A                + POST_TABLE_POST_ID + %22 text not null%22%0A                + %22 );%22;%0A%0A        Log.d(TAG, createSentence);%0A        db.execSQL(createSentence);%0A        Log.d(TAG, %22Database created%22);%0A    %7D%0A%0A    @Override%0A    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) %7B%0A        Log.d(TAG, %22Database updated%22);%0A        db.execSQL(%22DROP TABLE IF EXISTS %22 + POST_TABLE);%0A        this.onCreate(db);%0A    %7D%0A%7D%0A

Implement a database handler