J2ME:platformRequest问题

编程入门 行业动态 更新时间:2024-10-11 13:20:19
本文介绍了J2ME:platformRequest问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想使用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问题

本文发布于:2023-11-27 22:47:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639918.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:J2ME   platformRequest

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!