String sql = "select count(*) as c from sqlite_master where type ='table' and name ='" + tableName.trim() + "' "; cursor = db.rawQuery(sql, null); 查询中,得到的cursor的初始位置是指向第一条记录的前一个位置的 cursor.moveToFirst()指向查询结果的第一个位置. moveToNext也可以将cursor…
Content Providers In this document Content provider basics Querying a content provider Modifying data in a provider Creating a content provider Content URI summary Key classes ContentProvider ContentResolver Cursor Content providers store and retriev…