com.baidu.sapi2.loginshare
类 Utils
java.lang.Object
com.baidu.sapi2.loginshare.Utils
public class Utils
- extends Object
方法摘要 |
static Proxy |
getProxy(android.content.Context context)
根据当前网络状态填充代理 |
static boolean |
hasActiveNetwork(android.content.Context context)
判断是否有可用网络 |
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_WAP
public static final int TYPE_WAP
- 另请参见:
- 常量字段值
TYPE_NET
public static final int TYPE_NET
- 另请参见:
- 常量字段值
TYPE_UNKNOWN
public static final int TYPE_UNKNOWN
- 另请参见:
- 常量字段值
WAP
public static final String WAP
- 另请参见:
- 常量字段值
NET
public static final String NET
- 另请参见:
- 常量字段值
http
public static final String http
- 另请参见:
- 常量字段值
https
public static final String https
- 另请参见:
- 常量字段值
PROXY_IP
public static final String PROXY_IP
- 另请参见:
- 常量字段值
DEFAULT_PROXY_PORT
public static final int DEFAULT_PROXY_PORT
- 默认的代理端口号
- 另请参见:
- 常量字段值
Utils
public Utils()
hasActiveNetwork
public static boolean hasActiveNetwork(android.content.Context context)
- 判断是否有可用网络
- 参数:
context
-
- 返回:
getProxy
public static Proxy getProxy(android.content.Context context)
- 根据当前网络状态填充代理
- 参数:
context
-
Copyright © 2013. All Rights Reserved.