Is it possible to access the Mac Address book API from pure Java?
-
Just wondering if it is possible to access the Mac OS X Address Book API's from pure Java 6 code? I want to keep this completely platform independent as my program is built for Windows & Linux also (open source & free: http://jsmsirl.sourceforge.net/). Any help is much appreciated!
-
Answer:
There is no way, as far as I know. Apple has a guide for accessing the address book through JNI though, which is available http://developer.apple.com/java/jniuniversal.html. The sample code for MyFirstJNIProject is available http://developer.apple.com/samplecode/MyFirstJNIProject/index.html. The guide also shows how to check the underlying operating system and only call the JNI code when running on Mac OS X platforms.
Fin at Stack Overflow Visit the source
Other answers
I figured out a way of doing it by using the Rococoa library. I've described how it's done http://finbarrbrady.com/2010/03/accessing-cocoa-frameworks-from-java/.
Fin
sqlite3 AddressBook-v22.abcddb and You have access to all data from Address Book, now some SQL statements and You're done: select * from ZABCDCONTACTINDEX; for example HF
dmilith
Related Q & A:
- How to get contacts using address book API in ios programming?Best solution by Stack Overflow
- How can I access my contact list and address book?Best solution by Yahoo! Answers
- How do I access my email address book?Best solution by Yahoo! Answers
- How to import address book from Yahoo mail to Mac?Best solution by Yahoo! Answers
- How do I sync my contacts with my mac address book?Best solution by eHow old
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.