问题
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?
回答1:
That is not possible from an SDK application, sorry.
来源:https://stackoverflow.com/questions/5604299/in-app-calling-without-redirecting-to-phone-activity