Code example for NetworkInfo

Methods: getExtraInfo, getTypeName

0
		NetworkInfo info = manager.getActiveNetworkInfo();
 
		if (info == null)
			return false; 
 
		String typeName = info.getTypeName();
		Log.v("NetworkType", typeName);
		// Log.v("NetworkType", info.getExtraInfo()); 
		if (typeName == "MOBILE" && info.getExtraInfo().equals("cmwap")) {
			isWap = true;
		} else { 
			isWap = false;
		} 
 
		return true; 
	} 
 
	/*** 
	 * 登陆系统 
	 *  
	 * @param context