This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes phonebook acces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Reply Bookmark "phonebook acces" Watch "phonebook acces" New topic
Author

phonebook acces

Benjoe Reyes
Ranch Hand

Joined: Apr 24, 2002
Posts: 109
how can i access a cellphone's (motorola i50sx) phone/addressbook? like reading, editing and deleting?
thanks
Sathya Srinivasan
Ranch Hand

Joined: Jan 29, 2002
Posts: 379
You cannot. MIDP and CLDC security restrictions do not permit you to access any of the phone's applications outside J2ME sandbox.
The only access allowed by MIDP 2.0 is accessing the phonebook from a TextField that is of type PHONENUMBER for convenience purposes and that too only for selecting the number.


Cheers, Sathya Srinivasan - SCJP 1.2, SCWCD 1.2, SCMAD 1.0
Co-Author of Whizlabs SCMAD Certification Exam Simulator and SCMAD Exam Guide Book
David Price
Ranch Hand

Joined: Jan 22, 2003
Posts: 93
To be clear: in MIDP 2.0 there is no way for a MIDlet to access a phone number from the user's phone-book. However, if its UI includes a text field with type PHONENUMBER, then the phone can provide a convenient way for the user to select a number for that field from their phone-book. To the MIDlet, it's just the same as if the user typed the number.
For a MIDlet to be able to edit/add/delete phone-book entries, the phone would have to support the JSR-75 'PIM optional package'. I've not seen a phone announced yet that supports that, but they'll no doubt be coming soon.
It's possible that some manufacturers might already have provided a proprietary extension to MIDP that provides that provides the same features as the PIM optional package: check the manufacturers' developer sites for this kind of thing. Nokia at least hasn't done this.
[ February 24, 2004: Message edited by: David Price ]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: phonebook acces