I see开发者_Go百科 this thread but it could not help me much.Use ConnectivityManager and getActiveNetworkInfo().
精彩评论