The following code helps you to invoke a phone call in ANDROID without any user interaction.
This code uses intent to start the activity.
You know that intent can be used to start another acitivty from with in an application.

Dialing a number is done using this code…

Uri telephoneUri = Uri.parse("tel:100000");
my_intent = new Intent(Intent.ACTION_DIAL, telephoneUri);

and Calling number using

Uri calling = Uri.parse("tel:100000");
the_call = new Intent(Intent.ACTION_CALL, calling);
 

Leave a Reply

Your email address will not be published. Required fields are marked *

 

 

 

Theme by HermesThemes

Copyright © 2018 CoderzHeaven. All Rights Reserved

Please wait...

Subscribe to our newsletter

Want to be notified when our article is published? Enter your email address and name below to be the first to know.