As far as I can see, Android does not currently support playing sound
(beeps or other) through a mono (SCO) BT headset. I believe that BT
stereo (A2DP) headsets work, though. Have not tried.
You might want to check this thread for more info:
http://code.google.com/p/android/issues/detail?id=7906

As for getting info on headset button activations in your app, I
believe that this requires support for the AVRCP profile. Again, this
is commonly seen for stereo headsets, but not for mono. I don't think
that the Android BT stack supports AVRCP.
This wikipedia article gives a good intro to BT profiles, if you need
that: http://en.wikipedia.org/wiki/Bluetooth_profile

If you manage to get it to work, be aware that the various
manufacturer's interpretation of the BT spec tend to vary a bit... In
other words: I'd recommend to test the functionality with every
headset that you wish to claim supported by your app.

Good luck!

BR
Per


On 24 Dec., 06:51, Jags <jag...@gmail.com> wrote:
> Thanks a ton IV, I am happy as long as I get some relevant
> solution :) .
>
> 1. Beep, means I did not mean default handset beep. I meant in my
> custom application i play a sound. if my hedset is paired when i am
> playing the sound in my custom application using Mediaplayer class,
> will it be heard in my headset ?
>
> 2. will i be able to capture volume up/down key press in the headset
> in my application ? if yes how ?
>
> regards
>
> On Dec 24, 5:53 am, Indicator Veritatis <mej1...@yahoo.com> wrote:
>
> > Yes, that is right. You did not get your point across properly. You
> > are doing better in this post, though, despite the disappointing typo
> > of '[oint' for 'point'.
>
> > But if you do know that the beep is "at headsets[sic] control", why
> > you even asking where it is? That makes no sense.
>
> > The truth of the matter is that the Bluetooth spec does not mandate
> > the beep. The implementer may chose to do it in the headset software,
> > as it is the only choice that makes sense: otherwise the user gets no
> > audio feedback to know that pairing just happened. The only feedback
> > that the Android application gets is that now the headset is listed in
> > the list of bound devices returned by getBondedDevices().
>
> > That is, you can sense when the headset was paired by polling
> > getBondedDevices(), but you cannot cause the beep, nor can you sense
> > when the headset does its own beep. You can only rely on what the
> > headset manufacturer chose to implement in their own Bluetooth code.
>
> > On Dec 22, 9:52 pm,Jags<jag...@gmail.com> wrote:
>
> > > thanks IV,
>
> > > I guess i could not put my [oint across properly. Beep is at headsets
> > > control, i know. Now when the headset is paired, and my custom
> > > application plays a beep, does it automatically beep in the headset or
> > > in the handset ? if it automatically beeps in the headset, good, if
> > > not what can i do in my custom app to make the beep heard in the
> > > headset ?
>
> > > more to that i also need to capture some keypress volume up and down
> > > from the headset in my application
> > > will I be able to do that in my application ? how ? documentation is
> > > not clear on this !
>
> > > thanks and regards
> > > Jagat
>
> > > On Dec 17, 10:57 am, Indicator Veritatis <mej1...@yahoo.com> wrote:
>
> > > > I don't know why this thread is getting spam, but I can offer a guess
> > > > why you are not getting answers. Your questions seems to strongly
> > > > imply you have not studied the basics of how to do Bluetooth (whether
> > > > on Android or not). Specifically, the beep you are interested in
> > > > controlling is under the headset's control: it is NOT controllable
> > > > from Android. Nor should it be, so don't wait for it to be added in a
> > > > future version.
>
> > > > On Dec 16, 1:21 am,Jags<jag...@gmail.com> wrote:
>
> > > > > is this message a spam ? Nobody is able to see my message or what ?
> > > > > dont get answers, only get spams posted in the forum !
>
> > > > > On Dec 16, 11:03 am, "hanika" <han...@securitywall.in> wrote:
>
> > > > > > hi
>
> > > > > > Thanks & Regards,
> > > > > > cid:image002....@01CA2AEF.10F60770
> > > > > > Vijay Patel
> > > > > > Test Engineer
> > > > > > Elitecore Technologies Ltd.
> > > > > > 904, Silicon tower, off C.G Road, Ahmedabad-380 006 Gujarat (INDIA),
> > > > > > Tel: +91-79-66065606 | HYPERLINK
> > > > > > "mailto:vijay.pa...@elitecore.com"vijay.pa...@elitecore.com
> > > > > > HYPERLINK "http://www.cyberoam.com"www.cyberoam.com
> > > > > > P    Please do not print this email unless it is absolutely 
> > > > > > necessary.
> > > > > > Spread environmental awareness.
>
> > > > > >  image001.jpg
> > > > > > 2KViewDownload

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to