Direct calling from application
I am trying to do a direct calling from my application. The labelfield contains a phone number, how do I do a direct call from there? When the user selects the phone number in the labelfield and clicks the green button, it will aut开发者_Go百科omatically call the number. Please explain step by step if you don't mind. I'm still learning.
Take a look at Phone class description. It is easy to understand how to use it.
Use the following code:
String phoneNumber = "555234324"; //the number that you wanna call
PhoneArguments call = new PhoneArguments(PhoneArguments.ARG_CALL, phoneNumber);
Invoke.invokeApplication(Invoke.APP_TYPE_PHONE, call);
精彩评论