Get the phone number

Hello

I would like to get the phone number of the device by using APIs.

Is this possible?

DK

Phone class
public static String getDevicePhoneNumber (boolean format)
Retrieves the phone number of the device if it is present

Tags: BlackBerry Developers

Similar Questions

  • Get the phone number of the address book on the menu, click

    My app (which has no UI) adds a new menu item to the contacts Blackberry address book... Now, if you click on this menu I would get the phone number to contact selected...

    I did it with the addition of the menu item... But how can I get the phone number of the address book when you click on the menu?

    using code i below contacts called from another application have also recovered the phone number...

    BlackBerryContactList contacts = (BlackBerryContactList) PIM.getInstance().openPIMList(PIM.CONTACT_LIST, PIM.READ_ONLY);
    

    But how can I get in my current scenario?

    Oops... How did I miss the best way to get the coordinates of the context of the run method (of the added menu) parameter.

  • How can I get the phone number to speak to someone at Adobe to change my account?

    How can I get the phone number to speak to someone at Adobe from my account?

    phone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • Get the phone number of BB 10 device using blackberry.identity.phone.getLineIds)

    I am trying to retrieve the phone number of a unit of BB 10.  Testing with the ripple and the BlackBerry 10 Dev Simulator.  I tried many variations, and when the code runs is always that the phone is not always defined.  All the world made a call to blackberry.identity.phone.getLineIds () or blackberry.identity.phone.getLineNumber ()?

    If so, post you the code and the config.XML you used to get this working?

    I saw this post, and I tried the example code that is supposed to work, but I can ' t get the code working list.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/BlackBerry-identity-phone-doesn-...

    Hello

    That API is not supported on BB10 (only BBOS).

  • How can I get the phone number for the Activation of Microsoft Center in Washington State?

    I can't use the normal process to obtain the phone number for the product activation because Windows 7 says "Windows is activated". How can I contact an Activation Center to get this problem fixed. Apparently, it is not enabled because I can't use Microsoft Help and support center. HD & S centre will not accept my product ID. I used the Windows Anytime Upgrade process for Windows 7 Edition Home Premium to Windows 7 Professional. After the installation process, I activated Windows and it works beautifully.

    I am trying to establish the Windows XP Mode in Windows Virtual Machine and have hit a wall. I downloaded the three pieces but keep being told to download it again when I click on Windows XP Mode in the start menu.

    I tried to get the Support of Microsoft but get stopped on step 2 when the Microsoft operating systems will not accept my product ID of Windows 7.

    1. click on start and in the search for box type: slui.exe 4
    2. press enter on your keyboard
    3. Select your country.
    4. Select the telephone activation option and brace yourself for a real person.

    Carey Frisch

  • Web form: can not get the phone number appears in the email notification

    http://www.rockmitzvah.com/contact/contact4.htm

    try adding a phone number field so that my client can call leads. I tried the phone number field two to the need and not. The resultant thank you screen and just email show that without the phone number:

    Summary of submitting a web form:
    Your name
    j a
    Email address
    [email protected]
    File number
    4388779
    Message
    Phone number

    What is a workflow problem? How should I do?

    Thank you

    j

    Hello

    Name of your phone number field does not match any field of telephone number of British Colombia. You have name = 'Phone number', but BC names name = "HomePhone" and name = "mobile phone".

    Try to reinsert this form on a page and submit.

    See you soon,.

    -mario

  • Get the phone number of mixed string

    Hello

    I'm new to the development of BB and I can't seem to understand this.

    What I want to do is to take a mixed string (the event details for a google calendar event) and get a string that contains something that looks like a phone number. It seems to be already features to recognize the phone numbers of a string there are things like ActiveRichTextFields, and I can get my BB to highlight these regions 'active', but I can't get this phone in a separate channel number.

    I'm totally lost on this, any help would be appreciated.

    Welcome to the forum.

    I'm not aware of any API that allows to determine what parts of a string BlackBerry will recognize by default.  I have never seen this in a field that is displayed on the screen.

    My first reaction is that you have to watch yourself to find these special criteria.  I hope that others have an opinion / a different option.

  • Get the phone number of incoming calls

    Greetings!

    Yes! I read a lot about these subject through this forum, but no solution so far.

    We are trying to retrieve the number of incoming phone currently but ((callId) Phone.getCall or Phone.getActiveCall) are return null, so I'm not able to recover the number, getDisplayPhoneNumber().

    Implementation of the PhoneListener or the AbstractePhoneListener extension the result is the same, as expected.

    Our first objective is Blackberry 8900 v4.6.1.250 (Platform 4.2.0.113), so far without success.

    Does work for sorting?

    Thanks in advance!

    I use this method with success in all kinds of OS versions.

    I would say to start own thread, it may need to wait a little time, but generally a callincoming should already have a call in progress.

    4.6 on the returned string may contain invalid characters (such as '?'), look for these.

  • How to get the phone for example number zero. 0612345678

    Dear Adobe Flex Builder Professional,

    I have a problem with getting the phone for example number zero. 0612345678

    If I get the phone number following as input:

    0612345678

    I'll get the phone number in output:

    612345678

    The application was written in Adobe Flex Builder 3.

    The code in the MXML file is:

    <? XML version = "1.0" encoding = "utf-8"? >
    "" < mx:Canvas xmlns:mx = "http://www.adobe.com/2006/mxml"
    creationComplete = "init ()" "
    horizontalScrollPolicy = "off" verticalScrollPolicy = "off" >

    < mx:Metadata >
    [Event (name = "customerSaveEvent", type = "events. CustomerEvent")]
    [Event (name = "customerCancelEvent" type = "flash.events.Event")]
    < / mx:Metadata >

    < mx:Script >
    <! [CDATA]
    Import util.ComboBoxUtil;
    Import mx.controls.Alert;
    How to import events. CustomerEvent;
    Import mx.collections.ArrayCollection;
    Import mx.core.Application;
    Import valueObject.Customer;
    Import mx.validators.Validator;
    Import mx.validators.PhoneNumberValidator;

    private var phoneCheck:PhoneNumberValidator;

    [Bindable]
    public var selectedCustomer:Customer;

    private function init (): void {}
    this.cretePhoneValidator ();
    if(this.selectedCustomer == null) {}
    this.clearForm (null);
    }
    }

    private function cretePhoneValidator (): void {}
    phoneCheck = new PhoneNumberValidator();
    phoneCheck.source = phone number;
    phoneCheck.property = 'text ';
    }

    private function validateForm (): void {}
    var validatorList:Array = new Array (emailCheck, phoneCheck);
    Validator.validateAll (validatorList);
    }

    private function cancelClickHandler (): void {}
    var cancelManageCustomerObj:Event = new Event ("customerCancelEvent");
    dispatchEvent (cancelManageCustomerObj);
    }

    private function saveCustomer (): void {}
    validateForm();

    var c:Customer = null;
    var selCust:Customer = Application.application.selectedCustomer;

    If (selCust! = null) {}
    c = selCust;
    } else {}
    c = new Customer();
    }
    c.setLastName (lastName.text);
    c.setFirstName (firstName.text);
    c.setStreet (street.text);
    c.setPostal (postal.text);
    c.setCity (city.text);
    c.setEmail (email.text);
    c.setPhoneNumber (new Number (phoneNumber.text));
    c.setMailing (mailing.selectedItem.data);
    c.setComment (comment.text);
    var changed: client = Application.application.customerService.createOrUpdate (c);

    var customerEventObj:CustomerEvent = new CustomerEvent ("customerSaveEvent", modified);
    dispatchEvent (customerEventObj);

    this.clearForm (selCust);
    }

    private void clearForm(selCust:Customer):void {}
    if(selCust == null) {}
    this.lastName.text = "";
    this.firstName.text = "";
    This.Street.Text = "";
    This.postal.Text = "";
    This.City.Text = "";
    this.phoneNumber.text = "";
    This.email.Text = "";
    this.mailing.selectedIndex = 0;
    This.Comment.Text = "";
    }
    focusManager.setFocus (lastName);
    }
    []] >
    < / mx:Script >

    <!-mx:EmailValidator id = "emailCheck" source = "{email}" = "text" property
    trigger = '{save}' triggerEvent = ' click on ' /-->

    < mx:Form id = "manageCustomerForm" >
    < mx:FormItem label = "Achternaam:" >
    < mx:TextInput id = text = "{selectedCustomer.getLastName ("lastName")}" / >
    < / mx:FormItem >
    < mx:FormItem label = "Voorletters:" >
    < mx:TextInput id = text = "{selectedCustomer.getFirstName ("firstName")}" / >
    < / mx:FormItem >
    < mx:FormItem label = "Straat:" >
    < mx:TextInput id = text = "{selectedCustomer.getStreet () ' street'}" / >
    < / mx:FormItem >
    < mx:FormItem label = "zip code:" >
    < mx:TextInput id = text = "{selectedCustomer.getPostal ('post')}" / >
    < / mx:FormItem >
    < mx:FormItem label = "Stad:" >
    < mx:TextInput id = "City" text = "{selectedCustomer.getCity ()}" / >
    < / mx:FormItem >
    < mx:FormItem label = "number:" >
    < mx:TextInput id = text = "{selectedCustomer.getPhoneNumber ('Phone number')}" / >
    < / mx:FormItem >
    < mx:FormItem label = "e-mail:" >
    < mx:TextInput id = "email" text = "{selectedCustomer.getEmail ()}" / >
    < / mx:FormItem >
    < mx:FormItem label = "" unstable: ">"
    < mx:TextArea id = "comment" text = "{selectedCustomer.getComment ()}" "
    width = "447" height = "144" / >
    < / mx:FormItem >
    < mx:FormItem label = "send:" >
    < mx:ComboBox id = dataProvider = "{Application.application.comboBoxUtil.yesNo"mailing"} '"
    selectedIndex = "{ComboBoxUtil.getIndex (selectedCustomer.getMailing ())}" / >
    < / mx:FormItem >
    < mx:HBox id = "manageButtonBox" >
    < mx:Button id = "Save" label = "Opslaan" click = "saveCustomer ()" / > "
    < mx:Button id = "resetButton" label = "Wis" click = "clearForm (null)" / > "
    < mx:Button id = "cancelButton" label = "Annuleer" click = "cancelClickHandler ()" / > "

    < / mx:HBox >
    < / mx:Form >
    < / mx:Canvas >

    The code in the SQL file is:

    create the customer table)
    ID integer not null primary key autoincrement,.
    lastName varchar (50),
    firstName varchar (50),
    Street varchar (50),
    City varchar (50),
    postal varchar (10),
    Telephone INT number (10),
    Email varchar (50),
    sending Boolean default false,
    Comment by varchar (255)
    );

    create table (treatment)
    ID integer not null primary key autoincrement,.
    Date Date,.
    treatment varchar (255),
    whole customerId not null,
    constraint fk_customer foreign key (customerId) references customer (id)
    );

    create table (user)
    ID integer not null primary key autoincrement,.
    loginName varchar (50) not null,
    lastName varchar (50) not null,
    firstName varchar (50) not null,
    password varchar (50) not null,
    Active Boolean true not null default,
    accessright varchar (10) not null
    );

    create table (of the order of the day
    ID integer not null primary key autoincrement,.
    whole userId not null,
    Date Date,.
    time integer,
    full minute,
    Description varchar (50),
    constraint fk_user foreign key (userId) references user (id)
    );

    create table (license)
    ID integer not null primary key autoincrement,.
    key varchar (50),
    Val varchar (50)
    );

    I hope someone can help me with this problem.

    Hi Buxsnl,

    I think that I already gave the answer in my previous post. But think that you have not implemented it.

    The threshold of the code is not necessary...

    m:System.NET.SocketAddress.ToString (), c.setPhoneNumber (new Number (phoneNumber.text));

    Instead you can replace it with the below a...

    c.setPhoneNumber (phoneNumber.text);

    and the function setPhoneNumber() in your client class must be less to:

    public void setPhoneNumber(phoneNumber:String):void

    {

    //

    }

    Can send you the code to your client class... ??

    Thank you

    Jean Claude

  • Call.phoneNumber () does not return the phone number

    I try to use the new method Call.phoneNumber () which was introduced in 10.3:

    https://developer.BlackBerry.com/native/reference/Cascades/bb__system__phone__call.html?f=call#FUNCT...

    Even if I added the permission of read_phonecall_details according to the documentation, I'm still not received the phone number of outgoing calls placed on the device. The call to Call.phoneNumber () returns an empty string.

    I use the Simulator to 10.3 (10.3.0.698) with Momentics 2.1 and placing me calls using the controller.

    Someone managed to get the phone number? Any ideas on how to make this work would be appreciated.

    It is a known problem in the Simulator, but works fine on a real device.  The bug appeared in Issue Tracker here: Call.phoneNumber () always returns a null in the Simulator

  • Apple 'Messages' full automatically to e-mail instead of the phone number

    Hello

    I'm looking to block the 'Messages' Apple software on my Macbook Pro to auto fill email addresses because I send you text messages for android phone to the person. I would prefer that it auto complete to the phone number, but I don't know how (or if) it is possible.

    Thank you!

    Tim

    If you start to type the name of the person, you get a pop-up menu with choice?

  • ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    ICloud Keychain how can I change the phone number needed to verify the code text for me? The number it was sent is an old phone number of my friends that I do not have access to the.

    Try this from another thread I saw.

    On iOS, go to settings > iCloud > keychain and tap button to disable iCloud keychain. (you will be asked to delete or keep the passwords on device) I chose to delete...

    Then turn it back on, and pop - up chose reset iCloud trousseau, on a chosen pop-up confirmation reset

    In the new window pop up use iPhone password like iCloud cryptogram? has chosen the use code

    Enter your secret code (4 digits) then choose country and your new phone number

    Although, to "Restore the iCloud Keychain," I took to erase the data and essentially set up a new keychain.  Not the case.  Strangely, after essentially bypassing the security system, setting a new password and verification number, I see my cards, passwords and other data have been restored.  Maybe it's all the iCloud account and this master password.  Or maybe it's a bug.  With Apple, we'll never know.

    Also have a look here: get help using iCloud Keychain - Apple Support

  • notification of iMessage on Mac displaying the phone number, not name

    Only, I imported my contacts from my phone to my Macbook Air, but whenever I get a notification of text at the top right of my screen, it shows the phone number, not the name of the contact. Once I go into iMessage, the name is displayed. That's all just annoying that I don't know who texted me until I actually open iMessage. iCloud is enabled for my Mac and my iPhone.

    Check system preferences > Notifications > view Message

  • How can I get a phone number, which I accidentally deleted

    How can I get a phone number, I accidentally erased.

    If you have a current backup, you can restore the iPhone.

  • Get my phone number by programming (c ++ BB10)

    I need to get my phone number by programming!

    Help, please!

    You can use the 'address()' call in bb.system.phone.line. This class provides the line ID, address (telephone number) and type of information.

    https://developer.BlackBerry.com/native/reference/Cascades/bb__system__phone__line.html

    Also, the SimCardInfo class would be helpful to referecne.

    https://developer.BlackBerry.com/native/reference/Cascades/bb__device__simcardinfo.html

Maybe you are looking for