在应用程序调用,而不重定向到手机活动 [英] In app calling without redirecting to Phone activity

查看:148
本文介绍了在应用程序调用,而不重定向到手机活动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何方法来拨打电话在Android中没有重定向URI来电话活动。要拨打电话,

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);

这是code我使用更早版本。但是这种重定向到手机活动,并进行呼叫。但我不想透露电话号码给用户。有什么办法,我可以做到这一点?

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?

推荐答案

这是不可能的,从SDK应用程序,不好意思。

That is not possible from an SDK application, sorry.

这篇关于在应用程序调用,而不重定向到手机活动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆