aspose file tools
The moose likes Android and the fly likes Configuring the proxy from code Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Configuring the proxy from code" Watch "Configuring the proxy from code" New topic
Author

Configuring the proxy from code

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 84
Hi,
I have a requirement like as following

Now I am able to browse the web from the emulator after I configure the proxy from "settings -> wireless network -> Mobile network -> Access Point name -> Telkila -> proxy".Now I came to know that proxy configuration can also be done by inserting (99,'http_proxy','<proxy_host>:<proxy_port>') in /data/data/com.android.providers.settings/settings.db.system table.So I inserted the following row (99,'http_proxy','10.203.227.227:80').But after inserting this I am unable to browse the web through the emulator.My strategy was like inserting this row from my code.But this doesn't seem to be working.Is there any other way that I can configure proxy settings from code.Please help me on this as I am struggling a lot on this.And sorry for repeating the same post.But it is very urgent need.
Regards,
Arka
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1365

Search this forum for similar discussions, you should be able to find answer. I assure you this has been asked many a times before.


[List of FAQs] | [Android FAQ] | [My Blog] | [Samuh Varta]
 
 
subject: Configuring the proxy from code
 
Threads others viewed
Unresolved Host Exception
Generated Stub and Proxy Settings !!
Inserting proxy settings in system tables is not working
Proxy settings for Emulator
Error in setting SecureRMIClientSocketFactory
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture