How can you set the http proxy programmatically?

后端 未结 6 1928
暗喜
暗喜 2020-12-06 05:30

I\'m looking for a programmatic way to set-up http proxy settings for android handsets. I\'ve tried using android.provider.Settings.System.putString() to set System.HTTP_PR

6条回答
  •  一生所求
    2020-12-06 06:09

    If you are limiting the use of proxies to your own application you can use the Proxy and ProxySelector API.

提交回复
热议问题