How can I detect if WiFi
is switched on to decide whether to transfer data to the server via android client or not?
On the android device using web services, first the android device checks that WiFi
is on or off, and when the WiFi
is switched off data should be stored in database or some other resource and as soon as the WiFi is turned on/or become available data should be started to transfer to the server.
What should be used to implement this?