android通话记录 [英] call log in android

查看:83
本文介绍了android通话记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在android

How to retrieve call log to list view in android

推荐答案

中检索呼叫日志到列表视图 ^ ]
Check this Link[^]


如此简单:
so easy :
public ArrayList<systemcalllog> queryAllCallLog() {
        ArrayList<systemcalllog> result = null;
        final ContentResolver contentResolver = mContext.getContentResolver();
        Cursor cursor = contentResolver.query(CallLog.Calls.CONTENT_URI, null,
                null, null, SystemCallLog.Columns.DATE
                        + " COLLATE LOCALIZED desc");
        if (null != cursor) {
            result = new ArrayList<systemcalllog>();
            SystemCallLog item = null;
            while (cursor.moveToNext()) {
                item = SystemCallLog.formatCursor(cursor);
                result.add(item);
            }
            cursor.close();
        }// end if
        return result;
    }
</systemcalllog></systemcalllog></systemcalllog>


如果您想了解更多有关信息,请顺其自然:http://www.cppcode.com ....

gagagaga ....


if you want to know more about that ,just flow:http://www.cppcode.com....

gagagaga....


这篇关于android通话记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆