| try{ this.platformRequest("tel:13810000000"); }catch(ConnectionNotFoundException ex){ ex.printStackTrace(); } |
这里提供了一个简单的例子,在Nokia 7610(支持MIDP 2.0)上测试通过,成功呼叫了指定的电话。
|
package com.j2medev.call; 织梦内容管理系统 main.setCommandListener(this); } display.setCurrent(main); } public void pauseApp() {} public void destroyApp(boolean unconditional) {} public void commandAction(Command cmd,Displayable displayable){ if(cmd == List.SELECT_COMMAND){ String number = main.getString(main.getSelectedIndex()); try{ this.platformRequest("tel:"+number); }catch(ConnectionNotFoundException ex){ ex.printStackTrace(); } } } } 本文来自织梦 |
内容来自dedecms






