How to get the contact's mobile phone number?

I know there is StringArray for data http://www.blackberry.com/developers/docs/4.6.0api/index.html telphone and I see someone [contact.getString (Contact.TEL, 0)] to obtain the HOUSE telphone number. From my point of view, it should be Contact.Tel [N] above. So my question is how do I get the mobile phone number? Can I use contact.getString (xxx)? Thanks for any response.

VR;

getString (Contact.TEL, Contact.ATTR_MOBILE)

instead of 0 as the 2nd argument

Tags: BlackBerry Developers

Similar Questions

  • How to get the contact details of the contact list to the use of the incoming call number?

    Hello

    I need callid, name, name of the company from the list of contacts to the use of the incoming number. If anyone has a solution please reply me as soon as possible.

    I have code below

    void ApplicationUI::onCallUpdatedd(const bb::system::phone::Call &call)
    {
        CallState::Type state = call.callState();
        //qDebug() << "call updated: callId=" << call.callId() << " callState="
        //  << state;
        if (state == bb::system::phone::CallState::Connecting
                || state == bb::system::phone::CallState::Connecting) {
            qDebug() << "call connecting";
        } else if (state == bb::system::phone::CallState::Connected) {
            qDebug() << "call connected";
        } else if (state == bb::system::phone::CallState::Failed) {
            qDebug() << "call Failed";
        } else if (state == bb::system::phone::CallState::Disconnected) {
            qDebug() << "call Disconnected";
        } else if (state == bb::system::phone::CallState::Incoming) {
            qDebug() << "call Incoming";
        } else {
            qDebug() << "Invalid";
        }
    }
    

    then, how I got the calling detail like number, name, company ect... call id?

  • How to get the job of smart phone of BB

    Hello

    Y at - it an option to get the position of the phone in the Black Berry. As it is in a position to slanding, backwards position etc...

    Please someone help me find this...

    Thanks and greetings

    Joe

    Hello

    Thanks for the reply...

    Joe

  • How to get the contact data of old hard drive?

    A friend's mother died.  He would like to get contact details.  He says that he "kept everything in Internet Explorer." I can't understand this... was it really store in Outlook?  I got the hard drive of the machine and it attached to my laptop under drive H.  How can I recover the data?

    I would ask him what email he used; It is possible that he was using a webmail (gmail, hotmail, etc.) and has been updated and access to contacts and mail via Internet Explorer, and it don't realize may not be not that they were stored on the webmail site and were not yet on his hard drive. Another possibility is Contacts in C:\Users\username\Contacts, but that don't rely on Internet Explorer.

  • I'm trying to update my phone.  The only list update is iOS 9.2.1.  When I try to update, it tells me that I can't because I am not connected to the internet.  How can get the update on my phone.

    I'm trying to update my phone.  The only available update is iOS 9.2.1.  When I try to upgrade, it tells me that I can't upgrade because I am is no longer connected to the internet.  How can I upgrade my phone?

    Connect to the internet.

  • How to get the program to accept a number of product keys?

    Does not accept key number. Just a couple of months ago, I bought a new computer with Windows 7 home installed.  A couple of weeks, I installed Windows 7 Professional.  When attempting to open the photos by e-mail, he asked my 25 digit product key number.  I type in and it will not accept it.  I tried to call problem and tried home 20-digit and professional window version 25-digit.  It does NOT recognize a number.  WHY? and how to fix.

    Hello
     
    Could you please answer these money questions?
     
    one) tell us the exact error message?
    (b) don't you activate the Windows operating system?
    (c) not this message only occurs when opening images from e-mail?
    (d) you tell the office suit error message?
     
    You can also visit the link of the article of Microsoft that will guide you on how to ask questions below.
     
     
    As a solution, I suggest you follow this forum link, which talks about the same issue below.
     
     
    Thank you, and in what concerns:
    I. Suuresh Kumar-Microsoft Support.
    Visit our Microsoft answers feedback Forum and let us know what you think.
  • How to get the number and the name of the contacts selector

    Hi all

    I got the Contact Picker work but I have no idea how to get the selected telephone number and the name.

    There are attributes that I can put like contactId.value () to retrieve or there is another way?

    Thanks in advance.

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
                                }
                            }
                        ]
    
                    }
    
                    Label {
                        id: result
                        text: "You chose contact: "
                    }
    

    Hello

    You can get the contact name and phone number as this,

    ImageButton{
                        defaultImageSource: "asset:///images/bluebutton.png"
                        onClicked: {
                            contactPicker.open();
                        }
                        attachedObjects: [
                            ContactPicker {
                                id: contactPicker
                                onContactSelected: {
                                    result.text = "You chose contact: " + contactId;
    // call a cpp method to get the details
    
    app.getDetails(contactId); } } ] } Label { id: result text: "You chose contact: " }
    

    the CPP code:

    void ContactDetails(ContactId id)
    {
    Contact contact_info = m_contactService->contactDetails(id);
    
        QString firstName = contact_info.firstName();
        QString lastname = contact_info.lastName();
            QList phoneno_list = contact_info.phoneNumbers();
    
        QStringList no_s;
    
        foreach(ContactAttribute attr, phoneno_list)
        {
            no_s << attr.value();
        }
    }
    

    You can get details like this.

    Kind regards

    Naresh Kodumuri.

  • How to get the picture of the contact phone

    Hello

    Please, how can he get the contact picture?

    hear you a BlackberryContact? Using the PIM API with Contact.PHOTO:

    Byte [] photoEncoded = blackberryContact.getBinary (BlackBerryContact.PHOTO, 0);
    Byte [] photoDecoded = Base64InputStream.decode (photoEncoded, 0, photoEncoded.length);

  • How can I get the contact photo?

    Hello everyone.

    I work in my own app to make and end calls by program but I can't find a way to get the contact's photo, I saw the API documentation but I tried to get the pic and move it to a QImage without success.

    Can I get the contact name and number phone properly using ContactAttribute inside a ContactService.

    Could someone help me?

    Thank you!

    Hi santito95,

    Have you thought about the ContactFoto API? https://developer.BlackBerry.com/native/reference/Cascades/bb__pim__contacts__contactphoto.html

    In addition, there are two examples of applications that use the Contact service and demo how to use some of the contact of the API:

    https://github.com/BlackBerry/Cascades-samples/tree/master/Rundgang

    https://github.com/BlackBerry/Cascades-samples/tree/master/AddressBook

  • How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    How to get the mobile applications other than phonegap Build Service apk file in Dreamweaver CM³

    Dreamweaver is a tool, not an install Android of web authoring tool.

  • How to get the width and height of Flex Mobile view?

    Hello

    The following instructions can get the width and height of the current Flex app:

    var request: UIComponent = FlexGlobals.topLevelApplication as UIComponent;

    trace (application. Width);

    trace (application. Height);

    But I don't know how to get the width and height of mobile display Flex current (i.e. the content size excludes bar action and the Navigation bar). Why the "this.width" always returns 0?

    Thank you!

    Looks like you're running in this bug: https://bugs.adobe.com/jira/browse/SDK-30070

  • How to get the podcast of the website on the phone

    I was told to put that feed into the PODCASTING app on your iOS device.

    The site in question is https://randirhodes.com/how-to-get-the-podcast/

    I paid for a premium podcast, now how o I get this podcast to appear on my iphone 6 s more in the podcast app?

    Podcasts > select my Podcasts > press the '+' > Add Podcast > paste the URL that you got on the site.

  • I can't sync my phone to my computer and get the message that my phone doesn't have the latest version of Itunes. I downloaded the latest version on my mac, but what I do on my phone. I'm used to be able to synchronize the two.

    I am more able to sync my I phone on my Mac and get the message that my phone cannot be used because it requires a newer version of iTunes. He tells me to go to www.itunes.com to download the latest version of iTunes... I downloaded the latest version on my mac, but what I do on my phone? I used to be able to sync the two and now I can't even download the photos from my phone on my mac...

    iOS9 on a mobile device requires iTunes 12.3 or higher, which in turn requires a computer running OSX 10.8.5 or higher.  Update of the system only checks the updates for the current version of the system you run, but that itself can be updated.  It may or may not be possible to upgrade your computer to the system requirements. Find your computer on the web site of http://www.everymac.com model and near the bottom of the specification of the system section, he will tell what versions of the operating system, it is able to run. If you can not run a newer system, you will not be able to sync this phone to your current computer. If she can run 10.8.5 or higher, you can either buy a download for Apple OSX 10.8 Mountain Lion code online, or you can try to install the free El Capitan OSX 10.11.  El Capitan can run slower on older machines and require the additional purchase of RAM.  Making a big jump in versions of system is also more likely to affect the old software.

    At el capitan Snow Leopard, it will make my macbook is slow?  - https://discussions.apple.com/thread/7412959

    Mountain Lion 10.8 purchase link United States of America - http://www.apple.com/shop/product/D6377Z/A/os-x-mountain-lion

    Mountain Lion 10.8 purchase link U.K. - http://www.apple.com/uk/shop/product/D6377ZM/A/os-x-mountain-lion

    Course OSX Upgrade General information, including configuration required - http://www.apple.com/osx/how-to-upgrade/

  • How to get the event when we change our simcard in BB device

    Hi all

    Please, someone tell how to get the event or any listener method that can automatically called when we change our SIM card device.

    Thanks in advance,

    TEJ

    Hi Tej,

    I came across some post, which may be useful for you

    http://supportforums.BlackBerry.com/T5/Java-development/is-there-a-way-to-get-the-mobile-or-phone-nu...

    http://supportforums.BlackBerry.com/T5/Java-development/is-SIM-ID-really-exist/m-p/54407#M5954

  • How to get the time of the device

    Hello

    I'm developing an application in which I send location of the device in lat, long for every 10 minutes.  I want to send some time also with lat, long. This time must be peripheral situation updates for every 10 minutes.  Can someone tell me how do I do this?

    It is not obvious to your OP exactly what you ask.

    Ask you in a certain way a consistent recording time no matter what time zone are you in?

    Or are you just asking how to get the date and time?

    If it's the last QDateTime is one of the ways to get the date and time...

    http://developer.BlackBerry.com/native/reference/Cascades/QDateTime.html

    If you ask for the first answer more complex, you will probably need to check the time against an external clock (say GMT) and then re-reading use the contact information you have saved to determine what the weather was (including a calculation of DST) at this point in this particular time zone.

    Relying on the phone to change accurately that it is time that you move in time zones will not give accurate results.

Maybe you are looking for

  • Hard drive HP LaserJet 2300N

    I need to save a HP LaserJet 2300N printer, but I don't know if it has a hard drive or not.  If this is the case, can someone please provide some guidance on how to remove the hard drive?  Thank you in advance!

  • Kodak ESP C110 does not print

    My Kodak ESP C110 does not communicate with my computer.  It just creates a queue of documents and think its the first impression - when there is indeed slowed.  Error codes listed on the test page include 3502 & 3501 - I do not have a paper jam, I'm

  • Unable to get updates of Windows after cleaning installed.

    Inspiron 1720, Win7 Ultimate x 64 A clean installed today on a separate partition. Did not remove the existing installation of the same operating system by using the same key. The new facility will not download updates. C:\ shows many files from Wind

  • Problem connecting l2l on ASA 5510

    I have setup VPN connections 2. a concentrator 3000 seller and the second to a branch. The branch connects with a L2L type, however the connection of my suppliers is a type of 'user '. I have to rebuild the connection and the same thing happens. piec

  • Downloads will not end

    Recently, I've been unable to complete all the downloads in any browser. If I use firefox, I can pause and re-activate download and it will go through but the file is still corrupt. I don't know what to do or what information provide here, I have nev