penguin359, HID profile has two sides - Host and Human Interface Device
you want implement Human Interface Device
you should check is Bluez on Linux (and on Android of course) supports this side
Mikhail Gudkov, using this socket with the BTPROTO_SCO you must be able to establish SCO connection, (but you can't get and send data)
see in framework/base/core/jni/android_bluetooth_ScoSocket.cpp ScoSocket implementation or use this Java class
but i think there are another problem - one bluetooth device can create only one SCO connection, and maybe android heandsfree service already create it before you
On a related note, but slightly different profile, I've been interested in implementing an application utilizing the Bluetooth HID Profile, but not as a master as other projects, but as a slave. In other words, Android acting as a Keyboard, Mouse, or other HID device itself. My ultimate goal would be to write an Android app that acts as a PowerPoint Presenter Remote using standard Bluetooth HID and not one of the hacks out there that utilizes SSP and RFCOMM and requires software running on the host operation. It it possible or allowed to get this level of access to the Bluetooth stack in Android?
I know it may not be completely portable as I've heard that Samsung phones use their own incompatible Bluetooth stack, but for those Android devices utilizing Bluez, would this be doable?
--
You received this message because you are subscribed to the Google Groups "android-platform" group.