Re: navigator.connection, navigator.onLine in Android 2.2

On Thu, 08 Jul 2010 09:42:53 +0200, Dominique Hazael-Massieux <dom@w3.org>  
wrote:
> 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.

navigator.onLine has been part of HTML5 for a long time. The events too.


>  1.
> http://www.mobilexweb.com/blog/android-froyo-html5-accelerometer-flash-player


-- 
Anne van Kesteren
http://annevankesteren.nl/

Received on Thursday, 8 July 2010 07:48:12 UTC