标签:ext blog network cte available 判断 system work style
private boolean isNetworkConnected(Context context) { ConnectivityMannger cManager = (ConnectivityMannger)context.getSystemService(Context.CONNECTIVITY_SERVICE); NetworkInfo nInfo = cManager.getActiveNetworkInfo(); if(nInfo != null && nInfo.isAvailable()) { return nInfo.isConnected(); } return false; }
标签:ext blog network cte available 判断 system work style
原文地址:http://www.cnblogs.com/Memory7/p/6626083.html