Friday, June 22, 2012

[android-developers] ICS : Create a proxy to catch html file and modifying it

Hello !

I want to set up a proxy in code on my Galaxy Tab, with ICS, to catch
some html file and write content in it before it is read by the web
browser.

I have trouble to create the proxy and have no idea how to do the
catch stuff. Can't some can help me or give me some advices ?

Here is how I set up the proxy :

"Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(
"127.0.0.1", 8080));

HttpURLConnection myconnection = (HttpURLConnection)
url.openConnection(proxy);
myconnection.connect(); "

Thank in advance !

MegamanX

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate