• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Can we access the PhoneBook through J2ME

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Any Pointers would be of great Help..

Thanks in Advance,
Chaitanya V
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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"

Mark
 
Chaitanya Varanasi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark!!! Thanks for your quick reply
 
Chaitanya Varanasi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mark,
How about using PIM (JSR 75)? I have seen that Nokia Phones right from 60 Series are supporting this API...

Thanks,
Chaitanya V
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Regards,
Debojit
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
plz,send to me any code which access mobile phone book
any help pleeeeeeez,thanx
 
Mark Spritzler
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.

Mark
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Look at the URL below:

How to find contacts from PhoneBook of mobile phone
http://www.java-tips.org/content/view/1379/73/

How to import Contact into phonebook
http://www.java-tips.org/content/view/1380/73/
 
reply
    Bookmark Topic Watch Topic
  • New Topic