cobub / razor

Cobub Razor - Open Source Mobile Analytics Solution
http://www.cobub.com
1.13k stars 431 forks source link

NETWORK_TYPE判断 #76

Closed NMZXYCDRL closed 11 years ago

NMZXYCDRL commented 11 years ago

https://github.com/cobub/razor/blob/master/sdk/android_sdk/SDK/src/com/wbtech/ums/common/CommonUtil.java getNetworkType判断NETWORK_TYPE的时候有10种类型,而这里 http://developer.android.com/reference/android/telephony/TelephonyManager.html NETWORK_TYPE有16种 如果匹配不上的话,剩下6种就会变成是UNKNOWN了,如果可以的话,这个判断可以处理的严谨一点

rockiee281 commented 11 years ago

我自己改过一些,欢迎围观: https://github.com/rockiee281/razor/commit/95efa72fac36b71f4bd285b14f5fd6228d50ccf9#sdk/android_sdk/SDK/src/com/wbtech/ums/common/CommonUtil.java

稍后发给patch给同学们

cobub commented 11 years ago

感谢,问题已解决.但是相当的枚举值直接用了整数,是为了低版本SDK的兼容性.