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.

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.

  • 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

  • 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 to get the phone # correspondent to disconnected call?

    Hi all

    My requirement is to get the call disconnected phone number, I set up PhoneListner and tried to get the number as

    PC net.rim.blackberry.api.phone.PhoneCall = net.rim.blackberry.api.phone.Phone.getCall (callId);

    But the pc is always returned null in the callDisconnected method.

    Here is my code snippet: -.

    public void callDisconnected (int callId)
    {
    Logger.SOP ("callId getPhoneNumber:" + callId);
    Logger.Debug ("callDisconnected: [" + getPhoneNumber (callId) + "]");

    }

    public String getPhoneNumber (int callId) {}
    PC net.rim.blackberry.api.phone.PhoneCall = net.rim.blackberry.api.phone.Phone.getCall (callId);
           
    if(PC == null) {}
    Returns a null value.
    }
    String phNumber = pc.getDisplayPhoneNumber ();
    If (phNumber.indexOf(' ') > 0) {}
    phNumber = phNumber.substring (phNumber.indexOf(' '));
    phNumber = phNumber.trim ();
    }
    Return phNumber;
    }

    BlackBerry OS version is: 4.6.0.92 9000 Blackberry (Bold)

    I ran this code on a simulator.

    I had similar problems, but resolved them while recording the phone number in a hash inside the callConnected/callInitiated/callIncoming... you call it.

    Hashtable phoneCallsHash = new Hashtable();
    ...
    phoneCallsHash.put("" + aCallID, phone.getCall(aCallID).getDisplayPhoneNumber());
    

    get it back later (in callDisconnected):

    (String)phoneCallsHash.get("" + aCallID);
    

    That should do it.

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

  • Unplug the headphones of Walkman app silenced all functions of the phone except for incoming calls

    I found a bug that caused the alarm become silent. I am able to reproduce consistently and ahd a firend with a different Xperia V confirm.

    I use using a Sony build 4.1 version (. 490) with ADWLauncher (but my friend was also able to reproduce this with regular Sony Launcher, also on the 4.1 build)

    to reproduce:

    (1) check base case: all applications closed, adjust the volume to maximum using rocking of the volume on the side of the phone. to release the keys, you should hear a tone giving you the current volume

    It also means that the sound works

    (2) plug in headphones

    (3) open app Walkman and listen to a song

    (4) once the track has begun and you can hear in the headphones, unplug the earphones

    track must stop (correct behavior)

    5) press "Home" to return to the home screen

    (6) repeat step (1)... sound is now DISABLED, autour and shows volume knob slides it is not cut, but when I release the button it does not play the sound

    critical, it also cuts the alarm

    (so if you want that the game alarm for 2 minutes in the future before the departure the sequence above, when it fires it is silent after steps 1 through 6 have been made)

    some things that eliminate the effect once it arrives in this State buggy: If you receive a phone call, then he makes it sound and after the call, his resume (no matter what you did with the call - ignore, answer etc, all that is needed is for the phone to ring)

    also sometimes re - insert and remove the earphones also restores sound

    phone is fully updated from the Google store set to have the latest versinos of applications

    I tested this same sequence using other music apps (of rocket, Google Reader Play Music) and the phone has NOT lost his after step (4) and everythnig functioned normally.

    This bug seems to be isolated to the sony Walkman android app.

    I quite like the walkman for sony hopy app can look at this and fix it with an update of the application itself - as all other music apps I tested are causing not easy

    I do not know if this was presented in a recent version of Walkman or the 4.1 update... Maybe someone could test on a pre-version 4.1 phone to see if it still happens

    the recent firmware 9.1.A.1.140 seems to fix this problem. was not able to reproduce once I have updated.

    Thanks sony!

  • 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

  • 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 number of incoming call to 10.3

    How to print the number of incoming call in a text box, as it is available in the api news for 10.3 os

    This code c ++ will give callerId and will retrieve the name of the contact:

    https://github.com/RodgerLeblanc/caller/BLOB/master/callerService/src/service.cpp

  • While the safari I received a crash warning iOS.  Call the phone number? Is it a scam?

    While I was with my iPhone Safari, I received a crash warning iOS. I was wondering if I should call the phone number or if it is a scam. Any suggestions?

    It's a scam. See below.

    Phony 'technical support' / 'ransomware' popups and web pages

  • I called the phone number of microsoft on the site and they said that they did call people

    I found the phone number on the Microsoft web site and called them.  They said that they hear and started trying to sell it again for me.  I'm confused.

    Hello

    What phone number and what site please.

    And read this information;

    Microsoft does not contact you unless YOU have made prior arrangements with them to do.

    There is an article in the link I'm you provide at the end of this one

    Read this Information from Microsoft:

    "Avoid scams to phone for tech support.

    http://www.Microsoft.com/security/online-privacy/avoid-phone-scams.aspx

    Don't be fooled of unsolicited calls. Don't provide personal information.

    Here are some of the organizations that cyber criminals claim to come:

    • Helpdesk Windows

    • Windows repair center

    • Microsoft technical support

    • Microsoft technical support

    • Windows Support Group Technical Department

    • Microsoft Research and Development Team (team of Microsoft R & D)

    Either these so-called "Microsoft" Tech companies want to sell you a worthless software, or remote access to your computer to try to steal your credit card and bank information and also achieve an identity theft on you.

    See you soon.

Maybe you are looking for