views:

46

answers:

1

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

A: 

Use ConnectivityManager and getActiveNetworkInfo().

CommonsWare