简体   繁体   中英

J2ME: How to make a call?

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 number 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
    }
    }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM