如何检索Android的最近通话清单和收藏夹列表? [英] how to retrieve recent call list and favourites list in android?

查看:103
本文介绍了如何检索Android的最近通话清单和收藏夹列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要调用相应按钮的点击最近呼叫列表,最喜欢的通话清单和需要在我自己的名单layout.I数据是新的Andr​​oid和有很多的麻烦与this.can请人帮助我..在此先感谢..

I need to call recent call list and favourite call list on the click of respective buttons and need the data in my own list layout.I am new to android and having lot of trouble with this.can anyone please help me..thanks in advance..

推荐答案

为了得到最近的通话清单,你可以在Android的使用CallLog。 这里是一个很好的教程的This 也是很有帮助的。

For getting recent calls list,you can use CallLog in android. Here is a good tutorial.This is also helpful.

您可以使用它像这样所有呼出电话:

You can use it for all outgoing calls like this :

Cursor cursor = getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null, android.provider.CallLog.Calls.TYPE+"="+android.provider.CallLog.Calls.OUTGOING_TYPE, null,null);

对于所有类型的呼叫,使用它像:

For all types of calls,use it like:

Cursor cursor = getContentResolver().query(android.provider.CallLog.Calls.CONTENT_URI,null, null, null,null);

这篇关于如何检索Android的最近通话清单和收藏夹列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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