We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 36dcb2d + 6d183fc commit 45a79e4Copy full SHA for 45a79e4
androidframework/src/main/java/com/blankj/androidframework/utils/NetworkUtils.java
@@ -80,7 +80,7 @@ public static int getPhoneType(Context context) {
80
* 获取手机连接的网络类型(2G,3G,4G)
81
* <p>联通的3G为UMTS或HSDPA,移动和联通的2G为GPRS或EGDE,电信的2G为CDMA,电信的3G为EVDO
82
*/
83
- public static int getNetworkTpye(Context context) {
+ public static int getNetworkType(Context context) {
84
TelephonyManager tm = (TelephonyManager) context
85
.getSystemService(Context.TELEPHONY_SERVICE);
86
switch (tm.getNetworkType()) {
0 commit comments