Citing the phone to dial a number

I'm trying to dial a phone number of my app running on my BB Z10. I was able to launch the phone application and bring it to focus, but it does not dial the number. I have tried the following to dial in number 9999:

navigator_invoke_invocation_create (& iRequest);

navigator_invoke_invocation_set_id (iRequest, '1');

navigator_invoke_invocation_set_action (iRequest, 'bb.action.DIAL');

navigator_invoke_invocation_set_type (iRequest, 'application/vnd.blackberry.phone.startcall');

"{" string data = '{\"number\': \"9999\ '} ';

navigator_invoke_invocation_set_data (iRequest, data.c_str (), data.length ());

navigator_invoke_invocation_send (iRequest);

navigator_invoke_invocation_destroy (iRequest);

I also tried sending as URI instead of the data :

navigator_invoke_invocation_create (& iRequest);

navigator_invoke_invocation_set_id (iRequest, '1');

navigator_invoke_invocation_set_action (iRequest, 'bb.action.DIAL');

navigator_invoke_invocation_set_type (iRequest, 'application/vnd.blackberry.phone.startcall');

navigator_invoke_invocation_set_uri (iRequest, ' data : //local?number=9999 ");

navigator_invoke_invocation_send (iRequest);

navigator_invoke_invocation_destroy (iRequest);

In both cases, the phone will appear but do not dial.

You could do that.

Phone phone;
phone.initiateCellularCall(number);

With the help of the class of phone.

https://developer.BlackBerry.com/Cascades/reference/bb__system__phone__phone.html

Tags: BlackBerry Developers

Similar Questions

  • Citing the phone dial pad does not always

    Hi all

    I need to call phone telephone keypad with number pre-filled, however Phone::requestDialpad does not always work. If the phone application has never been used for startup of the phone, then calling Phone::requestDialpad evokes it without switching to the keypad (if so I manually go, I can see it filled with the number, I have passed to requestDialpad). When I close the phone application and call Phone::requestDialpad from within my application again, everything starts to work - phone application appears and switches on the dial pad.

    Is this a known problem or I do something wrong? I have also reviewed as part of Invocaion, but the manual is not described anything to activate keypad - only for phone calls and showing the call log. Is there a MIME type or action to show just Dial Pad with pre-populated number?

    Hello

    I've already logged a bug:

    https://www.BlackBerry.com/jira/browse/BBTEN-1747

    Related topic:

    http://supportforums.BlackBerry.com/T5/native-development/request-Dialpad-error-sometimes/m-p/260852...

    As a temporary workaround solution begins the composition directly from the app:

    bb::system::phone::Phone phone;
    phone.initiateCall("phone number");
    
  • Dialing a number of IOS

    Is there a way to get a button to dial a phone number with Packager for IOS.  I tried 2 ways and none of them works.

    Attempt 1:

    button with the click event:

    navigateToURL("tel:1-555-555-5555");

    Attempt 2:

    Tel link text box: 1-555-555-5555

    Is it possible to get the phone to dial a number with flash?

    Thanks for your suggestions.

    In the AIR, on mobile platforms, sms: and such: URI schemes are supported. On Android, vipaccess:, connectpro: and the market: URI schemes are supported.      The syntax of the URL is subject to the conventions of the platform. For example, on Android, the URI scheme must be lowercase.      When you navigate to a URL by using one of these plans, the runtime opens the URL in the default application for managing the schema. For example, navigate to tel:+5555555555 opens the phone dialer with the specified number is already entered. A separate application or utility, such as a phone dialer must be available to process the URL.

    Try

    navigateToURL("tel:+5555555555");

  • Phone call and dial a number without confirmation to the user

    Hi Forum,

    I am trying to initiate a phone call from a Webworks HTML5 app. I don't want to use something like ... because it shows a confirmation dialog box that must be confirmed on the phone. I want to start the call with no other user interaction. Is this possible with the Webworks framework?

    This is my code:

    function docall() {
        blackberry.invoke.invoke(
            {
                type: "application/vnd.blackberry.phone.startcall",
                action: "bb.action.DIAL",
                data: "{'number': '0123456789'}"
            },
            onSuccess,
            onError
        );
    }
    
    function onSuccess() {
        console.log("Success");
    }
    
    function onError(error) {
        console.log("Error: " + error);
    }
    

    I tried a few alternatives for the attribute data as it send via the uri attribute:
    URI: ' data : //local?number=0123456789.

    Nothing really works. The onSuccess callback is called and it opens from the phone app, but no number is dialled. It shows just the last calls (probably because it's the first screen of the phone app).

    Is there something left? Can a webworks app dial without the intervention of the user more away?

    I am aware that the user must confirm a phone call. Otherwise, a developer could have the user dial any phone number they wanted.

  • Composition of the phone numbers with pauses and extensions?

    With the Pre, is it possible to insert pauses and extensions in phone numbers in your contacts list? And have the phone to dial them all at once when you compose?  What to do to have these numbers in your calendar for an event such as a conference call?  I would like to simply touch the number to the event and do all numbers with pauses and extensions to put me in the call.

    To insert a two-second pause in the dialing sequence, enter a T where you want than the break to appear. To include a stop in the numbering sequence, enter a P where you want to stop to appear. to call the next set of numbers after the stop, press the screen.

  • BlackBerry Smartphones can how put out us an emergency call when the phone is locked

    We had new mature 2 days we were... my husband has his in his pocket while he was playing pool.  The door opened and 2 cops came and asked who had that phone number. It turns out that the phone can dial 911 when if locked sound moved around.  The cops were very kind to this topic and said they get about 4 calls a week like that of blackberries.  Someone later told us there is a way to disable it. I looked through the section "help" and can not find a thing... can someone tell me how to proceed? Thank you!!

    You can place the devices in Standby Mode After locking. This will prevent the accidental keys in your pocket.

  • BlackBerry smartphones can not dial the phone number of the browser

    I "upgraded" to the OS 6.0.  Now my BB does not allow me to click on a phone number I see on the internet and dial.  I have to read the number, memorize, close the browser and manually push in numbers.  UGG...   It's rotten.  Any suggestions?  T-Mobile continues to tell me it is the Web page I'm on, but he is clearly not that.  OS 6.0 is quite the downgrade.  If someone can hear the ugly notifers they call ringtones?  The assistance service directs you to buy ringtones of appworld.  What a pot!  Sell a phone that you can't hear the ringtone.

    I solved the problem by getting BlackBerry.  Now, I'm fully functional on a new Android phone.  Good luck.

  • Dial a number through rings PSTN three times before moving on to compose through the line

    Dial a number through rings PSTN three times before moving on to dial by phone line.
    I would like to Setup so that when I dial a local number through the phone line, but when I dial long distance call going VoIP.
    In our city to the Canada, we make a local call using the area code. e.g. xxx-xxx-xxxx
    Long distance is preceded by a 1 e.g. 1 xxx xxx-xxxx
    The numbering plan defined in 1 line numbering Plan: is (250xxxxxxx<:@gw0>| 1xxxxxxxxxx.)

    How can I make the SPA3102 immediately start dialing the local number without the three three apparently redundant rings?


  • Unable to speak using the 'phone dialer', hear the ringing tone. can hear the person on the other side... but he can't hear me... and when I press talk the line disconnects... I have an internal modem Agere on laptop HP Pavilion DV6-TX1152... pls help

    I'm develpoing apps using the SAPI, TAPI, however, I'm stuck with a fundamental question... when I dial a number, I can hear the ringtone on the speakers of the laptop... and I can hear the person on the other side as well... but he can't hear me... and as soon as the others left up to the 'Phone dialer' pcks pops up a window with two buttons... 'Talk' and 'Hang up', when I press the talk button, the line is automatically disconnected. Pleas help to solve this problem...

    Hi abhi.jeet,

    Thank you for visiting the website of Microsoft Windows Vista Community.

    The question you have posted is related to application development and would be better suited to the MSDN Community. Please visit the link below to find a community that will provide the support you want.

    http://msdn.Microsoft.com/en-us/default.aspx

    Hope this information is useful.

    Jeremy K

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • ApplicationMenuItem called with null in JDE 4.6 when you enter the phone number

    When I install a custom phone app, ApplicationMenuItem and

    try to enter a number on the keypad of the native Dialer, and then click the custom menu,

    my custom ApplicationMenuItem is called with a null context object.

    This same code + test case works well under the 4.5 JDE / 8300 emulator

    and device 8320, but fails under JDE 4.6 with the BB 9000 emulator

    and device

    To reproduce the bug:

    * Build/launch of the attached test application

    * Send with previous key

    * Go to the native Dialer

    * Enter "123" on the keyboard of the phone

    * Click on the trackball

    * Choose Bug49 the context menu

    * It will appear a dialog box indicating "context has the null value - is this a bug?

    NOTE that if, rather than enter a number on the keypad of the phone with step 4.

    a call log is selected, then it works and a non-null context object is passed.

    Can I make it work?  If this is a known bug, are

    It no work around?

    import net.rim.blackberry.api.menuitem.ApplicationMenuItem;import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;import net.rim.device.api.ui.UiApplication;import net.rim.device.api.ui.component.Dialog;import net.rim.device.api.ui.component.LabelField;import net.rim.device.api.ui.component.RichTextField;import net.rim.device.api.ui.container.MainScreen;
    
    public class Bug49 extends UiApplication { public Bug49()    {     super();      Bug49Screen screen = new Bug49Screen();       pushScreen(screen);       ApplicationMenuItemRepository amir = ApplicationMenuItemRepository.getInstance();     Bug49NativeMenu bug49NativeMenu = new Bug49NativeMenu(0);     amir.addMenuItem(ApplicationMenuItemRepository.MENUITEM_PHONE, bug49NativeMenu ); }
    
      public static void main(String[] args) {      Bug49 b49 = new Bug49();      b49.enterEventDispatcher();   }
    
       static class Bug49Screen extends MainScreen {     public Bug49Screen() {            super();          setTitle(new LabelField("Hello"));            add(new RichTextField("Hello"));      } }
    
      static class Bug49NativeMenu extends ApplicationMenuItem  {     public Bug49NativeMenu(int order) {           super(order);     }     public Object run(Object context) {           if (context == null) {                Dialog.alert("context is null -- is this a bug?");            }         else {                Dialog.alert("context not null");         }         return null;      }     public String toString() {            return "Bug 49";      } }}
    

    It is a problem in the version of BlackBerry device software 4.6.0.  It has been fixed in version 4.7.0.

  • BlackBerry Smartphones unable to dial from the phone book for blackberry storm

    Hi all

    I've just activated a storm BB via BES and the user is faced with this common problem

    When using the phone book to call, it shows error: we cannot dial this number, please, try again. This is the case for international numbers and the, but when he composed it manually by dials the number it works without any problem. Not sure if anyone has experienced this problem and fixed it.

    Any advice will be appreciated.

    Thank you.

    Look smart dialing options in the phone dial screen > Menu > Options > smart dialing and see if all the settings are correct for the device and the geographic location of the user.

  • Smartphones blackBerry keypad dial glitches once I'm on the phone

    Anyone else have a problem with the storm 2 9550 regarding to the dial pad?  I can dial a number with the touch-tone phone or use voice dialing or redialing of my newspaper to appeal, but once I'm on the phone and make it appear my keypad - this is glitched - numbers are only missing mostly 1 and 5 will appear.  While the boxes for numbers are letters are only partially or not at all and the figures are either not present, or in the wrong place.  I can not press 1 to reach the operator problem type.  It is a totally useless dial pad once the phone is used.  Any ideas how to fix this very frustrating glitch?  I did a hard reset on the plan of removing the battery.   I use a blackberry 9550 v 5.0.0.320 and am a customer of verizon.  I had my phone for a little over a month - of course-.   Thanks for any help or suggestion.

    I got exactly the same problem on my new Storm 2.

    You can fix this by going to Options-> screen / keyboard-> keyboard Portrait mode:

    Make sure that you have not selected "keyboard" and choose one of the other two options. Save the settings and that's all.

    Seems that the keyboard is going bonkers over this parameter, which I filed as a bug on the current version of the operating system. (Is there a database of bugs when this can be filed?)

  • The phone number in accordion component (was: Please REQUEST HELP - URGENT)

    I am trying to settle this problem for a customer who has a conference / tradeshow in the morning... On the mobile site, when you click the menu accordion, it tries to dial a number rather than go to the pages in the menu. www.imed-Labs.com. any help is greatly appreciated

    There is an element with such a: (phone) link above the header area.

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

  • Need to disable CGI, I have two-factor authentication, but I don't have the phone number or device with me. What can I do?

    Need to disable CGI, I have two-factor authentication, but I don't have the phone number or device with me. What can I do?

    For Apple ID - Apple Support two-factor authentication

    If I can not connect, how I again to access my account?

    If you can't sign in, reset your password, or receive verification codes, you can account recovery application to restore access to your account. Account recovery is an automatic process designed to help you back into your account as soon as possible while denying access to anyone who might be impersonating you. It may take a few days - or more - depending on the specific account information, you provide to verify your identity.

    It will be your option. If you try to find an iPhone with locking Activation that you don't remember the password, you can remove the account from the iPhone with the help of Apple's Support with the receipt of the initial purchase of the iPhone as a way to prove that you are the real owner of this iPhone.

Maybe you are looking for

  • To stop a download on Mac (of Mac OS sierra)

    I have already downloaded MacOS sierra but the AppStore try to download again (I can see it on Launchpad), how can I stop, eliminate this one?

  • DeskJet 3520 black does not print

    I have a 3520e all-in-one Deskjet printer and I just replaced the cartridges in it all, because they were empty. Now, all of a sudden, the black will not print. I've done all the fixes proposed by the documents of support on this Web site. The cartri

  • Have I not 32-bit or 64-bit Windows?

    I always try to download the suitable for the recommended ThinkVantage update BIOS.  It is now asked if my Windows on the T400 is 32-bit or 64-bit.  How can I decide?  The "System Properties" dialog box says that I have "Windows XP Version 2002 Servi

  • DELL XPS L502x - what is my laptop's SATA III?

    Hallo, I want to ask you guys if my laptop has sata III? I have Dell XPS L502x, with HM67 chipset, intel says that SATA III is available, but when I get in touch with society Polish dell, they said that I don't have the sata III, how is this possible

  • HDX16 buttons in windows 7

    After upgrading my computer Windows Vista to Windows 7 (64-bit), my ejection and bass/treble buttons do not work. My volume buttons / mute work however, after I installed HP MediaSmart SmartMenu (sp45140.exe). In any case, I tried to install HP Tone