String[] projection = new String[] {
CallLog.Calls.NUMBER, CallLog.Calls.CACHED_NAME,
CallLog.Calls.TYPE, CallLog.Calls.DATE,
"logtype",
};
ContentResolver resolver = mContext.getContentResolver();
final Cursor cur = resolver.query(CallLog.Calls.CONTENT_URI, projection, null, null,
CallLog.Calls.DATE + " DESC ");
while (null != cur && cur.moveToNext()) {
// logType = 100 时是通话记录,200短信,300彩信
if(!logType.equalsIgnoreCase("100")) {
continue;
}
}