简体   繁体   中英

How to get access to phone book of device which is connected using Bluetooth?

I want to pull contacts from device which is connected using Bluetooth.

How can I do this?

As I understand, I have to use Phone Book Access Profile (PBAP). But there is no public api for using it in Android sdk.

I see only BluetoothPbapClient.java but it's marked as @hide and no methods to get contacts there.

实际上,要访问联系人,您实际上不需要访问BluetoothPbapClient.java,一旦为PbapClientProfile连接设备,您只需通过内容解析器读取联系人。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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