中易网

如何启动从HF通过AG通过免提音频网关在Android的电话吗

答案:1  悬赏:80  
解决时间 2021-01-19 07:07
  • 提问者网友:杀手的诗
  • 2021-01-18 09:41
如何启动从HF通过AG通过免提音频网关在Android的电话吗
最佳答案
  • 二级知识专家网友:琴狂剑也妄
  • 2021-01-18 10:06
So far I have been able to initiate a call from the AG (Audio Gateway) which is an Android phone through bluetooth connection from the phone in which my app is loaded (the HF or Hands-free), to the target phone. I have used this code for this procedure:
///////////////////////////////////////////////////////////////////////////////
//Here, how to establish voice connectivity from AG to my phone(HF)?
//////////////////////////////////////////////////////////////////////////////

// Calling the target phone from the AG via the HF using bluetooth Handfree Audio Gateway
try {
mmOutStream.write(("ATD"+phone_number+"\r").getBytes());
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息!
大家都在看
推荐信息