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

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

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 08 Jul 2010 09:47:25 +0200
To: public-device-apis@w3.org, "Dominique Hazael-Massieux" <dom@w3.org>
Message-ID: <op.vfik8vse64w2qv@annevk-t60>
On Thu, 08 Jul 2010 09:42:53 +0200, Dominique Hazael-Massieux <dom@w3.org>  
> 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
Received on Thursday, 8 July 2010 07:48:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:32:22 UTC