Reading call history in iPhone OS

前端 未结 5 1350
伪装坚强ぢ
伪装坚强ぢ 2020-12-05 05:35

I\'m doing some research on the feasibility of an iPhone application, and can\'t find any indication in Apple\'s documentation that an iPhone app can read the call history o

相关标签:
5条回答
  • 2020-12-05 06:19

    Seems the only way is to read the log from the iTunes side but now from the phone:

    http://arstechnica.com/apple/news/2007/11/iphonelogd-another-solution-for-viewing-your-iphone-call-log.ars

    0 讨论(0)
  • 2020-12-05 06:23

    Unfortunately you can't access the call history. The only User Data you have API access to is the address book. You can also access photos/pictures but only by starting an iPhone-controlled dialog that allows the user to choose a single image.

    It's a bit sucky, hopefully this will be expanded in future versions.

    0 讨论(0)
  • 2020-12-05 06:24

    You can access call history on the Mac by sniffing around the iTunes directory. There are apps out there that do this.

    0 讨论(0)
  • 2020-12-05 06:30

    AFAIK you can't access call history. The address book is a database of contacts, not call information.

    You can read more about the address book in the SDK's "Address Book Programming Guide for iPhone OS."

    0 讨论(0)
  • 2020-12-05 06:31

    I did some reading in which states that you can access the call history on the iphone. It may be dated but worth a shot. Apparently the history is/was held in just a sqlite db on a table called call. The db is/was located at /private/var/mobile/library/CallHistory/call_history.db

    If you use FMDB, you can simply do something like this.

    FMResultSet *rs = [db executeQuery:@"Select * from Call"];

    to get the call history

    0 讨论(0)
提交回复
热议问题