提交 6d183fc7 编写于 作者: B Bhargav Mogra 提交者: GitHub

Fixed typo in method name

上级 36dcb2dc
......@@ -80,7 +80,7 @@ public class NetworkUtils {
* 获取手机连接的网络类型(2G,3G,4G)
* <p>联通的3G为UMTS或HSDPA,移动和联通的2G为GPRS或EGDE,电信的2G为CDMA,电信的3G为EVDO
*/
public static int getNetworkTpye(Context context) {
public static int getNetworkType(Context context) {
TelephonyManager tm = (TelephonyManager) context
.getSystemService(Context.TELEPHONY_SERVICE);
switch (tm.getNetworkType()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册