Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我创建了一个文本框,其中预填了电话号码。单击按钮呼叫时如何拨打电话。呼叫应该是文本框中指定的号码。
如何以编程方式为 J2ME 中的指定号码拨打电话?
谢谢
试试这个代码。
private void call(String number) { try { platformRequest("tel:" + number); } catch (ConnectionNotFoundException ex) { // TODO: Exception handling } }