In app calling without redirecting to Phone activity

ⅰ亾dé卋堺 提交于 2020-01-06 06:11:25

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!