B4A Library A library to test quality and type of network connection.

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:
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
 

Attachments

  • testnetwork.zip
    7.9 KB · Views: 301
Top