Hi all,
I got solution for that. Give proxy value as input to the
url.openConnection(p); API. Now i am able to access the internet.
InetAddress in = null;
try {
in = InetAddress.getByName("proxyip");
} catch (UnknownHostException e) {
// .. whatever
}
HttpURLConnection urlConnection = null;
SocketAddress s = new InetSocketAddress(in, 8080);
Proxy p = new Proxy(Type.HTTP, s);
URLConnection cn = url.openConnection(p);
->Amsa
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en