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; // w ww .j a v a 2 s. c o m import android.content.ContentValues; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class FeedDBManager extends SQLiteOpenHelper { public static final String DB_NAME = "feed.db"; public FeedDBManager(Context context, String name, CursorFactory factory, int version) { super(context, name, factory, version); } @Override public void onCreate(SQLiteDatabase db) { } @Override public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { } /** * @description 1??? * @param tableName * @param state * @param url */ public void updateState(String tableName, int state, String url) { SQLiteDatabase db = getWritableDatabase(); ContentValues values = new ContentValues(); values.put("select_status", state); db.update(tableName, values, "url=?", new String[]{url}); db.close(); } }