红米手机上(Android 4.4)在系统设置里禁用了录音权限,录音没有声音
黄舟
黄舟 2017-04-17 15:30:27
0
3
918

在应用里权限管理里面禁用了录音权限,录音时不报错,但是录音的音频文件是没有声音的,怎么判断下?

试过 contextcompat.checkselfpermission 方法不好使,怎么解决呢?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
黄舟

It’s not a problem with Redmi. It’s the same with other phones. You can’t record without permission

小葫芦

Permission control is newly added by M. This method will not take effect. The effective method can only be done by judging some null and 0 values. However, I don’t know how to do the recording. In the past, when the geographical location encountered no permission, it was judged by the obtained value.

大家讲道理

http://blog.csdn.net/omrapollo/article/details/51150280
You can refer to this blog

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template