Get SSID Android #13707
-
Hello everyone. I need to get the Android SSID. But It's always returning unknown ssid. After some research at internet, I've found that it should be a permission issue, so I've added the required permissions at manifest and main without success. Following the code I'm using.
Top of my main: [assembly: UsesPermission(Name = "android.permission.ACCESS_WIFI_STATE")] My manifest:
And finally the result: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
I've already accomplished the task. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Just because I hate to find unanswered questions with this kind of message I will add the answer here for future people looking on how to do this... remember that you need to have the location enabled from API 27 (Android 8.1) you need to have just ACCESS_COARSE_LOCATION but from API 29 (Android 10) and on you need both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION
|
Beta Was this translation helpful? Give feedback.
Just because I hate to find unanswered questions with this kind of message I will add the answer here for future people looking on how to do this...
remember that you need to have the location enabled
from API 27 (Android 8.1) you need to have just ACCESS_COARSE_LOCATION but from API 29 (Android 10) and on you need both ACCESS_COARSE_LOCATION and ACCESS_FINE_LOCATION