Well!!!
No reply from anyone
Anyway i googled and found out how to communicate through proxy.
I'm posting the code so that it will be useful for guys who comeup with same query....
Using java Syntax Highlighting
DefaultHttpClient httpclient = new DefaultHttpClient();
httpclient.getCredentialsProvider().setCredentials(
new AuthScope(proxyHost, proxyPort),
new UsernamePasswordCredentials(proxyUsername,
new String(proxyPassword)));
httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, hcProxyHost);
Parsed in 0.011 seconds, using
GeSHi 1.0.8.4
This will solve that problem.
One more thing, if you get "unknow error" in exception...
may be due to emulator settings, or your program permission setting...
You will get exact exception message only when there is some thing wrong in your code .....
And i have learnt this .... try searching you'll find solution for the problem by yourself.