我如何创建代理服务器来监视我的 android 中的用户..
我尝试使用此代码创建代理服务器..但是没有被创建..我做错了什么请说明..
public void setProxy(DefaultHttpClient httpclient) {
final String PROXY_IP = "127.0.0.1";
final int PROXY_PORT = 8080;
httpclient.getCredentialsProvider().setCredentials(
new AuthScope(PROXY_IP, PROXY_PORT),
new UsernamePasswordCredentials(
"root", "password"));
HttpHost proxy = new HttpHost(PROXY_IP, PROXY_PORT);
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY,
proxy);
}