I'm trying to make an app that lets the user create voice notes. However, I want to run it in the background so that they can make notes while performing another task. For example, at some point during their voice note, they may want to go into Google Maps to check an address or directions or something, for their voice note.
I have that part working, however, whenever I try to use voice search in Google Maps (or use the microphone in any other application), I get an error, presumable because two apps are trying to use the microphone at the same time.
Is there a way to either allow two apps to use the mic at the same time (I don't really understand why it isn't possible to have two readers accessing one resource in the first place), or at least give up control of the mic from my app while the other app wants it? If my voice note has a pause in it for the 2 seconds the user is saying "McDonald's" in Google Maps, I can live with that.