Android Bletooth: Does SPP profile conflict audio streaming? - Java for Android App Development

Hello Team,
I am trying to achieve the following for my project,
•Stream music from Android music player or other music player via Bluetooth module connected to speakers.
•While the music is streaming, my app should connect to the same Bluetooth module and transfer data commands via spp profile.
I am having a fundamental question whether this can be done simultaneously without conflicting each other.
Kindly, help me out with this one.
Thanks

Related

Music Via Bluetooth

I'm looking to get a bluetooth headset for my shining new XDAII, but first I want to know if it supports playing music from Media Player, via hte headphones. Can anyone help?
Hi,
from the training I attended.The product manager of XDA II did mentioned that we can hear MP3 from the bluetooth headset. :wink:
Practical experience: no you can't. But future plans for supporting audio playback do exist. Currently, phone calls can be conducted over bluetooth

Redirecting Handsfree Audio in Media Player?

Can I redirect the Audio player audio stream to a handsfree device? I have a blueant interphone which works great as a normal handsfree device, but as its not 'wireless audio' it means that it wont treat it as a normal headset type device.
If I press the connect button whilst playing MP3's, I hear the music in the headset for about a second before the voice dialler kicks in... so I know it can do it.. its just a matter of getting it to redirect the audio stream somehow on a permanent basis.
Does anyone know of a plugin or other hack that I could possibly use/run to turn a Handsfree device in a Audio device ?

[Q] Bluetooth phone mono --> A2DP

Hey guys, thanks in advance. I've done some searching and haven't been able to find anything that addresses a small oversight.
So I have an A2DP audio receiver connected to the auxiliary input in my car. It works great for music, Pandora, and what not, but none of the mono-channel phone audio gets played through my car speakers. I realize it's due to the different profiles, that A2DP was designed for music and the hands-free profiles were designed for phone calls. However, I've been able to find Music --> Mono software that allows me to play music through mono-channel non-A2DP headsets.
Is there anything out there that can help me divert the mono phone audio stream through to A2DP?
Thanks.
-HD

[HOWTO] Bluetooth A2DP and HFP working (rooted phone)

As a Junior member I am not allowed to reply in the Development section of this forum, so I share what I have discovered here.
You must have a rooted phone to edit /system/etc/bluetooth/audio.conf
Use ADB or Root Explorer to edit this file.
Thanks to this members for leading the way to a working bt-connection:
spoidar http://forum.xda-developers.com/member.php?u=2842298
scotte9999 http://forum.xda-developers.com/member.php?u=848742
When connecting to car audio system I now have bluetooth streaming music from phone to car speakers and the HFP (Hands Free Profile) working. Receiving a call when listening to streaming is also working as the music mutes and the call is preferred.
Before I could only connect HFP and from time to time got a message saying phone must be re-connected.
I made the following changes to /system/etc/bluetooth/audio.conf
[General]
Enable=Sink,Control,Headset,Gateway,Source
#Disable=
AutoConnect=true
[Headset]
HFP=true
MaxConnections=3
Reboot the phone after saving audio.conf, enabled Bluetooth and under Options for my car audio I have two profiles ticked:
Media [v]
Phone [v]
-
My SGS GT-I9000
PDA: XWJS8
PHONE: XXJQ1
KERNEL: Speedmod-k13e-500hz
does this add a "media audio" profile to the galaxy bluetooth?
I have a Parrot bluetooth in my car and a Galaxy S. On the profile for the parrot in the Galaxy S I do NOT have an option "use for media audio", only "use for phone audio".
I have not been able to stream books (I use Ambling book player) to the parrot except when using the app called SuperMonoFroyo but it has to be restarted after every call placed or received.
I'd like to get the "use for media audio" profile if possible.
So is the mod to /system/etc/bluetooth/audio.conf a solution to my problem? Or is there some other way to solve this I haven't found.
Thanks
sblevine
This mod wasn't needed on Gingerbread. XWJVH stock audio.conf connect phone & media just fine.
Are you sure Parrot support A2DP?
Older C-F kernels also had problem with bluetooth but it is fixed on recent version.
Sent from my GT-I9000
hi
i have scala rider G4 bluetooth headset and when i get a call
i hear a regular ring and not A2DP, when i paired to G4 to nokia
i hear the ring music A2DP
do u know how i can fix it?
O-T said:
As a Junior member I am not allowed to reply in the Development section of this forum, so I share what I have discovered here.
You must have a rooted phone to edit /system/etc/bluetooth/audio.conf
Use ADB or Root Explorer to edit this file.
Thanks to this members for leading the way to a working bt-connection:
spoidar http://forum.xda-developers.com/member.php?u=2842298
scotte9999 http://forum.xda-developers.com/member.php?u=848742
When connecting to car audio system I now have bluetooth streaming music from phone to car speakers and the HFP (Hands Free Profile) working. Receiving a call when listening to streaming is also working as the music mutes and the call is preferred.
Before I could only connect HFP and from time to time got a message saying phone must be re-connected.
I made the following changes to /system/etc/bluetooth/audio.conf
[General]
Enable=Sink,Control,Headset,Gateway,Source
#Disable=
AutoConnect=true
[Headset]
HFP=true
MaxConnections=3
Reboot the phone after saving audio.conf, enabled Bluetooth and under Options for my car audio I have two profiles ticked:
Media [v]
Phone [v]
-
My SGS GT-I9000
PDA: XWJS8
PHONE: XXJQ1
KERNEL: Speedmod-k13e-500hz
Click to expand...
Click to collapse
Hey O-T,
I updated my audio.conf to the conf that you specified, but I still do not see the additional Phone audio profile under the options of my BT connected speakers. My device is a galaxy S2 T989. Do you know if this conf enables phone audio via A2DP for all the devices or is it just for GT-I9000?
Thanks.
I have updated to GB 2.3 and this problem to connect bt a2dp is gone.
Sent from my GT-I9000
Hi
easy solved in Google Play
Hello, dears
just head to Google Play and ask for : BTHeadSet, BTMono, BtMusic, Audio Router, Super Froyo Mono and other alike
I've been using BTHeadSet in my car and goes like if I were receiving a phone call, so all songs, audio and etc goes to the car speakers
See you around

Air audio options?

Anyone know if there is a way to steam audio to a network receiver over wifi, not Bluetooth and not local music. Looking to be able to steam via dlana with music apps such as iheart etc. Only option I know that does this is airaudio but that requires root. Anyone know of any other options?
krad42 said:
Anyone know if there is a way to steam audio to a network receiver over wifi, not Bluetooth and not local music. Looking to be able to steam via dlana with music apps such as iheart etc. Only option I know that does this is airaudio but that requires root. Anyone know of any other options?
Click to expand...
Click to collapse
One of the best option to send system wide audio to a Network Reciever is to get a Chromecast Audio dongle, connect it to Reciever via toslink cable if you reciever supports it and using "Cast App" send the audio to cast audio. Amazing audio quality.
I use the root App airaudio. Streaming to dlna Speakers. Needs root and the magisk airaudio Module.
Hey there,
AirAudio has been kicked by Google because they didn't like a link to a rooting-website inside the description anymore, written 7 years ago.
Its successor is called AirMusic and allows to stream some apps (eg. YouTube, YT Music, Deezer, PodcastAddict , radio.de, Plex and more, you have to try it out) without root on Android 10+.
On rooted devices, all audio can be transmitted.

Categories

Resources