Doing a phone call in LWUIT

孤者浪人 提交于 2019-12-02 02:45:07

Also you can do without extend MIDlet using this:

String telNo = "tel no";
Display.getInstance().execute("tel:" + telNo);

Your main class should extends with MIDlet. So there is no issues. You can call like this,

String telNo = "tel no";
platformRequest(telNo );

Suppose If you want to access outside of midlet, you can pass the midlet object to that class and call like this,

String telNo = "tel no";
midlet.platformRequest(telNo ); // midlet is MIdlet object name
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!