Appcelerator Titanium Android Click to Auto Call

Hi Everyone,

I want to share the problem I faced today and the solution for that. Right now I’m developing an Android app and I had a requirement to make call by clicking a click to call button. The Problem here is we used


to get into the Call dialer activity, but my Client want in the way of when the button is clicked the call should be made automatically for the given number. I used the following code on my button listener

var intent = Ti.Android.createIntent({     action: Ti.Android.ACTION_CALL,     data: 'tel:1234567' }); Ti.Android.currentActivity.startActivity(intent); 

and in the tiapp.xml file add the CALL_PHONE permission, which looks like the following

<android xmlns:android="">
    <uses-permission android:name="android.permission.CALL_PHONE" />

Finally we achieved the requirement by this code, try this and post your comments. I must thank Harish to gave space for me in

Thanks & Regards,
Ramkumar Murugadoss

One thought on “Appcelerator Titanium Android Click to Auto Call

Leave a Reply