Example usage for android.net ProxyInfo ProxyInfo

List of usage examples for android.net ProxyInfo ProxyInfo

Introduction

In this page you can find the example usage for android.net ProxyInfo ProxyInfo.

Prototype

@UnsupportedAppUsage
public ProxyInfo(String host, int port, String exclList) 

Source Link

Document

Create a ProxyProperties that points at a HTTP Proxy.

Usage

From source file:android.net.ProxyInfo.java

/**
 * Constructs a {@link ProxyInfo} object that points at a Direct proxy
 * on the specified host and port.//  ww w .ja v  a2s.  c  om
 */
public static ProxyInfo buildDirectProxy(String host, int port) {
    return new ProxyInfo(host, port, null);
}