0

I'm writing a mobile website for Chrome mobile and would like to detect if the user is connected to the internet via wifi or 3g. Is that possible?

johnny
  • 8,696
  • 6
  • 25
  • 36
  • By web app do you mean an Android app that wraps a `WebView` or straight up a website that users need to access via Chrome? If the latter, I dont think Madison's response is what you are looking for... – Salil Pandit Jul 22 '12 at 23:07
  • Sorry, I should have clarified that. It's a mobile website, not a website wrapped in an app. – johnny Jul 24 '12 at 09:21

1 Answers1

1

Take a look at this thread: ANDROID: if WiFi is enabled AND active, launch an intent . I think you might find what you are looking for.

Community
  • 1
  • 1
Madison May
  • 2,723
  • 3
  • 22
  • 32