Rahul Kalidindi
Rahul Kalidindi

Reputation: 4736

In app calling without redirecting to Phone activity

I want to know if there is any method to make a phone call in Android without redirecting the uri to Phone Activity. To make a phone call,

String uri2 = "tel:678-547-9181";
Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse(uri2));
startActivity(intent);

This was the code i was using earlier. But this redirects to phone activity and makes a call. But i dont want to reveal the phone number to the user. Is there any way that i can do this?

Upvotes: 0

Views: 1154

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

That is not possible from an SDK application, sorry.

Upvotes: 1

Related Questions