@@ -0,0 +1,748 @@
+package com.whereuat.whereu.db;%0A%0Aimport android.os.AsyncTask;%0A%0Aimport com.whereuat.whereu.db.command.DbCommand;%0A%0A/**%0A * Created by kangp3 on 4/5/16.%0A */%0Apublic class DbTask extends AsyncTask%3CDbCommand, Void, Object%3E %7B%0A    public interface AsyncResponse %7B%0A        void processFinish(Object result);%0A    %7D%0A%0A    public AsyncResponse delegate = null;%0A%0A    public DbTask(AsyncResponse delegate) %7B%0A        this.delegate = delegate;%0A    %7D%0A%0A    @Override%0A    protected Object doInBackground(DbCommand... commands) %7B%0A        DbCommand command = commands%5B0%5D;%0A        return command.execute();%0A    %7D%0A%0A    @Override%0A    protected void onPostExecute(Object result) %7B%0A        if (delegate != null) %7B%0A            delegate.processFinish(result);%0A        %7D%0A    %7D%0A%7D%0A

Add custom AsyncTask for DB operations