internet (3)


Learn how you can check if your Android app is connected to network

Inject “CheckConnec” Java bridge in your Hybrid web app using JavaScript




Network Information Web API

Web JavaScript APIs that you can use in WebKit WebView Android for your applications web oriented

See this example to get network type and max download



var getconnection = window.navigator.connection, connectiontype = getconnection.type;
var maxdownload = getconnection.downlinkMax
var logConnectionType = function(){
alert('Connection type: ' + connectiontype + 'Max Download: ' + maxdownload);
}
logConnectionType();
navigator.connection.addEventListener('change', logConnectionType);


Demo jsfiddle: https://jsfiddle.net/15wy4pa6/




HTML5 API Speed Test

An example of a Google Gauge Chart with SpeedOf.Me API Consumer to get HTML5 Internet Speed Test