开发者

J2ME: How to make a call?

开发者 https://www.devze.com 2022-12-16 09:24 出处:网络
Let\'s suppose i have created a text box with a phone number in it prefilled. How do i make a call when a button Call is clicked. The call should be for the num开发者_如何学Pythonber specified in the

Let's suppose i have created a text box with a phone number in it prefilled. How do i make a call when a button Call is clicked. The call should be for the num开发者_如何学Pythonber specified in the text box.

How to make a call programatically for the specified number in J2ME?

Thanks


Try this code.

 private void call(String number) {
    try {
    platformRequest("tel:" + number);
    } catch (ConnectionNotFoundException ex) {
    // TODO: Exception handling
    }
    }
0

精彩评论

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