Back to project page SimpleReader.
The source code is released under:
Apache License
If you think the Android project SimpleReader 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.dreamteam.app.db; //from w ww.j ava2 s. c o m import android.content.ContentValues; import android.database.sqlite.SQLiteDatabase; public class FavoItemDbHelper { public static void insert(SQLiteDatabase db, String title, String pubdate, String itemDetail, String link, String firstImgUrl, String sectionTitle) { ContentValues values = new ContentValues(); values.put("title", title); values.put("pubdate", pubdate); values.put("item_detail", itemDetail); values.put("link", link); values.put("first_img_url", firstImgUrl); values.put("table_name", sectionTitle); db.insert("favorite_item", null, values); db.close(); } public static void removeRecord(SQLiteDatabase db, String link) { db.delete(DbManager.FAVORITE_ITEM_TABLE_NAME, "link=?", new String[]{link}); db.close(); } }