Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

J2ME: How to make a call?

Tags:

java

java-me

midp

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

like image 234
Sarfraz Avatar asked Jan 16 '10 11:01

Sarfraz


1 Answers

Try this code.

 private void call(String number) {
    try {
    platformRequest("tel:" + number);
    } catch (ConnectionNotFoundException ex) {
    // TODO: Exception handling
    }
    }
like image 124
Vivart Avatar answered Nov 13 '22 18:11

Vivart