var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_CALL, data: 'tel:1234567' }); Ti.Android.currentActivity.startActivity(intent);
在tiapp中.xml我有权限
<uses-permission android:name="android.permission.CALL_PHONE" />
单击按钮时自动呼叫在 Android 6 上不起作用。如何在安卓 6 上请求许可?权限.js没有任何用于CALL_PHONE权限
var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_CALL, data: 'tel:1234567' }(;Ti.Android.currentActivity.startActivity(intent(;
在tiapp中.xml我有权限
单击按钮时自动呼叫在 Android 6 上不起作用。如何在安卓 6 上请求许可?权限.js没有任何用于CALL_PHONE权限
尝试使用
Titanium.Platform.openUrl('tel:'1234567);
它将使用预填充的号码打开拨号器,但它在模拟器上不起作用。
有关文档和代码的更多信息,请链接