0

I see this thread but it could not help me much.

Community
  • 1
  • 1
Bao Le
  • 16,643
  • 9
  • 65
  • 68

1 Answers1

2

Use ConnectivityManager and getActiveNetworkInfo().

CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
  • @CommonsWare getActiveNetworkInfo() is returning NULL for me in android 2.2(WIFI is enabled and am able to browse internet). Is there any solution? – Sandeep Nov 30 '12 at 11:30