Sujet : Re: home screen icon to connect to wi-fi network
De : usenet (at) *nospam* andyburns.uk (Andy Burns)
Groupes : comp.mobile.androidDate : 30. Sep 2024, 09:04:29
Autres entêtes
Message-ID : <llv4ccFag9pU1@mid.individual.net>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
Enrico Papaloma wrote:
If no app exists, that's fine - but the COMMANDS must be happening on the
phone, and therefore that series of commands must be known to somebody.
Do you have any advice as to how to find what those commands are to connect
to a known access point when that access point is hidden.
I did have a look at the APIs
<
https://developer.android.com/reference/android/net/wifi/WifiManager>
But I couldn't find a straightforward call like
wm = getSystemService(WIFI_SERVICE);
wm.setWifiEnabled(true);
wm.connectToSSID("whatever");
It might require code like this
<
https://gist.github.com/cp-radhika-s/74d2eb717bad62f39d28a8727708af9c>