FileDocCategorySizeDatePackage
ProxyService.javaAPI DocAndroid 5.1 API2167Thu Mar 12 22:22:42 GMT 2015com.android.proxyhandler

ProxyService

public class ProxyService extends android.app.Service
hide

Fields Summary
private static ProxyServer
server
public static final String
KEY_PROXY
Keep these values up-to-date with PacManager.java
public static final String
HOST
public static final int
PORT
public static final String
EXCL_LIST
Constructors Summary
Methods Summary
public android.os.IBinderonBind(android.content.Intent intent)

        return new IProxyCallback.Stub() {
            @Override
            public void getProxyPort(IBinder callback) throws RemoteException {
                if (server != null) {
                    IProxyPortListener portListener = IProxyPortListener.Stub.asInterface(callback);
                    if (portListener != null) {
                        server.setCallback(portListener);
                    }
                }
            }
        };
    
public voidonCreate()


    
       
        super.onCreate();
        if (server == null) {
            server = new ProxyServer();
            server.startServer();
        }
    
public voidonDestroy()

        if (server != null) {
            server.stopServer();
            server = null;
        }