5,595,339 Members 48,390 Now Online
XDA Developers Android and Mobile Development Forum

[LIBRARY] APL - Android Proxy Library

Tip us?
 
lechuckcaptain
Old
#1  
lechuckcaptain's Avatar
Junior Member - OP
Thanks Meter 9
Posts: 14
Join Date: Dec 2010
Post [LIBRARY] APL - Android Proxy Library

APL (Android Proxy Library) is a library that makes it easier for app developers get the proxy settings from an Android device.

I decided to make this library when I realized that Android didn't have a standard and simple support to proxy networks that can support all the API versions (more information here). So, the first goal was to add an agnostic method to get the current proxy configuration of the device. After that, I continued adding features to the library in order to get and check proxy configuration, status and other related informations.

Anyway, here it is on GitHub: https://github.com/shouldit/android-proxy-library

The code is not so well documented, but please be patient, it's not my full time job !

I would really appreciate any feedback, comment, issue you may find, so please just write a couple of rows to me or into the GitHub Issues page.

Bye!
The Following 7 Users Say Thank You to lechuckcaptain For This Useful Post: [ Click to Expand ]
 
redders6600
Old
#2  
Junior Member
Thanks Meter 1
Posts: 18
Join Date: May 2010
This looks really useful, but I am completely failing to get it imported into Eclipse successfully...

I have done:

file > import > general > existing projects into workspace

and

file > import > android > existing android code into workspace

Both with "copy files into workspace" checked and unchecked.

Every time, I get 1021 errors in the console with things like:

Code:
android.net.LinkProperties cannot be resolved to a type
What am I doing wrong? Is there some extra setup step that I missed?
 
lechuckcaptain
Old
#3  
lechuckcaptain's Avatar
Junior Member - OP
Thanks Meter 9
Posts: 14
Join Date: Dec 2010
Quote:
Originally Posted by redders6600 View Post
This looks really useful, but I am completely failing to get it imported into Eclipse successfully...

I have done:

file > import > general > existing projects into workspace

and

file > import > android > existing android code into workspace

Both with "copy files into workspace" checked and unchecked.

Every time, I get 1021 errors in the console with things like:

Code:
android.net.LinkProperties cannot be resolved to a type
What am I doing wrong? Is there some extra setup step that I missed?
You should exclude from the build of the library all the source files that are contained into the "excluded_from_build" folder. Those files are there only to have a fast reference for reflecting the Android source files.

Anyway I've on my todo list the task to provide an easily library package (aar). It should be ready soon.
lechuckcaptain

Follow me on GitHub
Tags
proxy http wi-fi library utility
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes