2013年10月17日星期四

[Android] Bluetooth headset listening volume control key events

As can be seen from the system log , adjust the volume when the music changes ( Bluetooth headset ), log does not show anything , and no broadcast . During a call, adjust the volume can get some Bluetooth AT content such as:
D / Bluetooth HeadsetBase (1774): Processing AT + BRSF = 59 took 3 ms
D / Bluetooth HeadsetBase (1774): Processing AT + CIND =? took 1 ms
D / Bluetooth HeadsetBase (1774): Processing AT + CIND? took 0 ms
D / Bluetooth HeadsetBase (1774): Processing AT + CMER = 3, 0, 0, 1 took 1 ms
D / Bluetooth HeadsetBase (1774): Processing AT + CHLD =? took 1 ms
D / Bluetooth HeadsetBase (1774): Processing AT + CCWA = 1 took 1 ms
D / Bluetooth HeadsetBase (1774): Processing AT + VGS = 12 took 11 ms / / get the sound changes
D / Bluetooth HeadsetBase (1774): Processing AT + VGM = 09 took 0 ms


How to get by an activity such content .
------ Solution ---------------------------------------- ----
landlord Hello I have come to ask for my program with Intent.ACTION_MEDIA_BUTTON how listeners than Bluetooth headsets do find a lot of key events Where data did not solve this problem you do ?
------ eference --------------------------------------- < br> 100 minutes nobody said two do help ah
------ eference ------------------------- --------------
  The reply deleted by an administrator at 2013-03-10 21:14:19

------ eference ------------------------------------ ---
you use the terminal to see phone system log will find that when the Bluetooth headset volume control without any press down the log . You said that the intent of the wire can be monitored .
------ eference --------------------------------------- < br> I also want to monitor the Bluetooth headset volume control button. Read some information found only Android phone through the at command to listen and respond to the button . Others do not find .
Also, how to get a Bluetooth headset bluetoothserversocket and bluetoothsocket all messages sent by it .
------ eference --------------------------------------- < br> no one answered it ~ ~ ~
------ eference ------------------------------- --------
not know the landlord is received at the LOG , and I tried not out of the LOG, for help.
------ eference --------------------------------------- < br> If you want to get inside ACTIVITY LOG class should have.
------ eference --------------------------------------- < br> code to get these events , you can listen LOG
------ eference ----------------------- ----------------
Hello landlord, I would like to ask , how did you get the AT command , seeking advice.
------ eference --------------------------------------- < br> you are in eclipse debug window you can see your Bluetooth headset button is pressed , the print out Log wants
------ eference ------------ ---------------------------
landlord now there are ways to get in ACTIVITY aT commands do .
------ eference --------------------------------------- < br> rfcomm Bluetooth connection established , access to input and output streams , you can get Bluetooth at command , and you can listen to distinguish the Bluetooth . Long time no posts looked up .

没有评论:

发表评论