Read/Copy iphone contacts from PC using C# -
can guide me how read contacts iphone pc using c# application.
recently, had used mobiledevice.dll http://mobiledevice.codeplex.com/. can retrieve model, serial number, version, firmware information, jailbroken status, , more.
but there no api read address book of iphone device(the contacts stored in sqlite database @ location: /private/var/mobile/library/addressbook/addressbook.sqlitedb). don,t know how copy addressbook.sqlitedb file pc.
i know possible, there number of desktop applications doing same task ifunbox, iexplorer, http://www.iphone-to-pc.com/
add these code in viewdidload:
abaddressbookref addressbook =abaddressbookcreate(); cfarrayref allpeople = abaddressbookcopyarrayofallpeople (addressbook); cfarrayref allgroups = abaddressbookcopyarrayofallgroups(addressbook); (id person in (nsarray *) allpeople) [self logcontact:person]; (id group in (nsarray *) allgroups) [self loggroup:group]; cfrelease(allgroups); cfrelease(allpeople); cfrelease(addressbook);
then create addressbook.abaddressbook copyarrayofallpeople , abaddressbook copyarrayofallgroups can read info. can output contacts console via logperson , loggroup.
more reviews:http://www.softwarebbs.com/wiki/main_page
Comments
Post a Comment