sundeep
sundeep

Reputation: 601

programmatically setting proxy for webview in android

How to set proxy for a webview programmatically which works for all api's in android. Any example code or sources would be helpful.

Upvotes: 1

Views: 3139

Answers (1)

pdj
pdj

Reputation: 221

Check this: WebView android proxy

HttpHost can be created like:

HttpHost proxy = new HttpHost("someproxy", 8080);

And pased to the method written in the link.

Hope it helps,

Upvotes: 1

Related Questions