labexp / osmtracker-android

GPS tracking tool for OpenStreetMap
GNU General Public License v3.0
486 stars 231 forks source link

FR: Enable Voice Note during Lock #71

Open JuStTheDev opened 7 years ago

JuStTheDev commented 7 years ago

When I travel on my bike I'd like to take notes with the microphone of my headset. When the screen is on I can trigger a recording with the button at the headset. When the screen is locked this is not possible. Would be nice to have.

pkoby commented 5 years ago

I second this desire. In addition, I noticed that you cannot record a note with the microphone button if you're viewing the map in the app either. However, you can record on a page without a record button on it.

I think to allow recording under any circumstances, the app might need to create a notification bar? Then the headset mic would apply to that, not the app. I assume this is how it's done for other audio apps. Also, then you could record when you're looking at another app (mapping something else, checking other datasets, using StreetComplete, etc.).

I looked around, and I don't think there are any apps to record clips of a set duration with geotagging with screen off, so this would be awesome to have.

mnalis commented 3 years ago

It should be possible to do, though.

On my Android 10 with USB-C wired headset, opensource apps like VLC and NewPipe can handle headset button press even when screen is locked and off. So it should be possible to find out how they do it and implement it in OSMTracker too.