如何在Android上实现PBAP [英] How to implement PBAP on android

查看:219
本文介绍了如何在Android上实现PBAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在android中实现PBAP,我想连接到配对的设备并提取电话簿.

I'm trying to implement PBAP in android, I want to connect to a paired device and extract the phonebook.

在android系统信息库中搜索时,我看到它具有用于此工作的类,但是我无法实例化它.

Searching in the android repository I see it have classes for this work, but I can't instantiate it.

https://android.googlesource.com/platform/frameworks/opt/bluetooth/+/master/src/android/bluetooth/client/pbap/BluetoothPbapClient.java

任何人都有示例代码,以了解如何使用pbap或知道如何创建此android类的实例.

Anyone have a sample code to see how to work with pbap or know how to create an instance of this android classes.

推荐答案

尝试在 github 中查看示例.

使用PBAP(PhoneBookAccessProfile)通过蓝牙从另一部电话中获取电话簿.

Getting the phone book from another phone via bluetooth with the PBAP(PhoneBookAccessProfile).

这篇关于如何在Android上实现PBAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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