Skip to content


Developing with Android SDK – Part 3: Outmaneuver the proxy settings under SDK 2.1

Ok, let’s make it pretty quick. After going through resources about using proxy settings in the Android SDK of version 1.6 or higher (2.1 in my case …). I came across this post.

At first it looks like waving the white flag, but reading it until the end there is a programmatic solution to hack the proxy settings:

System.setProperty("http.proxyHost", "myProxyHost");
System.setProperty("http.proxyPort", "myProxyPort");

This indeed seems to be the solution to get your application communicating via a certain proxy. But note: these settings then are only valid in your application.

Posted in Java, Mobile, Programming.

Tagged with , , .

Share it

One Response

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

Continuing the Discussion

  1. Tweets that mention New blog post: Developing with Android SDK - Part 3: Outmaneuver the proxy settings under SDK 2.1 ( -- Topsy.com linked to this post on 9. April 2010

    [...] This post was mentioned on Twitter by Peter Osburg. Peter Osburg said: New blog post: Developing with Android SDK – Part 3: Outmaneuver the proxy settings under SDK 2.1 (http://bit.ly/aFReai) [...]