开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜