Background Access to Microphone in Android

邮差的信 提交于 2020-01-14 19:05:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!