make a phone call to request

Hello

Does anyone know how to make a phone call or sms from application using the API?

Please help me on this.

Thank you

DK.

Call us at:

public void makeCall(String data){
                    String phoneNumber = data;
                    if ( phoneNumber.length() == 0 ){
                        System.out.println("Error,  not a phone number");
                    }
                    else {
                        PhoneArguments call = new PhoneArguments (PhoneArguments.ARG_CALL,phoneNumber);
                        Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
                    }
}

SMS to number:

public void makeSMS(String number){
                try{
                MessageConnection mc = (MessageConnection)Connector.open("sms://");
                TextMessage textMessage = (TextMessage)mc.newMessage(MessageConnection.TEXT_MESSAGE);
                textMessage.setAddress("sms://" + number);
                Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(textMessage));
                }
                catch (IOException e){
                Dialog.alert(e.getMessage());
                }
}

Note that you should always import the API to Invoke and e-mail and so.

Tags: BlackBerry Developers

Similar Questions

  • Is that what you can get siri on the Apple Watch (series 2) to make a phone call, but on your iPhone, so when you're driving it then would come by phone from car speakers?

    You can get siri on the Apple Watch (series 2) to make a phone call, but do it on your iPhone, so when you're behind the wheel, he would then come through car speaker?

    You can also long are you your phone is connected to the car blu tooth. Not tried myself.

  • Our phone will make more phone calls, and we do not know how to change the settings to restore the capabilities of phoning.

    Our phone will make more phone calls, and we do not know how to change the settings to restore the capabilities of phoning.

    Greetings jenniferfrom46,

    From your post, I see that you are unable to make phone calls. I count on the ability to use my phone a lot to make calls, so I can understand your concern. I will be happy to provide you with some information for you.

    If you can not make or receive calls on your iPhone, this article goes on measures to take to help with the issue you are experiencing.

    Have a good!

  • How can I make a phone call from Apple Watch after the update of the software lasted?

    I don't know how to make a phone call from my Apple Watch after this update. I need help

    Hello

    Under watch OS 3, the friends feature (which was available in previous versions) comes over and there is no direct replacement for it.

    When making calls or sending of new messages, contacts instead can be selected via the phone and Messages applications or using Siri:

  • I just got an iPhone SE. But when I make a phone call, that I don't hear so good. The volume is all

    I just got an iPhone SE. But when I make a phone call, that I don't hear so good. The volume is. How can I fix

    Did you remove the plastic that covers the face off the iPhone when you buy?

  • Make/receive phone calls via the software modem?

    It is usually possible to make and receive calls through a PC modem such as the software modem for satellite P25 series?
    I need any additional software to do this? (this is not about VOIP).

    Hello

    I'm not sure what you mean exactly. You want to make a phone call over the internet?
    I put t know which device you have, but I think that it s must support a modem.
    You can use this modem to connect to the internet, but believe me; the modem connection is not very fast and the transfer of data has for a long time.

    I think the phone call over the internet is a very good idea but only if someone has a lump and a broadband connection.

  • They have to make a phone call?

    So today, I gave my iPhone 5 to someone so that they could make a phone call. I trust her, and she only used for 5 minutes and he gives back. Later, when I started using it, I double clicked on the Home button and I noticed there was a window open for calls and music. I know not if and why I would have opened, who questioned her and these five minutes. Up and down, she swears she did only a phone call, but I'm still worried. I know that she would not have bought something, because I have never on my phone and once again, within five minutes?

    Is there a way to check what has been consulted, and any other form of activity your iPhone?

    If she used the phone, then calls may be recent. Someone could use music earlier. Alternatively, she could hit accidentally. Either you trust him or you don't. If you have not, change your passwords and restore your phone as new, no turning back. If you do, don't you worry about that.

  • can I make a phone call from three pathways with iOS 9?

    can I make a phone call from three pathways with iOS 9?

    IF you have configured to do this by your phone service provider.

  • Make a phone call and e-mail to the JDE 4.2 end devices

    Hello

    I want to make a phone call by selecting a text enriched with phone number field and also send an e-mail to E-mail id when we focus the rich with identification of email text field. Arguments of phone class is not supported in JDE 4.2. So, how can I do this? Some body help me here please.

    Hello

    For all thanks for helping me. ATLAST I did call and mail.

    2 the most important classes are

    PhoneArguments call = new PhoneArguments (PhoneArguments.ARG_CALL,phoneNumber);
                            Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
    
    Invoke.invokeApplication(Invoke.APP_TYPE_MESSAGES, new MessageArguments(MessageArguments.ARG_NEW,Mail,"",""));
    

    That's all. Thanks for all the guys who helped me a lot to do. Now, I did everything, but I get to fileds two in email, if the search for a solution. If some body knows. Please answer me that's all.

  • How to connect with the device to make a phone call

    Hello world

    I am developing a small application, in which I provide a button contains the phone number to let the user click on and make a phone call, I try the class phone but couldn't.

    Could someone tell me how to do this!

    Thank you!

    read this:

    http://supportforums.BlackBerry.com/T5/Java-development/phone-invocation-not-working/m-p/306554#M539...

  • Is the phone call received requesting remote access to solve the problem under Windows a scam?

    I received a phone call requesting remote access to my computer to solve a problem with Microsoft Windows more precisely line X 5.  The call came from Salt Lake City Utah, phone number 801-839-2099.

    I got this phone call once a week.

    Is it a scam?

    It's a scam.  Next time you receive such a call, tell the caller you declare calls to the police as harassment for fraudulent purposes... maybe they'll leave the call.

    http://www.Microsoft.com/security/online-privacy/msName.aspx

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

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

    http://www.mypchealth.co.UK/GuideScam.php

    http://blogs.msdn.com/b/securitytipstalk/archive/2010/03/09/Don-t-fall-for-phony-phone-tech-support.aspx

    http://ask-Leo.com/i_got_a_call_from_microsoft_and_allowed_them_access_to_my_computer_what_do_i_do_now.html

  • Make a phone call by program - the wait for the user to input?

    Hello

    I use the following code to place a phone call from my application:

    Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, new PhoneArguments(PhoneArguments.ARG_CALL, phoneNumber));
    

    and it seems to work, at least in the Simulator.  However, when this line running the Simulator dials the number immediately.  Peux-I rather the phone displays the number and wait that the user press 'call '?

    I know that I can warn the user with Dialog.ask (...), and if it's the only thing to do I will do.  I'm just curious to know if I can get the phone to do so.

    arkadyz wrote: instead can have the phone displays the number and wait that the user press 'call '?

    No, this is not currently supported.  You can use a dialog box inside your own application as you describe.

  • Microsoft makes personal phone calls to say that you have something wrong with your man

    Microsoft made personal phone calls to someone to inform them that they have a probelum on their cumputer?

    No, they do not.  I hope that you simply hung up before the concerned criminal had useful info from you or you fool by giving access to your PC.

  • How can I ask Siri to make a phone call, if the telephone number is not in my contacts?

    Hi people

    I do a lot of driving on the road. I health home where I travel to the patient's home and do some physiotherapy with them in their homes.  Many times I find myself adjust my schedule, while on the road in order to accommodate a schedule patient or let know that I'm running a little late.  One of the best features of the Siri is that it can call the numbers for you while you are busy with another task, IE. at the wheel.  Well lately, I noticed that she tells me she can't dial a phone number because the number is not in my contacts.  Unfortunately, I can't put the numbers in my contacts because it is my personal phone and any personal information of patients cannot be on my phone, computer, etc., I usually have to call on the road.  Before she could dial the number without any problems.  Now, when I say"Siri, please call 352-xxx-xxxx, she said," I'm sorry I can't find this number in contacts, you would I look for this number somewhere else?  No matter how I word it, even just saying "Siri, I know this number isn't in my contacts, but I still need to call 352-xxx-xxxx" I always get the same prompt of Siri.

    That said, is it possible to fix this?  It would certainly make things a little easier for me while driving instead of having to look at the bottom of the phone to dial the number.  For any help or suggestion would be so appreciated.  Thank you in advance.

    Michael

    I just tested a call by saying "call 800-xxx-xxxx on my iPhone 6. He knew immediately. I'm in iOS 9.2.1. Have you tried leaving out the ' Siri, please... " » ?

    Have what troubleshooting you done? Update to the latest version of iOS? Reset the phone? Restore network settings? Restored from a return to the top? Restored like new?

  • Why Gmail I wouldn't make a phone call more?

    I did free long distance calls or a couple of years, but cannot do so no longer. I am told to install a plugin, but it does not allow me to do so either.

    Hi cactusflower,.
    Can you confirm if this is a Firefox OS device or the Firefox browser?

Maybe you are looking for