我想使用platformRequest拨打以下格式的电话号码:
I want to call a number in below format using platformRequest:
platformRequest("tel:*123*33584744#");但这会给我带来错误电话号码无效.
但是,如果我通过在电话上键入手动拨打此号码,则效果很好.即使在下面也可以正常工作:
But if i call this number manually by typing on phone then it works fine. Even below works fine:
platformRequest("tel:33584744");所以我怀疑问题出在我在数字中输入*或#个字符时.正如我所说,当我在数字中手动键入这些字符并按移动电话上的通话按钮时,它可以正常工作,但不能与platformrequest配合使用.
So i suspect problem lies when i put * or # chars in the number. As i said when i type these chars in the number manually and press the call button on the mobile it works fine but not with platformrequest.
我在做什么错?
平台请求方法有其他替代方法吗?
Any alternative to platformrequest method?
如何拨打以下格式的电话号码:
How to call a number in below format:
* 123 * 33584744#
详细信息:CLDC 1.0,MIDP 2.0
Details: CLDC 1.0, MIDP 2.0
谢谢
推荐答案我自己找到了解决方案:
I found the solution myself:
我只是将文本框类型更改为:
I simply changed the text box type to:
mTextBox = new TextBox("Magic Dialler", "", 25, TextField.ANY); // The below line does the trick !! // 1: Adds Import From Contacts option // 2: Adds Call button for calling just about any number with any special chars ! mTextBox.setConstraints(3);sarfraznawaz. wordpress/2010/03/27/magic-dialler-my-first-j2me-application/
更多推荐
J2ME:platformRequest问题
发布评论