如何android.intent.action.CALL
在服务中启动(以获取 USSD)代码?
我的代码:
protected void call(String phoneNumber) {
try {
startActivityForResult(
new Intent("android.intent.action.CALL", Uri.parse("tel:"
+ phoneNumber)), 1);
} catch (Exception eExcept) {
//this.view.append("\n\n " + "\n" + eExcept.toString());
}
}
此代码不起作用,问题与startActivityForResult()
.