views:

54

answers:

1

I am completely new to bluetooth app development. what exactly is a bluetooth profile? is it a hardware specification for the device? can an android mobile phone with bluetooth act as sender and receiver in A2DP profile?

+1  A: 

A bluetooth profile is a specification on the protocol and functionality of a bluetooth device. It is not just a hardware specification, because implementing a profile will often depend on both the software stack and the hardware chip. You can find more information from the wikipedia page.

And in the case of A2DP, it is specifically designed for music streaming. It cannot be used for arbitrary data communication (if that's what you mean by "sender and receiver"). If you are looking for a generic data communication mechanism over bluetooth transport, the Serial Port Profile (SPP) is what you need (some people also call it RFCOMM). Android SDK user guide has quite detailed information on how to use RFCOMM API: http://developer.android.com/guide/topics/wireless/bluetooth.html

Sun Jian
so my question :is the bluetooth module in a bluetooth head set and the one in a mobile is exactly same? can i use A2DP to stream music using my phone from another phone?
Thomas Manalil
I see. If you are talking about off-the-shelf android phones, I am not aware of any phones that can act as a A2DP receiver.
Sun Jian
i am ready to write an app. but is it possible with normal bluetooth module available in phones . or does it need a special bluetooth module?
Thomas Manalil
I am afraid not. The supported bluetooth class and profiles are natively implemented in the phone's system software, and are not modifiable by general user (unless we are talking about community ROMs such as cyanogen).
Sun Jian