get calllog fail

coolpad Coolpad 8122

 

Uri smsUri = CallLog.Calls.CONTENT_URI;
    Cursor callLogCursor = cr.query(smsUri, null, null, null,
            CallLog.Calls.DEFAULT_SORT_ORDER);

android.database.sqlite.SQLiteException: no such column: data_id (code 1): , while compiling: SELECT CallsStat_id, ip_prefix, numberlabel, matched_number, type, date, contactid, statNew, lookup_uri, moduletype, _id, name, normalized_number, ring_count, photo_id, formatted_number, number, geocoded_location, countryiso, data_id, numbertype, new, duration, simid, isprivate, voicemail_uri, is_read, raw_contact_id, vtcall FROM calls_restrict_view

posted @ 2014-03-14 13:09  xiaokang088  阅读(452)  评论(0编辑  收藏  举报