Please give me an example or link about how to send call for given telephone number using Android.
Asked
Active
Viewed 78 times
-2
-
try this link http://stackoverflow.com/questions/1556987/how-to-make-a-phone-call-in-android-and-come-back-to-my-activity-when-the-call-i – Arun Paarthi Feb 13 '13 at 05:59
1 Answers
1
Add these line of code where u want to call a number, if you Just want to dial
a number you can use ACTION_DIAL instead.
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:1231231234"));
startActivity(intent);
dont forget to add appropriate permission in your manifest file. may be below one
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
or
<uses-permission android:name="android.permission.CALL_PRIVILEGED"></uses-permission>

AAnkit
- 27,299
- 12
- 60
- 71