Tman21 / open-gpstracker

Automatically exported from code.google.com/p/open-gpstracker
0 stars 0 forks source link

Let me use bluetooth/wired headset button to make audio waypoint. #271

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'd like to be able to add audio waypoint by just pressing headset button.

I'm unsure if it's at all possible especially if phone is locked at the time 
the button is pressed.

But it would be quite useful for audio mapping, see 
http://wiki.openstreetmap.org/wiki/Audio_mapping

This feature can be used to make some notes during driving a car, riding a bike 
or just walking around without any need to touch the phone.

Recording length can be set up to some configurable value (say, 5 sec) or 
determined by silence period. The latter probably won't work on the noisy 
places so we'll anyway need a default maximum recording length.

Original issue reported on code.google.com by mdan...@yandex.ru on 20 Sep 2011 at 7:51

GoogleCodeExporter commented 9 years ago
Will probably rely on vendor named event:
http://developer.android.com/reference/android/bluetooth/BluetoothHeadset.html

Or wired headset with Intent.ACTION_MEDIA_BUTTON
http://groups.google.com/group/android-developers/browse_thread/thread/1c64cf65f
87c9895/1d9464c96b91dbd8?show_docid=1d9464c96b91dbd8

Original comment by rcgr...@gmail.com on 17 Oct 2011 at 7:38