Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to use phone no. from handset in j2me.  RSS feed

 
Mania Pawar
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

can i access hanset adress book in j2me application.

and plz send me sample code because i am newer in j2me.


plz send it i am waiting here....

thank u
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to create a TextBox or TextField with TextField.PHONENUMBER constraints.
In some devices a shortcut button will allow you to access the phonebook
when the textfield is active and retrieve the phone number from there.

See the WTK javadocs for more details. The following code fragment should help.
 
There's a way to do it better - find it. -Edison. A better tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!