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).

Tags: BlackBerry Developers

Similar Questions

  • 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

  • iPhone Sync with PCI trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    I am trying to sync my iphone to my computer via i-tunes soft ware.  It does give me an option for the phone device. How can I get the phone icon in the menu bar?

    Mac or Windows?

  • Can I get the serial number of the iOS, IMEI/MEID, CDN and ICCID by code device when I am developing an application?

    As the title suggests, can I get the serial number of the device iOS device, IMEI/MEID, CDN and ICCID by code, someone says I can't do that, I'm very confused. Can someone show me the Apple document on this subject?

    For reasons of confidentiality, Apple doesn't want you to access specific information of any peripheral such as MAC IMEI, UDID, address, serial number, etc and has been remove support for this kind of information the SDK for awhile now.  Your application will be rejected if you try to use private methods, that's probably what they were talking about.

  • 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

  • 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

  • Get the serial number of the GPIB-USB-HS

    How can I get the serial number of the GPIB-USB-HS device programmatically?

    I worked on it. Attached simple solution.

    It is possible using the driver of VISA?

  • How to get the maximum number of days in a month?

    How to get the maximum number of days in a month?

    I use a dateField. where I can get the month. Now, I want to get the maximum number of days in a month.

    How can I get it?

    Please help me. and thanks in advance... []

    NET. RIM. Device.API.util
    Class DateTimeUtilities

    getNumberOfDaysInMonth (int month, int year)
    Returns the number of days in the specified month

    It took me like 10 seconds to find it in the API, I guess you spent more time writing the post...

  • How can I get the serial number for my copy of PSE 14 recorded in my account?

    I am the owner and that you have installed Photoshop Elements.  When I go into my account and see a list of my products and services, and most importantly, its serial number is not there, I don't I get the serial number "registered."

    It would SEEM that your serial number not is not properly registered

    Since this is an open forum, not Adobe support... you must contact Adobe personnel to help

    Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">

    Don't forget to stay signed with your Adobe ID before accessing the link below

    Creative cloud support (all creative cloud customer service problems)

    http://helpx.Adobe.com/x-productkb/global/service-CCM.html

  • To Powercli how to get the actual number of the paths to the data details store

    I'm looking for a command Powercli get the real number of the paths to the data store > Details of the data store

    See you soon,.

    Vincent

    You can do something like this

    $esxName = "MyEsx".

    $esx = get-VMHost-name $esxName

    $esxcli = get-EsxCli - VMHost $esx

    $esxcli.storage.vmfs.extent.list () |

    Select VolumeName,ExtentNumber,@{N='Device'; E={$_. DeviceName}},

    @{N = ' path # ';} E = {}

    $esxcli.storage.core.path.list ($_.) DeviceName) | Measure-object | Select Count - ExpandProperty

    }}

  • lost the cd to acrobat reader 9.5.5, how can I get the serial number before I recreate the image on the pc, what is?

    A few years, our company purchased Acrobat Reader 9.5.5 Pro for one of our employees. This employee is no longer with us, so we want to clean up the pc and re-purpose it. Unfortunately, we have more drive, in that the program has come. So the question is, how can we get the serial number for the program so that we can reinstall it once the pc is under image?

    Acrobat Reader is free. Acrobat Pro or Acrobat Standard costs money. The problem with serial number is delicate. If it is a payment business with a license so you can connect to your account a retrieve serial number. If it has been registered to the user and he registered the software on a corporate email account, you can probably log on the account and retrieve serial number (I don't know if it's legal, then you can check with your corporate lawyer). If is a an installation an installation of volume then check with the company you bought your contract in volume of might be the best route.

    If you have any of these options at your disposal, you can contact the customer service with proof of purchase in hand. No one will take the word of someone call on a phone, even if they do not tell the truth.

    Please be aware that Acrobat 9.5.5 will not work with several modern operating systems it's quite long in the tooth. You may be able to get some, but not all of the features to work.

  • Help! Unable to get the serial number.

    Is there anyone know the number of the media for adobe in Hong Kong.

    I can't get the serial number of the
    CS6 student vision. Just go around the circle on the site.

    Thank you very much

    Good

    Don't know phone for Hong Kong.  But I had similar problem in the United States and the representative of cat helped me.  I do not know the address of cat for Hong Kong, but perhaps someone on the chat site here can give you the number of Hong Kong phone or Chat address.  Address of cat for the USA is:

    Adobe ID, connect and help on accounts

  • How to get the phone and messages back in my dock apps? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    How can I get the phone and messages apps in my dock? And for some reason, I discover now all my app pages from the middle of my phone and not at the top?

    Try

    Settings > general > reset > reset home screen presentation.

    Note: All other applications will be organised by alphabetical order.

  • I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    I am trying to replace my iphone 6 s model n °: A1688, FCC ID: BCG-E2946A, IC: 579C-E2946A. but I can get the serial number because its doesn't turn only not on how can I replace it?

    Take it to your local Apple store. They will find it for you.

Maybe you are looking for

  • Memory card, delete movies or videos

    I have a Cyber Shot camera DSC - WX9. My modus operandi is to manually delete photos and movies (videos) of my memory card after transfer to my computer via the card reader. For photos, it's easy, because I just delete the image (JPG) files in the DM

  • Satellite L500-1DT - Webcam does not work when connected to the internet

    The webcam works if I use the camera app or any other program in mode offline, but whenever I go online - for example, testwebcam.com it says cannot find the camera and it's not just this site since when I try to listen on justin.tv he says the same

  • too many digits in logarithmic scale

    I thought that I had pointed out before - but couldn't find the post, or a known problem... I have a non-sinusoidales XY plotted graph. Any fine. Then I change the scale Y lin connect and the disorder occurs, see below. The left image shows the graph

  • How can I turn off the touchpad to use a mouse

    How can I turn off the touchpad to use a mouse

  • "The system administrator has prohibited this action" error message

    Why do I get a message saying "the system administrator has blocked this measure. Contact your system administrator or log off and log on as a system administrator. » ? I am the system administrator, and I AM logged on as system administrator! Access