BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-01-2008, 06:32 AM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Model: none
PIN: N/A
Carrier: starhub
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Select contact from address book

Please Login to Remove!

Hi all,

Im new to BlackBerry development, but has worked with regular J2me for a while. I am trying to develop an application that needs to input a phone number.

In regular J2me, using TextField.PHONENUMBER, the TextField not only restrict to just valid phone numbers, but can also select a contact from the address book.

In BlackBerry, is there a ui component that does the 2 things:
- accepts only phone numbers
- select a phone number from address book

Thanks
Offline  
Old 05-01-2008, 11:20 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Model: none
PIN: N/A
Carrier: starhub
Posts: 11
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found some answers to my own question..

Using EditField setFilter(new PhoneTextFilter()) can change the input to the field.

To select contact from the address book, i think Invoke API can be used. Can someone verify this? Im sure many developers have done this before.. i just need a confirmation of the correct way.
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

10x 6mm Shaft Hole Dia Plastic Threaded Knurled Potentiometer Knobs Caps
$0.87
10x 6mm Shaft Hole Dia Plastic Threaded  Knurled Potentiometer Knobs Caps picture3 Ohmite 5 meg ohm Potentiometer Type AB 2 Watt tested good
$24.99
3 Ohmite 5 meg ohm Potentiometer Type AB 2 Watt tested good pictureHYSTER 250125 POTENTIOMETER ALLEN BRADLEY 205A8962PI TYPE EJ #50359
$24.32
HYSTER 250125 POTENTIOMETER ALLEN BRADLEY 205A8962PI TYPE EJ #50359 pictureCIC Vernitech / Vernitron 111 Rectilinear Potentiometer 70705, 2.5K +/- 20%
$59.95
CIC Vernitech / Vernitron 111 Rectilinear Potentiometer 70705, 2.5K +/- 20% pictureHoneywell PWV4 Potentiometer Microswitch
$17.5
Honeywell PWV4 Potentiometer Microswitch picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.