Reputation: 1633
How do I call international mobile programmatically when clicking textview in android?
Upvotes: 3
Views: 1598
Reputation: 13390
you can call to any number using the following code:
String Numb = "tel:" + "your number";
Intent intent = new Intent(Intent.ACTION_CALL, Uri.parse(Numb));
startActivity(intent);
include following permission also:
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
Upvotes: 9