Android Question How to figure out SSID that Android connected to?

QSerg

Member
Again!

There are few threads on the topic, but they related to newer Androids like 8+ and sometimes stated that yet again it will not work on Android 10.
I have older devices (hand held scanners) that running Android 7.1.1 and I like to figure out SSID programmatically. So there are two questions:
1. Is there method that going to work on all (or as least vast majority) Androids? It is quite annoying continuously change code.
2. If 1 does not exist could anyone tell me how I can achieve my results (i.e. figure out SSID) on Android 7.1.1?

Thanks in advance.
QSerg
 

QSerg

Member
Hi Erel,

Thanks one more time - those piece of code working like charm.
Though another question - how to intercept when SSID get changed?

Thanks in advance
 
Upvote 0

QSerg

Member
You can listen to the ConnectivityChanged event with PhoneEvents.

Another option is to check the current ssid every X seconds.
Hi Erel,

I implemented "another option" though it is not as elegant as I like it to be. Will investigate ConnectivityChanged event.

Thanks for replay.

Serg
 
Upvote 0
Top