简体   繁体   English

如何以编程方式将A2DP从移动设备连接到接收设备?

[英]How to connect A2DP from mobile to sink device programmatically?

I have to connect A2DP from mobile to a sink device programmatically on android 2.3.3 我必须以编程方式在Android 2.3.3上将A2DP从移动设备连接到接收器设备

I know a Mac address and a name of the sink device and I am going to use them. 我知道Mac地址和接收器设备的名称,我将使用它们。

But I could not find any apis to do that. 但是我找不到任何API来做到这一点。

Hi Please refer this link Actually this API is hidden. 您好,请参阅此链接实际上此API是隐藏的。 So need to remove that annotation and customize android.jar. 因此需要删除该注释并自定义android.jar。 Then you can call connectSink(). 然后,您可以调用connectSink()。 Any ways mentioned link is having useful detail for this. 提到的任何方法链接对此都有有用的细节。

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

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