我正在使用一个显示未接来电的 Android 应用程序:
String[] projection = new String[]{
CallLog.Calls.NUMBER,
CallLog.Calls.TYPE,
CallLog.Calls.DURATION,
CallLog.Calls.CACHED_NAME,
CallLog.Calls._ID
};
String where = CallLog.Calls.TYPE + "=" + CallLog.Calls.MISSED_TYPE + " AND " + CallLog.Calls.NEW + "=1" ;
Cursor c = context.getContentResolver().query(
CallLog.Calls.CONTENT_URI,
projection,
where,
null,
null
);
c.moveToFirst();
if (c.getCount() > 0) newCountersObj.missedCallCounter = c.getCount();
在我的 android listview 检查未接来电后,我想在 android DB 中将它们标记为已读。我怎样才能做到这一点?
使用以下链接更新问题: