How to get wifi scan result on android marshmallow?

后端 未结 1 980
天命终不由人
天命终不由人 2021-01-26 18:16

I want get wifi scan result on my marshmallow device.
First, my area have many wifi ap.
If get wifi scan result on marshmallow device. add ACCESS_COARSE_LOCATION

1条回答
  •  抹茶落季
    2021-01-26 18:38

    Because your calling it inside the else statement of the if(permission == denied)

    Your result = getScanWifiResult() should be outside the permissions if-else statement.

    0 讨论(0)
提交回复
热议问题