Search code examples
java-memidpj2mepolishnokia-s40cldc

Calling number with special characters in J2ME Nokia


I want to call a number in the below format using platformRequest:

platformRequest("tel:number,number#number#");

But i'm getting an invalid number error , is it possible to do that?


Solution

  • I'm just going to put my comment as an answer here, so you can mark the question as answered.

    You're getting an invalid number error because there's no comma in a telephone number. When looking at your address book, there may be a comma as a visual representation of a pause in the number. But when using platformRequest("tel:<number>); you have to use the character "p" to get a pause.

    So, a number like 080099330,7495692664036#0096255455# in your phone-book will have to be entered like platformRequest("tel:080099330p7495692664036#0096255455#"); In other words, the comma is replaced with a p.