问题
Is it possible to be constantly monitoring the microphone from a background application (service?) on an Android phone?
Some idea of what I want to do:
- Listen constantly for an audible signal in the background.
- Upon receipt of 'interesting' audio signal, perform some network operation.
The background application must be able to intelligently relinquish access to the microphone should a foreground application require it (unless it can be shared?) - e.g. to make a call.
Is this possible?
回答1:
Recording audio is possible check out these links:
Record audio
Record audio
Got them from this post How to use the microphone on Android .
So I'm thinking it should be possible to record inside an background service. Don't got the time atm to verify it.
来源:https://stackoverflow.com/questions/10477547/background-access-to-microphone-in-android