黑莓中的通话记录
我正在黑莓中开发 CallLogs Sync 应用程序,并且已经部分完成,我不明白的一点是如何向 CallLogs 添加信息。我已从 CallLogs 检索信息并存储在服务器上,但现在我从服务器检索信息,但我没有想到如何将信息添加到 CallLogs,因为我从服务器和 PhoneCallLog 构造函数检索字符串中的所有信息,如下所示:
PhoneCallLog call = new PhoneCallLog(日期,int 类型,int 持续时间,int 状态,participantID 参与者,字符串备注);
请尽快告诉我,我将非常感谢你。
i am working on CallLogs Sync Application in Blackberry and partially i have done it, one point that i didn't understand is how to add information to CallLogs. I have retrieved information from CallLogs and Store on Server but now i retrieved information from Server but how to add info to CallLogs didn't come in my mind as i retrieved all the information in Strings from Server and PhoneCallLog Constructor look like this:
PhoneCallLog call = new PhoneCallLog(Date,int Type,int Duration,int Status,participantID participant,String Notes);
Please tell me as soon as Possible, i will be very thankful to you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
net.rim.blackberry.api.phone.phonelogs.PhoneLogs
类具有添加日志项的方法addCall(CallLog call)
。使用您发布的构造函数创建
PhoneCallLog
实例并将其添加到PhoneLogs
中。您需要对应用程序进行签名才能使用这些方法。 (请参阅 http://www.blackberry.com/go/codesigning )API 文档:
http:// docs.blackberry.com/en/developers/deliverables/6022/net/rim/blackberry/api/phone/phonelogs/PhoneLogs.html
http://docs.blackberry.com/en/developers/deliverables/6022/net/rim /blackberry/api/phone/phonelogs/PhoneCallLog.html
class
net.rim.blackberry.api.phone.phonelogs.PhoneLogs
has methodaddCall(CallLog call)
that adds a log item.create
PhoneCallLog
instance with the constructor you posted and add it toPhoneLogs
. You need to have the app signed to use these methods. (see http://www.blackberry.com/go/codesigning )API documentation:
http://docs.blackberry.com/en/developers/deliverables/6022/net/rim/blackberry/api/phone/phonelogs/PhoneLogs.html
http://docs.blackberry.com/en/developers/deliverables/6022/net/rim/blackberry/api/phone/phonelogs/PhoneCallLog.html