简体   繁体   English

在后台拨打电话

[英]Making a phone call in the background

I want my background Service to make a call, so I use: 我希望我的后台服务拨打电话,所以我使用:

Intent intent = new Intent(Intent.ACTION_CALL);
intent.setData(Uri.parse("tel:77777777"));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_FROM_BACKGROUND);
startActivity(intent);

If the user is already on the phone call, then his call is being paused. 如果用户已经在通话中,则他的通话正在暂停。

I do not want to disturb his call. 我不想打扰他的电话。 Is it possible for my service to make a quiet phone call? 我的服务能否打出安静的电话? meaning: to make call and somehow leaving the current phone call undisturbed? 含义:拨打电话并以某种方式使当前电话不受干扰?

Is it possible for my service to make a quiet phone call? 我的服务能否打出安静的电话?

No. 没有。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM