Hey guys!
I wonder, if the following task is possible: I've got a bluetooth headset. I connect this headset to my phone. My app should popup a dialog, which discovers, that there is a headset connected and a button would forward it to some activity. There it should be possible to hold a button and talk through the normal phone mic. The spoken sample should be hearable on the headset. If the other person talks into the headset, it should be hearable on the phone, or, even better it would be played on the phone and saved directly or if the other one havn't recognized it, to listen to it again.
And another extension: If there is a cable-plugged headset got plugged into the phone, with the same functionality.
I already searched for some examples for the connection to a headset, but it wasn't that useful. Afaik I cannot "emulate" an bluetooth device on the emulator. What about the usual bluetooth headsets; Are there any limitations? Data I could parse like, what kind of headset it is, the name, is there a mic on it, ect...
I know its not a real programming question, but there is no good other place to ask such things. And I already found some unanswered questions like that on the net...
EDIT: Maybe I should write a bit more to this topic to specify the question: I would have my phone as a server and a bluetooth headset which is not connected nor paired. Now I have got an activity, which has got a button to search for devices nearby the phone. If it has found some, it should be listed in a dialog. Then the user can choose the device and the app connects to it. After that, I've got a button. If I click on this button, the phone sends some sound to the headset. The problem is, that I also want to support 1.6 and there is no BT API, afaik? Also another question: Is it possible to connect to more than one headset? I know, its basically possible to connect to 2^8 devices, but is it possible with headsets and dynamically (like I can choose on the fly, where to send the sound to)?
(Target device: G1, 1.6+)