Hi everybody,
I wrote my second library in a couple of hours this morning. I wrote because I need instant network status, without waiting for a network change event.
It consists of a single method, which returns a string. If the string is "WIFI" the android is connected to a wifi network. In case of no connection it reports a zero length string(""). The other strings reported are specific to device and are "UMTS" "HDSPA" and other values.
Example:
I include a sample which every 10 seconds displays the result of the method.
Have a nice WE!
Mauro Zanin
I wrote my second library in a couple of hours this morning. I wrote because I need instant network status, without waiting for a network change event.
It consists of a single method, which returns a string. If the string is "WIFI" the android is connected to a wifi network. In case of no connection it reports a zero length string(""). The other strings reported are specific to device and are "UMTS" "HDSPA" and other values.
Example:
B4X:
Dim nt As networkstatus
ToastMessageShow(nt.haveNetworkType,True)
I include a sample which every 10 seconds displays the result of the method.
Have a nice WE!
Mauro Zanin