Reputation: 5
I need to build a car android app that displays various data from users phones when they are paired with the app. by various data I mean their contact list , battery status etc..
which API's do I need to implement to do that ? I have seen the Bluetooth API's but as I don't have any control over the phones that pair with my app , I need somehow to get that data automatically .
Upvotes: 0
Views: 2907
Reputation: 363
Quoting from samsung forums:
"Phone Book Access Profile, often referred to in specifications as PBAP or PBA, is the latest protocol in the Bluetooth family for synchronizing contacts between devices. Cars and phones that support this standard can sync your address book to enable your in-car hands-free system to match incoming calls to contact names, display caller photos, and retrieve information for name-based voice dialing. Cars can also handle SMS using the Message Access Profile. Supporting devices enable you to browse, send and receive texts from your Bluetooth device; some devices even read incoming texts aloud automatically."
So, check whether this bluetooth profile is supported by both bluetooth devices.
Android SDK documents support for a few profiles. See here: http://developer.android.com/guide/topics/connectivity/bluetooth.html#Profiles
And apparently PBAP is not there. So, I would say, you are pretty much on your own - however, I stumbled onto this. Check it out: https://android.googlesource.com/platform/frameworks/base/+/ee0b3e9/core/java/android/bluetooth/BluetoothPbap.java
Upvotes: 1