Back to project page async_loader.
The source code is released under:
Apache License
If you think the Android project async_loader 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.beinggreenrobot.content.loaderasync; /* w ww . jav a2 s. co m*/ import android.database.sqlite.SQLiteDatabase; import android.os.AsyncTask; @Deprecated public class SQLiteDeleteTask extends AsyncTask<Void, Void, Exception> { SQLiteDatabase db; String table; String selection; String[] args; public SQLiteDeleteTask(SQLiteDatabase db, String table, String selection, String[] args) { this.db=db; this.table=table; this.selection=selection; this.args=args; } @Override protected Exception doInBackground(Void... params) { try { db.delete(table, selection, args); } catch (Exception e) { return(e); } return(null); } }