[android-developers] check connectivity from a widget

2011-06-08 Thread ABSOLUT
Hi, I have an application with a widget. I'm trying to check connectivity (if 3g or wifi is on) every update of the widget. I'm trying to put these code in onupdate method of the widget but it says me method getSystemService(String) is undefined. ConnectivityManager manager =

Re: [android-developers] check connectivity from a widget

2011-06-08 Thread Nikolay Elenkov
On Wed, Jun 8, 2011 at 6:11 PM, ABSOLUT davidt...@gmail.com wrote: Hi, I have an application with a widget. I'm trying to check connectivity (if 3g or wifi is on) every update of the widget. I'm trying to put these code in onupdate method of the widget but it says me method