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.
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