Is it possible to detect that wifi has dropped or is disconnected ?
I used the ABWifi demo and when connected I got
msgbox value = "com.AB.ABWifi.ABWifi$ABWifiinfo@40fe2960"
Then I turned off wifi in Settings on the tablet and then rebooted the android tablet.
When I run the demo again I get the same value in the msgbox even though the network is off, but Opera browser fails to connect to internet.
What I really want to do is connect to internet website MySQL server and fetch live data,
but if out-of-range fallback to a stored randomaccess table which will be
updated from time to time via wifi when possible.
The user will be informed that the data is not live and will see a datestamp from the last update.
Would it be better to detect a Query failure or timeout and check an error code for "Timeout" than try to detect Wifi failure ?
I used the ABWifi demo and when connected I got
msgbox value = "com.AB.ABWifi.ABWifi$ABWifiinfo@40fe2960"
B4X:
Dim r As Boolean
r = myWifi.ABLoadWifi
Msgbox(myWifi.ABGetCurrentWifiInfo ,"")
Then I turned off wifi in Settings on the tablet and then rebooted the android tablet.
When I run the demo again I get the same value in the msgbox even though the network is off, but Opera browser fails to connect to internet.
What I really want to do is connect to internet website MySQL server and fetch live data,
but if out-of-range fallback to a stored randomaccess table which will be
updated from time to time via wifi when possible.
The user will be informed that the data is not live and will see a datestamp from the last update.
Would it be better to detect a Query failure or timeout and check an error code for "Timeout" than try to detect Wifi failure ?