How to invoke a phone call in ANDROID?

By | March 29, 2012

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);
Website Pin Facebook Twitter Myspace Friendfeed Technorati del.icio.us Digg Google StumbleUpon Premium Responsive

Leave a Reply

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