Android : How To Detect Bluetooth Headset Key Press

Apr 27, 2010

I'm new to Bluetooth programming and I was wondering if I had a Bluetooth headset that was paired to an Android phone. What's the best way to detect that a button was pressed? Are there modifiers to tell which kind of button it was (e.g. volume up/down, main button) or what kind of press it was(regular, long press etc).

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

Android : How to detect Bluetooth headset key press


Android :: How To Detect When Bluetooth A2DP Headset Connected?

Oct 23, 2009

I didn't find an API to detect if a Bluetooth A2DP is connected. Can somebody point me out how to check? It looks like if I route audio to Bluetooth A2DP without check, the sound will be routed anyway, and the speaker is turned off.

View 2 Replies View Related

Android :: Is There Way To Detect Physical Button Press?

Sep 16, 2010

I realize the Camera button on the Droid X is not a standard feature across all phones, so, I'm curious how to attach a callback to it. I have a camera application that I wrote and I want the user to be able to snap the picture by pressing that button, but currently it doesn't work that way, so, I'm wondering how to attach my callback to it.

View 1 Replies View Related

Android :: Detect Long Touch Press (action_down Only)?

Aug 30, 2010

I want to figure out how to detect that the user has been doing a long touch press on the screen? Most of the solutions that I see assume that the DOWN + UP sequence of events.

View 2 Replies View Related

Sony Ericsson Xperia X10 :: Bluetooth Query - Transfer A Call From A Headset Back To Phone And Phone To Headset?

Sep 10, 2010

I am a new SE user and am still getting to grips with using the phone's features. Could anyone advise how to transfer a call from a headset back to the phone and phone to headset? Whilst I am asking inane questions, is it possible to use the phone i.e. return to menu when in a call?

View 2 Replies View Related

General :: How To Disable Long Press Headset Button Activates Google Now

Oct 23, 2012

On ICS I used to skip songs on Poweramp using the headset button, but since I upgraded to Jellybean, the long press goes to Voice Search on Google Now? Is there a way to disable that? I already configured on Poweramp to use the long press, gave it high priority, but google voice continues taking place and there's no options there to disable it.

View 9 Replies View Related

General :: Long Press Headset Not Start Google Now When Screen Locked

Feb 20, 2013

Galaxy Nexus
Android Version: 4.2.2

Steps to reproduce the problem:

- plug in headset
- lock screen
- press headset button for several seconds

What happened:

- No reaction, Google Now / Voice Actions not launched
- Manually unlock screen
- Long press with unlocked screen correctly launches Voice Search

What you think the correct behaviour should be:

Long press of headset button should launch Google Now / Voice Actions even with locked screen. Having to dig the phone out of your pocket in order to launch Voice Actions with a headset e.g. to place a call kinda defeats the purpose of using Voice Actions in the first place.

Adding insult to injury: long press is not broadcast to other applications because of Google Now, so it can't even be put to good use e.g. as volume control.

This was open and ignored by code. [URL]... Issue 48616

View 9 Replies View Related

General :: Phone Will Not Detect Samsung WEP301 Headset

Mar 19, 2013

My phone will not detect my Samsung WEP301 headset. I've tried resetting, turning on/off etc. The headset pairs fine with my HTC G2 and my THL phone manages to detect other Bluetooth devices nearby.

View 2 Replies View Related

Android : How To Discovery A Bluetooth Headset

Aug 17, 2010

I write a sample code to discovery a Bluetooth headset(jabra BT2035). referece http://developer.android.com/guide/topics/wireless/bluetooth.html#DiscoveringDevices

But it can only discovery my notebook computer. If my notebook computer enables Bluetooth and sets Enabling discoverability.

The SDK document snippet:

android.bluetooth.device.action.FOUND"
public static final String ACTION_FOUND
Since: API Level 5
Broadcast Action: Remote device discovered.
Sent when a remote device is found during discovery. I think the remote device means a remote notebook computer except a Bluetooth headset. Could someone please help with this?

View 1 Replies View Related

Android :: How To Detect The Bluetooth Device?

Dec 20, 2009

How to detect the bluetooths device found?

View 2 Replies View Related

Android :: Bluetooth Headset Application / Say Command

Nov 19, 2009

I have a Motorola bluetooth headset and with my old Storm I could push the button on the headset and it would say "Say a command" from here I could say "Call John Doe mobile" and it would call him up. Haven't figured out how to make this work on the Droid in the same manner natively. Is it possible or is there an application. Purpose of bluetooth is to be hands free. Its not very hands free if I have to pull my phone out my pocket to dial the number first to be able to use the headset.

View 1 Replies View Related

Android :: How To Port All Audio To Bluetooth Headset?

Jul 15, 2010

How do I tell my droid X to port all audio to my headset? I used to do this with my windows mobile phone and I cannot seem to find the correct setting.

View 4 Replies View Related

Android :: How To Redirect Audio To Bluetooth Headset?

May 20, 2009

I met a problem of bluetooth headset. I want to switch audio playing to bluetooth headset when bluetooth headset is paired. I found BluetoothDevice in android sources which can control bluetooth. However it is not contained in android.jar. So I used AudioManager.setBluetoothScoOn(true)
But it still can't work.

View 16 Replies View Related

Android :: Playing Audio To Bluetooth Headset

Aug 18, 2010

Can we play the audio(amr file) to the Bluetooth headset(no A2DP support) by using android 2.1/2.2 version APIs? If so can you suggest me which API I have to use to do the same?

View 2 Replies View Related

Android :: Audio Recording From Bluetooth Headset?

Apr 9, 2009

I am developing a recorder application It works fine with Microphone. I want to record from Bluetooth headset. I set it like

my_Aud_Mgr.setMicrophoneMute(true);
//AudioManager my_Aud_Mgr;
my_Aud_Mgr.setBluetoothScoOn(true);

But it cant record from Bluetooth device. How to record from Bluetooth device.

View 2 Replies View Related

Android :: KeyCharacter Map Generation And Bluetooth Headset

Oct 11, 2010

I am facing a problem with Bluetooth Headset and KeyCharacter Mapping. When I press play/pause button from Samsung sbh-, its not getting reflected in Phone. I traced and came to know that, normally scan code of 164, keycode of 85 is formed when i press Headset play/pause. And PhoneWindow manager will intercept this and send ACTION_MEDIA_BUTTON if keycode =85 (KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE). But keycode that I'm getting is 0 even when i press headset play/pause in PhoneWindow Manager. Even in KeyInputQueue, the keycode that is obtained is 0. Does anybody when keycode gets generated?

View 3 Replies View Related

Android :: How To Record Sound Using Bluetooth Headset

Oct 26, 2010

I am writing an android app for storing and managing voice memos with some basic metadata and tagging.

When recording sound I use:

CODE:...................

This works well when using the phone in a normal fashion. However, it does not detect the presence of a bluetooth headset and still uses the phone's own microphone even when the headset is plugged in.

I also tried using MediaRecorder.AudioSource.DEFAULT, hoping it would automatically choose the correct source, but then no sound was recorded at all.

How can I a) detect if a bluetooth headset is plugged in and/or b) use a bluetooth headset as audio source for the media recorder?

View 1 Replies View Related

Android :: Bluetooth Headset Service Is Always Running?

Apr 4, 2009

On my phone, a dev phone, the bluetooth headset service is always running even though bluetooth connectivity is disable in the Settings app. Is this normal?

The ear speaker is not emitting any sound for maybe two weeks now, even if the on-call sound level is at max (5), so I'm checking a few things before I try to send back the phone for repair or exchange.

View 2 Replies View Related

Android : Bluetooth Headset Connection Establishment

Aug 13, 2010

I am using Bluetooth APIs to establish the connection. I using the Bluetooth chat application as a reference to communicate with the Bluetooth headset.

When I try to connect with Bluetooth headset I am getting IOException with the reason Connection refused.

Can any one tell me the reason for this exception if possible give me the solution if you already resolved the same.

Here is the code which i am using to establish the communication with the Bluetooth. And i also added the Bluetooth and Blutooth_Admin permissions to my manifest file. Code...

View 2 Replies View Related

General :: Call From PC Via Android (have Bluetooth Headset)?

May 21, 2012

Basically my Samsung Galaxy S2 gives me unlimited calls to mobiles/landlines and I want to make A LOT of calls throughout the day. I have a plantronics pro uc bluetooth headset which syncs up with my phone. I can send SMS and remote access the phone (too slow and clunky to make calls fast and simply).

What I want to be able to do is dial a number from my computer and my phone start call it. Essentially just want the phone on my computer. Paste a number in/dial it etc... click a link and the app/whatever call it.

(P.s. a remote desktop is not the solution as it is too slow - I tried that with MyMobiler. I have a skype number and can pay a small fee for unlimited landline calls but would have to pay for mobiles so this isnt a solution either).

View 2 Replies View Related

Android :: How To Detect State Change Of Bluetooth

Feb 19, 2009

I wanna write an app to enable and disable the Bluetooth device synchronized. Referring the Android source code, I registered following receiver to receive the bluetooth state change event:

CODE:............

But it doesn't work. Although the BT status has been changed (the icon of BT has been appeared or disappeared), the receiver could not receive nothing.

View 5 Replies View Related

Android :: How To Initiate Bluetooth HFP / A2DP Connection To Headset?

Aug 13, 2010

In my understand, Anroid app supports only SPP connection not HFP and A2DP. However, I want to initiate HFP and A2DP connection in Android app just like selecting Bluetooth device in Bluetooth Settings menu. I'm not sure it is possible to use a intent including BluetothDevice object, so the intent receiver can initiate HFP and A2DP connection. If you have a idea, could you let me know that?

View 1 Replies View Related

Android :: TTS Engine Output Connected Bluetooth Headset

Dec 14, 2009

Using Android 2.0 SDK. Is it possible to direct the TTS engine's output to a connected BT headset? I've tried with KEY_PARAM_STREAM set to all of the available stream types but the speech is still output by the speaker on the phone.

-- "An engineer's definition of done is the perfect set of code, and left to his own devices, an engineer will endlessly improve the code on the mythic journey to done." --

View 2 Replies View Related

Android :: Routing Audio To Bluetooth Headset API Level

Jun 27, 2010

if it was possible to route audio files from the phone to a bluetooth headset on versions of Android API Level 7 and under (so versions older than the new Froyo) If so, do you know of any sample code I could look at to figure out how to do this? Or perhaps just point me in the right direction?

View 2 Replies View Related

Android :: App To Play Media Through Mono Bluetooth Headset?

Nov 28, 2009

I see another post on this but it's a little outdated so I'm hoping there has been a recent development.Looking for a way to transmit audio from media (music, movies, audiobooks...not phone calls) to my standard bluetooth wireless device, which is not A2DP.This worked perfectly with no tweaks on my enV Touch so clearly it isn't a hardware issue, which by extension means there should be a software workaround, possibly in the form of a downloadable App.Anything that would work is cool though registry edits, whatever, I just desperately want to listen to audiobooks at work without buying a new headset!

View 10 Replies View Related

Android :: How To Record Audio Input To Bluetooth Headset?

Jul 22, 2010

Is it possible to record an audio (not a phone call) using the bluetooth input and not the device microphone? I am able to playback whatever am saying through device's mic but am not able to figure out how to use the bluetooth mic instead.

View 6 Replies View Related

Android :: Programmatically Connect To A Bluetooth Headset From An Application

Feb 4, 2010

I am looking for a way to initiate the audio connection between the Android phone and my headset within my application. The idea is to simplify the connection process in such a way that the user doesn't have to go through the different settings menus anymore (Apps -> Settings -> Wireless & Networs -> Bluetooth settings).

Both devices are supposed to be already paired and the Bluetooth address of the headset to be known.

As far as I learned, the Bluetooth capabilities (available since version 2.0 of the Android SDK) are restricted to Bluetooth discovery and the connection of RFComm channels (host/client) between the Android phone and a Bluetooth device. Is there another way to request Bluetooth profiles on the Android system to initiate a connection to a known device from an app or is this impossible?

View 1 Replies View Related

Android : Increase Microphone Volume - Bluetooth Headset?

Jul 30, 2010

Since two weeks, I am the happy owner of a HTC Desire. Great phone and I love Android! One issue though...

The microphone volume of my Bluetooth headset is on the low side. It's the same headset I used with my previous Windows Mobile phone and in that configuration I had no problems. I paired a different Bluetooth headset with the Desire, but no luck... the volume is still to low. The volume of the build-in mic is ok.

Does anybody know what I can do to increase the mic volume? Settings? App?

View 1 Replies View Related

General :: How To Turn Wired Headset To Bluetooth One Via Android

Jan 25, 2014

is there any app that allows you to "turn" a wired headset to a bluetooth one via android?

You might think to connect an android smartphone to a normal wired headset (such as those supplied with most phones) and to exploit its bluetooth connection to use it on pc/consoles/... Do you think that it is possible?

View 5 Replies View Related

General :: Android Bluetooth Headset In-call Dropout

Oct 21, 2013

I've been having issues with bluetooth headset dropout during a call. Pairing is never an issue, and the bluetooth connection is solid outside of a call, but during a call the bluetooth may drop out without warning. This means that while I'm talking to someone, there is no audible noise or visual cue that the connection has dropped and has defaulted back to the phone, and thus I'm relegated to a "hello? hello?" query before I check the handset and find out the caller was asking the same thing to my pocket (which also shows the devices are never more than, say 1.5m apart maximum when this happens).

As far as the phone is concerned, it's still 'connected' to bluetooth, as indicated in the dialer, and somehow isn't aware the connection has been dropped (or is and isn't showing). I thus need to redirect the audio via the UI either to the handset or speakerphone (away from the bluetooth connection it still think it's on), wait for the reroute to register, then redirect once again to the bluetooth to reestablish the connection. Again, without any audio cues the caller magically appears again on the headset, and we play the whole dropout game all over again. Connection duration seems arbitrary, lasting anywhere from 10s to a tens of minutes (with a 2-3 minutes on average).

This isn't isolated to any particular hardware, as I have had this occur on every one of my phones (Nexus S @ Android 3.x, stock and custom; Meizu MX @ Android 3.x - 4.x AOSP, OEM stock, and custom; HTC One @ Android 4.2.x - 4.3, stock only) and across all the headsets I've tried (Plantronics Discovery 925, LG HBM-585, Motorola H790), with Android being the common denominator. Note, I have used a Plantronics Discovery 655 and the same Plantronics Discovery 925 headset on my Nokia 8800 in the yesteryears, and have NEVER had connection or dropout issues.

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved