|
Making a telephone call from Java ME |
|
|
|
|
Friday, 22 June 2007 |
|
A telephone call can be made from a Java ME application by using javax.microedition.midlet.MIDlet.platformRequest().
It's has been observed that on some devices the MIDlet has to be closed (Series 40 devices), before the phone call is dailed. The application can check it with the return value of this method call. The value is true, if the MIDlet suite MUST first exit before the call can be made.
It is also possible to send post-dial DTMF tones along the phone number. However, it is not usually possible to send a DTMF tones sequence to operator service from a MIDlet.
On some devices (on Series 40 side) the length of the dial-string is limited.
The following code is used for making the telephone call
String telNo = "tel:+9232151761543"; platformRequest(telNo ); User can also initiate a phone call from MIDP PHONENUMBER type TextField or TextBox. User is also able to fetch a number from native phone book (or contacts) application to this type of TextField/TextBox.
|
|
Last Updated ( Tuesday, 14 August 2007 )
|