`
信nado
  • 浏览: 666 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
最近访客 更多访客>>
社区版块
存档分类
最新评论

获取短信和通话记录

阅读更多
    Cursor cursor = getContentResolver().query(CallLog.Calls.CONTENT_URI,
            null, null, null, CallLog.Calls.DEFAULT_SORT_ORDER);

    String strUriInbox = "content://sms/inbox"; 
    Uri uriSms = Uri.parse(strUriInbox); 
    Cursor c = context.getContentResolver().query( 
            uriSms, 
            new String[] { "_id", "thread_id", "address", 
                    "person", "date", "body" }, null, null, 
            null);

    据说是这样
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics