WaitForInternet – Best way to check the internet connection

WaitForInternet - Best way to check the internet connection

WaitForInternet – Best way to check the internet connection

Author
Alberto Iglesias
Release
2019-09-12
Version
2.0.0
Requirement
B4A

£3.99

WaitForInternet – Best way to check the internet connection

SKU: B4ALIBWFTI Category: Tag:

Product Description

This library was inspired and based on WaitForTheInternet by César Pérez
https://github.com/ouvigna/WaitForTheInternet

 

Your application will be able to get through an event, as it connects to the internet via Wifi or 3G, without the need to be checking all the time, not consuming battery unnecessarily.

Installation instructions:
– Copy the .xml and .jar(s) files to your custom libraries folder
– Select in your REFERENCED LIBRARIES

WFI4

Events:

  • onInitialized ()
  • onReceived (Action As String, WifiAvailable As Boolean, WifiConnected As Boolean, WifiRoaming as Boolean , MobileAvailable As Boolean, MobileConnected As Boolean, MobileRoaming as Boolean, ExtraNetworkInfo As String, HostFound as Boolean)

Fields:

  • JavaDebug As Boolean
  • PingHost As String
  • PingHostOnReceive As Boolean
  • PingResult As String

Methods:

  • About As String
  • ForcePing As Boolean
  • Initialize (eventname As String)
  • Version As String
  • isConnectedToInternet As Boolean

Permissions:

  • android.permission.ACCESS_NETWORK_STATE
  • android.permission.ACCESS_WIFI_STATE
  • android.permission.INTERNET

Code ScreenShot Example:

WFI2

WFI1

* In the Full Version, you have a double check for then internet connection over the ping method to bypass Captive Portals and have a ForcePing Method to check the host connect in any time you want.

WFI3

Library
Sample

 

 

BEFORE PAY ANY LIBRAY, YOU CAN TEST THE LIBRARY TO MAKE SURE WILL BE WORK FOR YOUR PROJECT