Android 9限制了后台应用程序访问用户输入的能力。如果您的应用程序在运行Android 9的设备上后台运行,系统会对您的应用程序应用以下限制:
您的应用程序无法访问麦克风或摄像头。
当应用程序在后台时,有没有办法访问android 9中的麦克风?
发布于 2020-07-28 19:46:29
One more change was added in Android 9: only apps running in the
foreground (or a foreground service) could capture the audio input.
参考:https://developer.android.com/guide/topics/media/sharing-audio-input#pre-behavior
https://stackoverflow.com/questions/63130222
复制相似问题