我正在询问来自 android 设备的连接类型,但我不知道 wimax 是什么类型。
ConnectivityManager conMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo[] networkInfos = conMgr.getAllNetworkInfo();
if (networkInfos != null) {
for (NetworkInfo networkInfo : networkInfos) {
if (networkInfo.getType() == ConnectivityManager.TYPE_WIMAX){
// what type is this? 2G, 4G?. It is not wi-fi, nor bluetooth
}
}
}