How to make phonecall without dialer user interface on Android
I would like to make a phone call directly when I press a button without first displaying the dialer, like I get if I use Ti.Platform.openURL('tel:12421342').
Is there a way to do this in Titanium?
1 Answer
-
Try this:
var intent = Ti.Android.createIntent({ action: Ti.Android.ACTION_CALL, data: 'tel:12421342' }); Ti.Android.currentActivity.startActivity(intent);