How to choose one of the contact nummber?

now, if the contact don't have only one phone MOBLE, I can get and set, but if it has more than one phone, I can't choose which one I want, the code is that

so, how can I do?

public void showAddressBook() {}
try {}
Contact list BlackBerryContactList = (BlackBerryContactList) BlackBerryPIM.getInstance () .openPIMList (BlackBerryPIM.CONTACT_LIST, BlackBerryPIM.READ_WRITE);
Contact BlackBerryContact = (BlackBerryContact) contactList.choose ();
If (contact! = null) {}
Portable chain = "";
int numValues = 0;
numValues = contact.countValues (BlackBerryContact.TEL);
   
for (int i = 0; i)< numvalues;="" i++)="">
If (contact.getAttributes (BlackBerryContact.TEL, i) == BlackBerryContact.ATTR_MOBILE) {}
Cell = contact.getString(BlackBerryContact.TEL, i);
break;
}
}
textObj.setText (mobileNumber);
}
} catch (PIMException ex) {}
ex.printStackTrace ();
}
}

first of all, do not forget to check for null.
Take a look at the dialog class, it provides a few pre-made popups, some of them take an array of objects as an argument. store contacts in the table and put their index in an array of int to choose the right pair that you get an int as a result of the dialog box.

Tags: BlackBerry Developers

Similar Questions

  • Trouble with the pdf form trying to "choose" one of the two paragraphs of text

    I am creating a PDF form and trying to find a way to choose one of the two groups of text that are approximately long paragraph. and having only the one I choose are visible on my pdf.  I tried to use a drop-down list, but it wouldn't accmodate the amount of text that I needed

    How to refer to a checkbox.

    I've added a new field of text (multiline) and put the java script in the section actions, just as you typed.  When I run the shape there is no box to choose and is not my default text (the text box is empty).  When I click outside the text box and then comes my 2 paragraph.

    All of the suggestions.

    BD

  • Creating control "choose one of the following options.

    I want to make a control to "Choose one of the following Versions" for the intervention of the user.  Normally I just make a list with the appropriate values and allow the user "choose".  However, I want a Big check, possibly in bold and blue, so that it stands out and makes for a more "user-friendly" front

    If it's a digital control, it is easy to define the size and font of the entrance, but an Enum does not seem to allow this.  So I thought of curious Cousin of the Enum, the ring of text.  It's pretty easy to fill the ring of the Enum and the ring has a RingText.Font property, but when I try to connect something in this property, I get error 1.  While writing this note, I checked to see if I could read it - that works!  [It is said that the police is no 15 "App Font" color is 0, and no 'option' is selected].

    Is this inability to write the property of RingText.Font a Bug or a feature?  Someone at - it an elegant way to approach this problem?

    Bob Schor

    You can have the selected enum, then simply change the size of police through the box at the top. You need to have the selected text to change the text content. Change the attributes of the text required programmaticaly?

    Edit: Adding photo for clarity

  • How can I transfer all the contacts in my address book to my laptop?

    How can I transfer all the contacts in my address book to my laptop?

    Thank you

    Charles

    Original title: ADDRESS BOOK

    It depends on where your contacts are stored today.  Whether they're on your phone, for example.  But they are also synchronized to your email provider?  In other words, can you get to your address book by going to your email Web site as an e-mail service to company/school, or Gmail, Yahoo, Hotmail or Outlook.com?  If so, you can sync with your laptop by adding this account to your computer.

    If you can answer with details about your configuration and where your contacts are now and where, inside your laptop you want (like inside Outlook perhaps?), we can help a lot more.

  • How to select one of the VMRC and WebMKS of vRealize of automation for the end user

    As you know, there are two Protocol to use the remote console to the configured virtual machine of vRealize Automation. I know how to select one of the VMRC and WebMKS on vCenter via Web Client, but I'm not sure whether vRealize Automation can select one of the VMRC and WebMKS. Is there anyone who knows about it?

    You can set in the law.

    Grant

  • I bought a set of icons, but the downloaded file is to .ia. I can drag the file in photoshop, but I can't choose one of the icons of the file to separate my design. The file takes the form of a strong image. Any thoughts?

    I bought a set of icons, but the downloaded file is to .ia. I can drag the file in photoshop, but I can't choose one of the icons of the file to separate my design. The file takes the form of a strong image. The file also does not to my credit. Any thoughts?

    Only editable in Adobe Illustrator .ai file or another program graphic vector compatible Illustrator.

  • Urgent! How to open one of the last update of the project in an earlier version first?

    How to open one of the last update of the project in an earlier version first?


    I can't open a project that was saved in the latest version of first. My version is earlier than that of the project that have been saved

    Hello

    So far, backward compatibility is not available in Premiere Pro.

    Export your project as a FCPXML of the new version of first and try to import in the previous version.

    Kind regards

    Ilyes Singh

  • How can I combine all the contacts in a list?

    Now when I show all contacts (Yes, including the iCloud contacts) I get duplicate contacts. Some appear to come from contacts on my machine (MacBook) and other iCloud. Some are updated, some are not. I want to merge all the contacts in a single complete list and work for updating these contacts in one place. What is the procedure to do this.

    Yes, I know that I can click to not display all the contacts. But that does not solve the problem. I want a list, if it is possible.

    Close if you wish in iCloud or on my Mac. Go to the one you want to use it, select all contacts, and then File/Export. Go to one you want to keep, and then file/import.  See the link below for resolve duplicates.

    Contacts - resolve duplicates

  • How to remove one of the elements of operating system of Windows Start menu?

    Original title: choose an operating system to start, or press Tab to select a tool. _ (use the arrow keys to highlight your choice, then press enter) windows Vista__Microsoft windows Vista __Microsoft

    How to remove 1 of the operating system for each time I start the computer, I dun hv to click on the 1st system?

    Thanks for the help

    Hi the user Noob,

    We recommend that you remove the entry that allows Windows to start successfully. Microsoft Windows Vista (C:\Windows) is the default. You can remove the second entry and check the result (delete if it does not work).

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to choose right for the WAN Interface MTU size?

    Hello

    I would like to know How to determine the right size MTU to set in the properties of the WAN interface (in my case, NSA appliances).

    First of all. I noticed that with SonicOS Enhanced 5.9.x, there is a Tool of diagnosis called PMTU discovery:

    This tool is not available with SonicOS Enhanced 5.8.x.

    I guess using this built-in tool is a way to determine the right MTU size to apply.

    Second, for SonicOS versions that do not have this tool and to understand just how to manually determine the size MTU, I would like to know what is the method to follow.

    On the Internet, I found this method by using the ping-f-l command. Once you have determined the largest possible packet size, it ask you to Add 28 to that number and you get the MTU size to define the interface.

    Case study:

    In my business, there are 2 sites: 1 in China and 1 in South Korea. Both have a firewall SonicWALL NSA.

    To determine the MTU size that is applicable from the Chinese site, I get the same results with the 2 methods mentioned above.

    With the help of the PMTU discovery:

    I get 2 IPs: 8.8.8.8 and the Korean FW IP WAN. I get the same result: 1500.

    However, I noticed that the MTU size should be set to its maximum (1500) of size on the properties of the interface WAN for this test to work properly. Indeed, when I put in 1404 to test, PMTU discovery find 1404 such as MTU size:

    With the help of ping - f - l:

    When you use the ping with FW Korea WAN IP method, I found 1472 as the maximum packet size:

    According to the method I've read on the Internet, adding 28 will make me a MTU of 1500, same size as the PMTU discovery method.

    My question is: can you confirm that these 2 methods are correct determine the MTU size to set the WAN interface? Especially the one with the ping command? If not, how do?

    Thanks in advance for your comments.

    I can tell you that as technicians, we use the way to CMD line to adjust the MTU on WAN interfaces. We saw this as a number to work with.

    Thank you
    Ben D
    #Iwork4Dell

  • How to remove and reset the Contacts folder / files in Vista Windows Mail

    How can I delete the Contacts in Vista - and actually reset the folder so that windows treats the files ".contact" as - good contact and no text.

    Because what was going on, I decided to try to start from scratch - I just copied all the files in the folder of contacts to a archive and deleted all the files in the contacts folder.

    From Windows Mail - I am capable of was able to use the tool 'Add to contacts' and the Contact form (properties) dialog happens - but if I open the Contacts folder directly (Windows or Windows Mail 'button'), I get a window of the typical Explorer with a newlt created contact list (for example there are 6 in there now all created from Windows Mail) - if I try to open an existing contact - it opens in the Notepad - text - garbage.  (Same problem I had)

    I've been setting up with a Contacts folder corrupted since I bought my desktop with Vista in 2008 - I think I looked into the question of import then and there is no function of CSV to import the contacts (that I could find) - and / or the inport corrupted the file - so when I open a file of contacts I get the text of the file - it opens in Notepad - and not a Contact form.

    With more than 600 contacts in there, I didn't have to manually retype all data, but it's time to bite the bullet.

    Hello PaulJMoore,

    ·         Do you have just copied the contacts in archive and did not export them?

    ·         What is the extension of the contact files you copied?

    You should try to reset the contacts folder.

    1. in Windows Explorer, navigate to the folder C:\Users\(user name) \Contacts.

    2. right click on an empty space in the main pane of the middle of the window and click Customize this folder.

    3. under the type of folder do you want, click the arrow next to the model list drop-down list.

    4. click on Contacts to select.

    NOTE: Check apply also this template to all subfolders if you want to change all subfolders in the Contacts folder to the Contacts model as well.

    5. click on OK.

    The contacts created with Windows Vista are in the format of .vlc. When you try to open them to the archived location where you saved, he would not be able to access Windows Mail to open the contacts.

    First of all try to copy all the contacts in the Contacts folder on the \Contacts C:\Users\(user name folder location).

    If this does not work, try to import all the contacts that you have saved to the location that is archived using the import option from the Windows Messaging.

    You can read this article which will give you information on how to import contacts:

    http://Windows.Microsoft.com/en-us/Windows-Vista/import-export-or-change-the-format-for-contacts

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit our Microsoft answers feedback Forum and let us know what you think.

  • How to upgrade one of the two lines in double

    I use 11.2.0.3.0

    Is it possible using a CASE statement to find the rows that are double and one of the two lines was updated so that they are all unique?

    What I get is something like this

    Col1 Col2 COL3 COL4 Col5

    1

    1111
    11111
    22222
    22222
    33333
    33333
    44444
    44444
    55555
    55555

    I would change one of the columns in the two lines that makes the unique lines like this

    Col1 Col2 COL3 COL4 Col5
    11111
    12111
    23222
    24222
    35333
    36333
    47444
    48444
    59555
    50555

    Hello

    I don't see how a CASE expression would contribute to this problem.

    In your original message, you said you wanted to update the table, in other words, to permanently change some of the values stored in the table.

    In response, #2, looks like you want to change what is in the table, you just want to replace by new values for col2 in this query, without permanently changing table.  You can do this by using the ROW_NUMBER right in the query, when you thought using a CASE expression.

  • I recently installed Firefox and choose one of the Harry Potter origins, but after awhile like to change the background of the standard home page, one you help me do this?

    Please tell us the steps to swap out the bottom of Harry Potter for the standard Firefox... while I like it, the background is too busy at the top of the screen of my laptop. Thank you

    See http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas

    Choose 'Default' for the default theme of Firefox.

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    Not related to your question, but...

    You must update some plug-ins:

  • How to read a CLOB file and choose one of the node

    I have the table with one of its datatyp as CLOB, I need to read a particular node only.
    Ex
    Table tesxml has two ColonneD id, xml and the xml field is a CLOB that includes data as shown below.
    <?xml version="1.0" encoding="UTF-8"?>
    <alert>
         <type0 comment="section in XSL component" name="Initial Information">
              <details>     
                   <Priority>0001</Priority>
                   <Date>2010-06-29</Date>
                   <Initial_Information></Initial_Information>
              </details>
                      </type0>
    </alert>
    now I need to select id, < value(from xml) Date >, < value comment >

    o/p should look like
    0000,2010-06-29,section in XSL component
    I tried these queries, but I'm doing something wrong with the syntax...
    SELECT alert_internal_id,EXTRACTVALUE(VALUE(c), '/Date') datee
      FROM (SELECT id,xmltype(xml) xml FROM tesxml),
           table(XMLSEQUENCE(EXTRACT(xml, '/alert/type0/details/'))) c;
    
    
    select dbms_lob.read(HTML_FILE_KEY,alert,type0,details,Date) from alerts

    MichaelS says:
    What is your version of db?

    You can do it in 11 GR 2

    or even 10g...

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> with t as (
      2  select xmltype('
      3      
      4          
    5 0001 6 2010-06-29 7 8
    9
    10
    ') xml from dual 11 ) 12 -- 13 -- 14 select x.* 15 from t, 16 xmltable ('.' passing xml 17 columns prio varchar2 (5) path '/alert/type0/details/Priority', 18 dt varchar2 (15) path '/alert/type0/details/Date', 19 type_comment varchar2 (25) path '/alert/type0/@comment') x 20 / PRIO DT TYPE_COMMENT ----- --------------- ------------------------- 0001 2010-06-29 section in XSL component SQL>
  • How to restore files to their original creation order after details view and choosing one of the possible sequences

    I need to restore iniside files a file in the order in which they were initially created, namely "unsequence" them. Should be simple and obvious, but I'm dead end (after decades of bits and bytes that the average life of most Americans. I'm embarrassed but need help!

    • Open the folder
    • Click view and make sure details is selected (click to select if it is not)
    • Right-click anywhere in the column headings, and then click on check creation Date

    Now, simply by clicking on the column heading "Date of creation", you can sort by creation date, click again to reverse sort on date of creation.

    Tricky

Maybe you are looking for

  • With 5s and 10 IOS iPhone WiFi problems

    Hi, sorry for my bad English. After the update to IOS 10 my WiFi connection is not stored permanently. I often need a new connect to the router and enter the WPA2 key again. My WiFi network is hidden, the SSID is not visible. The problem occurs only

  • Configuration of wireless network

    I have a HP SmartTouch 600-1050. I am connected to the internet via cable modem BrightHouse. I recently acquired a Nook HD + and would like to know how to set up a wireless network. I have a Linksys Wireless N300 router.

  • Vista Service Pack 2 or 32 - bit makes my game lag horribly.

    I play online but Vista, he is dragging a lot. I tried to make my computer look like Windows 98 to increase performance, but it didn't work. Friends advised me to for Vista 64-bit, Service Pack 1 also sometimes the computer crashes 2 seconds (still t

  • My computer is infected with win32: sysdef fake Trojan horse.

    I used malwarebytes to remove parts of it, but the Trojan horse is always redirect any browing site and my programs on the start menu are still missing.  Any ideas on how to fix?

  • Microsoft Expression Web 3 will not open

    When you try to open Microsoft Expression Web 3 (installed by disc), I get the following message: "Microsoft Expression Web 3 has encountered a problem and needs to close.  We are sorry for the inconvenience. "What can I do?