com.baidu.sapi2.loginshare
类 Utils

java.lang.Object
  继承者 com.baidu.sapi2.loginshare.Utils

public class Utils
extends Object


字段摘要
static int DEFAULT_PROXY_PORT
          默认的代理端口号
static String http
           
static String https
           
static String NET
           
static String PROXY_IP
           
static int TYPE_NET
           
static int TYPE_UNKNOWN
           
static int TYPE_WAP
           
static String WAP
           
 
构造方法摘要
Utils()
           
 
方法摘要
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.