Detect Proxy Settings in Your App with Android Proxy Library

Detect Proxy Settings in Your App with Android Proxy Library

Over the years, the process for connecting Android devices to proxy servers has changed dramatically. Originally only supporting global configuration, now configurations can be set on a per access point basis. Furthermore, applications such as OpenVPN can work globally on devices running Ice Cream Sandwich and later.

So what do you do if you’re building an application and you want your to know a user’s proxy configuration? Up until now, this would be a pretty difficult task. Luckily, XDA Forum Member lechuckcaptain has already gone through the hassle so that you don’t have to. He has created a library to do this for you, regardless of the user’s Android version supporting from 1.x through 4.x. The library began with determining current proxy configuration, but has now grown to also ascertaining proxy status and other relevant information.

Head over to the library thread and visit lechuckcaptain’s Github to get started.

About author

Will Verduzco
Will Verduzco

Will Verduzco is the former Editor-in-Chief and Portal Administrator of the XDA-Developers Portal. He has been addicted to mobile technology since the HTC Wizard. But starting with the Nexus One, his gadget love affair shifted to Google's little green robot. You can now find Will writing for the Swappa Blog, though he still pops up on XDA from time to time.