W3C home > Mailing lists > Public > public-device-apis@w3.org > July 2010

navigator.connection, navigator.onLine in Android 2.2

From: Dominique Hazael-Massieux <dom@w3.org>
Date: Thu, 08 Jul 2010 09:42:53 +0200
To: public-device-apis@w3.org
Message-ID: <1278574973.7409.1034.camel@localhost>
Hi,

According to [1], the Android 2.2 browser brings a new API to describe
network connections: 
        There is a property to query about the current connection type:
        navigator.connection.type. There is also a navigator.connection
        enumeration, having the possible values: UNKNOWN, ETHERNET,
        WIFI, CELL_2G, CELL_3G. […]
        The boolean navigator.onLine can be used to know if the device
        is connected or not to the web  […]. Events like ononline and
        onoffline are working fine to detect changes in the connection
        (even when we change from 3G to WIFI, the online event is
        fired).

Given that these are features that are supposed to be handled by our
interfaces in SysInfo, it would be useful to see if and how we can get
convergence on these.

Dom

 1.
http://www.mobilexweb.com/blog/android-froyo-html5-accelerometer-flash-player
Received on Thursday, 8 July 2010 07:43:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:14:11 GMT