network: Android 网络判断(wifi、3G与其他)(转)
摘要:
public class NetworkProber { /** * 网络是否可用 * * @param activity * @return */ public static boolean isNetworkAvailable(Context context) { ConnectivityManager connectivity = (ConnectivityManager) context .getSystemService(Context.CONNECTIVITY_SERVICE); if (connectivity == null) { } else { NetworkInfo[] 阅读全文
posted @ 2012-08-31 16:46 亭子 阅读(262) 评论(0) 推荐(0) 编辑