Hi All, I have a Small doubt with regard to J2ME. What my doubt is that....I want to Access the Phone Numbers which are present in the Mobile and do the CRUD operations. I have no idea about how to proceed to this... The project which I need to develop is , to make a Layer on the top of the Contacts and do the Basic CRUD operations which will directly effect on the Mobile on to which its deployed... I hope you all got the Point
No you do not have access to the Phone Book, as it is outside the sandbox. Now a device manufacturer can provide their own proprietary API for connecting to their phonebook, however, this is a big security risk. If I could write a J2ME app that access your PhoneBook, I could in theory delete all your entries without you knowing, and you would be really really mad.
You can get phone nummbers form the Phonebook through a TextBox, but only read only and only as a way to select a number from a "dropdown"
Hi As per my knowledge. you can't access the device original phone book. But alternatively you can create your own phone book using PIM(JSR 75)which nothing but a small DB importing "javax.microedition.pim.PIM". Here you can create separately contact list, event list and to do list. But this db has no connection with device phone book.
Some limited access to the phonebook can be achieved by creating a MIDP 2.0 TextField or TextBox with the PHONENUMBER constraint.
On some devices, this will enable a shortcut key or some kind of scheme that lets you access the device's phonebook and read a number into the TextField/TextBox . [ January 08, 2006: Message edited by: Eduardo Marques ]
You can access the device phone book through JSR75. And some devices support non standard APIs for accessing the phone book. For example, Motorola Iden devices and the v600 series both have phonebook access APIs. There are plenty of examples. Try going the the developer site of the manufacturer that you are using. [ January 12, 2006: Message edited by: Jim Hall ]
Originally posted by eman hossny: plz,send to me any code which access mobile phone book any help pleeeeeeez,thanx
The problem with that is that it would be different for each phone. Since there is not a J2ME API for access, there are proprietary apis by the manufacturer, and then there are phones that support JSR 75, but not many do.
So we can't really post sample code. It is a matter of determining the phone type and going to their developer site to find out the API calls.