I have a requirement like as following
if(condition){
//configure the proxy
}
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.
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.