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>
ACCESS_COARSE_LOCATION>
Because your calling it inside the else statement of the if(permission == denied)
else
if(permission == denied)
Your result = getScanWifiResult() should be outside the permissions if-else statement.
result = getScanWifiResult()