How to obtain the list of fields for a Contact telephone

Hello

Is it possible to just get a phone for a javax.microedition.pim.Contact field list? Thank you.

Here is a code that can help you:

List of BlackBerryContactList = null;
try {}
list = PIM.getInstance (BlackBerryContactList) (.openPIMList)
PIM. CONTACT_LIST, PIM. READ_ONLY);
} catch (PIMException e) {}
Generative TODO catch block
e.printStackTrace ();
}

Contact BlackBerryContact;  IT'S YOUR CONTACT

Contact = context (BlackBerryContact);

If (contact! = null) {}

Get an array of all contact populated fields.
int fieldsWithData [] = contact.getFields ();

To loop through all the fields in contact populated.
for (int fieldCount = 0; fieldCount)< fieldswithdata.length;="" ++fieldcount)="">
Fill in the appropriate BasicEditfield.

switch (fieldsWithData [fieldCount]) {}

Extract all the phone numbers and
display in the appropriate field.
case BlackBerryContact.TEL:
for (int atrCount = 0; atrCount)<>
.countValues (BlackBerryContact.TEL); (++ atrCount) {}
Object [] detailFields;
Switch (contact.getAttributes)
(BlackBerryContact.TEL, atrCount)) {}
case BlackBerryContact.ATTR_WORK:
System.out
.println (contact.getString)
BlackBerryContact.TEL,
atrCount));
                                     
break;

case BlackBerryContact.ATTR_WORK2:
Do something
break;

case BlackBerryContact.ATTR_HOME:
Do something
break;

case BlackBerryContact.ATTR_HOME2:
Do something
break;

case BlackBerryContact.ATTR_MOBILE:
Do something
break;

case BlackBerryContact.ATTR_PAGER:
Do something
break;

case BlackBerryContact.ATTR_FAX:
Do something
break;
}
}
break;

}
}

Tags: BlackBerry Developers

Similar Questions

  • How to obtain the list of programs appears

    I have a HP Pavilion a6542p Windows 7 64 bit computer from office. When I connect my camera to my computer. A list of a few programs will not be displayed on the screen today. If I can choose what program I want pictures transferred to. Before a program list arise so I could select a. One day, I checked a box on the top of the list that I wanted the pictures transferred to this program, whenever I plugged my camera. I wanted to, I didn't. I would like for the list of programs appears on the screen whenever I connect my camera. How can I get the list of programs appears on the screen whenever I connect my camera? If please email and let me know.

    Go to Panel.Use control the arrow at the top right drop-down list next to "display by" to "small icons". Then choose Autoplay, open it and the value "ask me Everytime. You may need to scroll down to see the camera.

  • How to get the list of files for a virtual machine?

    Hello

    Virtual machines can have their files distributed on several issues (even through several data warehouses).

    PowerCLI gives us an easy way to retrieve the data warehouse associated with a virtual (Get-data store) machine, but it doesn't seem to be a built-in method to get the list of all records where a given virtual machine stores all its files. Or maybe I'm just blind ;-)

    Can anyone offer an overview on how to achieve this?

    Thank you

    No, that sounds like a good idea to copy/back up virtual machines.

    I adapted the script. She now returns one row for each unique record

    foreach($vm in Get-VM){
      $folders = $vm.ExtensionData.LayoutEx.File | %{$_.Name.Split('/')[0]} | Sort-Object -Unique  $folders | Select @{N="VM";E={$vm.Name}},@{N="Folder";E={$_}}
    }
    
  • How to make 'the list' by default for Windows Explorer?

    Details is the option by default whenever I find files or documents in Windows Explorer in Windows 7.  I can change a particular folder for the 'list', but as having the default value for the list and details to be an option.

    If you set this value, it will remember that whenever you return to this file until you change something else.  If you don't want to define for each folder one at a time, you can use my trick to apply both:

  • How to obtain the latest official OS for my "BOLD" BlackBerry Smartphones?

    Hey all, I just got my new Bold 9700 yesterday and had to do an upgrade of the OS to V5.0.0.602 which he says is the latest OS, but I see all these other 'later' BONES floating around and I'm confused now. Who is the last OFFICIAL OS for AT & T and where can I download legally without having a leaked version?

    Operating system device provided are "released" by specific carriers once that they are certified and trained to their support technicians, but still, you are able to load any carrier the same model by following the instructions below.

    See the link below for download and simple installation instructions.

    http://www.BlackBerryForums.com/General-9700-series-discussion-bold-2/228579-latest-OS-9700-5-0-1254...

    Make a backup of your device first, using Desktop Manager > backup. Close the office at the end Manager.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.
    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

  • How to obtain the list of filters available programmatically

    I have my own dialog box and you want to fill the filter with the extensions can accommodate adobe acrobat.

    Is there a way to get this list programmatically? If Yes, where and how I'm doing.

    The filters I want are for the Insert Page dialog box and replace dialogue Pages

    Thank you

    Such a coincidence, just look at this myself... For me, I think that information is given in kind, for example when implementing this callback

    ACCB1 ASBool ACCB2 (MyAVAppOpenDialog)

    AVOpenSaveDialogParams dialogParams,

    ASFileSys * outFileSys,.

    ASPathName * outASPathNames,.

    AVArraySize * outNumASPathNames,.

    AVFilterIndex * ioChosenFilterIndex)

    the dialogParams structure contains fileFilters, which I think you can iterate and do what you want with...

  • How to obtain the list of the nominees of the LOV

    How can I get a list of the named LOV I created in my application? (A query) simply similar to the selection list that appears when we try to create a LOV. I hope I'm clear

    Published by: vmk on July 24, 2012 15:54

    VMK,

    Try the APEX APEX_APPLICATION_LOVS view

    select * from APEX_APPLICATION_LOVS
    where application_id = &APP_ID.
    

    Jeff

  • How to obtain the list of topic titles and coresspoding names of HTM in RH 9?

    I need to generate a report containing a list of topic titles and names HTM vaues in RH9 project. Guidance on how this can be achieved?

    Use tools > reports > the menu heading Properies. If you use the Options button to deselect all options, you'll end up with exactly what you want. You can even export to TXT or RTF file.

  • How to obtain the list of users who have logged vCenter

    Y at - it a script that lists the users who have signed in a specific vcenter?  I couldn't seem to find a.

    Take a look on Get vCenter full session info

  • How to obtain the list of the vCAC host attached to the VCO in the VCO workflow

    Is it possible to get a list of all host vCAC attached to vCenter Orchestrator in the VCO workflow?

    Yes:

    vcacHosts = Server.findAllForType("VCACCAFE:VCACHost");
    
  • How to obtain the list of virtual machines in a cluster with the specific name

    Get-Cluster "Group 1" | Get - VM | where {$_.name - eq "owp *"} | Select name

    I've tried to filter the virtual machines with a specific name of a cluster by using a single command line but I am not going do anything...?

    I get results if I just Get-Cluster "Cluster 1' | Get - VM, but I want excluded other virtual machines to help to be enjoyed.

    Use - as instead of-eq

    Get-Cluster 'Cluster 1' | Get-VM | where {$_.name -like "owp*"} | select name
    
  • How long does it take for the custom field created in SFDC appears in the list of field mapping?

    How long does it take for the custom field created in SFDC appears in the list of field mapping? I hit the refresh field button, but it does not appear after 5 min. I just need to have patience?

    I had the same problem yesterday, I think it took about 10-15 minutes to appear.

  • Get "Windows could not obtain the list of devices from Windows Update, please try again later"

    Trying to load the printer driver for HP DeskJet 990c on Win7 64-bit (Intel i7 - 2640M). All online sources, including HP say pilot is available by clicking on "Windows Update" in the install printer driver dialog box. In doing so, always get message "Windows could not obtain the list of devices from Windows Update, please try again later".

    Windows Update is set to "Download updates but let me choose whether to install them".
    Downloaded and extract full X 86 driver catalog (X 86 - all - 4189_1228a7cf7b1aac21346b20cb6e21db409dde9e72.cab) from the Windows Update site http://catalog.update.microsoft.com/v7/site/Home.aspxcatalog. 'Disc', stated in the dialog of the printer driver install and selected prnhp001. INF, received immediatelt message this specified folder does not compatible device driver.
    Also tried to do the same thing with the IA64 catalog (IA64-all - 4190_6e0f85bb67d0038a6406fc71b777a1906a87888c.cab), not surprisingly has the same result.
    Also tried to do the same thing with the AMD64 catalogue (AMD64-all - 4188_bacd1413e93b4a6362d9a2ca653c869f1c02f6f7.cab) and curiously that appear additional list catalog successfully. However, when choosing hp deskjet 990 c, as soon as the driver begins to install the error box appears saying "printer driver not installed, the operation may not be completed (error code 0x00000002).
    Cannot find any other relevant catalogues on the site Windows Update Catalog (which is X 64).
    Have tried to launch MicrosoftFixit.wu.RNP.85259331246416206.3.1.Run.exe, which is worth 1 point fixed, but has no effect on the problem.
    A short of ideas. How can I get my hands on 990c driver for Win7 - 64 Intel?
    Thank you.

    .. .the printer I'm trying to install is a HP DeskJet 6122.

    You should have clearly stated that in your first post.

    See this related thread in the Hardware Win7 forum-online http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/windows-7-driver-for-hp-deskjet-6122/a70f56dd-5be1-4ad8-bba9-701a09f8392c

    more than 25-online http://answers.microsoft.com/en-us/Search/Search?SearchTerm=6122+deskjet&CurrentScope.ForumName=Windows&CurrentScope.Filter=windows_7-hardware&askingquestion=false

    Once again, good luck.

  • How to display the list of temporary and free sites that we use?

    Adobe Web Host - Free Sites.

    How to display the list of temporary and free sites that we use?

    When you're connected creative cloud, we used to be able to view the temporary and lots of 5 free sites that we use hoe.

    Could not find a list on my creative cloud account or when the link to 'Manage' in the Muse.

    No mention of the free sites in the FAQ. Is there a change in policy? Are always included in the subscription of the free sites?

    - Adobe Muse help | Adobe Muse / Common Questions .

    When I publish in Adobe Muse CC, must I pay for hosting with Adobe?

    Adobe Muse CC allows you to publish your Web site temporary on the platform Adobe of accommodation free of charge for a trial period of 30 days. This gives you the ability to send a direct URL to your client for review. All sites with Adobe trial mode will include the field "businesscatalyst.com" in it. If you decide to take the live site by paying for monthly hosting, you can transfer your domain name and delete the subdomain businesscatalyst.com. Or you can export the HTML and host the final site with a host of your choice.

    //

    Yes, don't know why they took out of the cloud interface.

    But if you go to http://www.businesscatalyst.com/partnerportal and you connect with your ID cloud you will have access to all your cloud sites and many other features.

  • Spam: how to change the list of junk e-mail in iPad

    How to change the list of junk e-mail in iPad

    If your question is about - how to indicate whether or not an e-mail is sent to the junk e-mail folder-

    Your best bet would be to do it on the web portal of the email provider (e.g. for Yahoo it would mail.yahoo.com)

    There is usually a button or switch to designate mail "Junk" or "not junk".

    If your question is rather modify the list itself

    Mailbox - junk e-mail - Edit button is at the top right

Maybe you are looking for

  • Bookmark backup saved as type 'File' not JSON. How can I get my favorites?

    Recently, I did a reinstall of Firefox. Before uninstalling, I made a backup of my favorites. I don't remember asking for file type, when I made the backup... I guess Firefox would use correct. When I tried to restore the backup after you install the

  • Satellite L670-1HD - problem with audio interfaces USB 1.1

    Hello I have a Toshiba L670-1HD with an Intel HM55 chipset, and an Intel Core i5 460M processor. I use this machine for my music software and that's why I use different audio interfaces external and USB-MIDI-Controller with build in audio interface l

  • Why can't I access Itunes store?

    Try to access itunes store and never connect. What could be the problem?

  • Skype download

    Well with Skype download all seems Ok, but when I try to make a call or test set in place the message seems windows has a problem will inform you of a response. Everything worked well, until I downloaded IE9 now skpe do not work why. Have you had flo

  • x 220 card reader sd card

    X 220 supports to class 10 or more 32 GB and sdhc cards