CallLog只能得到来电的时间,长度等信息,怎么得到电话号码?
CallLog只能得到来电的时间,长度等信息,怎么得到电话号码?
CallLog cl = pl.callAt(i, PhoneLogs.FOLDER_NORMAL_CALLS);
Date d = cl.getDate();
int dur = cl.getDuration();
String notes = cl.getNotes();
如上,这个函数只能得到这些信息,怎么得到电话号码呢?这才是最重要的吧
[解决办法]
PhoneCallLog pcl = (PhoneCallLog)pl.callAt(i, PhoneLogs.FOLDER_NORMAL_CALLS);
PhoneCallLog phonelog = (PhoneCallLog)pcl;
int status = phonelog.getType();
String num = phonelog.getParticipant().getNumber();
String name = phonelog.getParticipant().getName();
另:
招收手机开发精英,组团,有兴趣的PM我