J2ME: platformRequest Issue

无人久伴 提交于 2019-12-08 04:12:29

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);

http://sarfraznawaz.wordpress.com/2010/03/27/magic-dialler-my-first-j2me-application/

according to my and some others knowledge, you cannot use platformRequest to do network service requests (tel:*123*...). besides, there is no way to access the service reply from JavaME.

ax is right you can't give numbers starting with special characters in the request. But if i am understanding your problem, i have a workaround you can use DTMF post dial code for this. like:

("tel:123/p333584744#");

where /p for DTMF and first 3 where voice operator ask for number and after that number ends with #.for more information see

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!