tags:

views:

389

answers:

2

Hi,

How to use platformRequest to initiate a call involving special chars eg * or #

Example:

platformRequest("tel:*123#");

Or any alternative to platformRequest please.

Details:
Nokia N70
CLDC 1.0
MIDP 2.0

+1  A: 

Well since platformRequest() excepts URL, my guess is that the characters in that string argument must be URL encoded.

So, since the "*" is not a reserved character, it can stay that way. But the "#" must be encoded like "%23" because it is an "unsafe character".

And my guess is that this would work:

platformRequest("tel:*666%23");
Cipi
again its starting with * because of that it will not work.
Vivart
Can the "*" be URL encoded as "%2A"?
Cipi
A: 

Hi I have the same problem and i tried to replace each # with "%23" And then i tried to replace each * with "%2A" But the still i can't make the phone call

ahmed elbagoury
See this: http://stackoverflow.com/questions/2084162/j2me-platformrequest-issue
Sarfraz