http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=core/java/android/net/http/RequestQueue.java
Code looks like this, there's your smoking gun. :-)
401 /**
402 * Because our IntentReceiver can run within a different
thread,
403 * synchronize setting the proxy
404 */
405 private synchronized void setProxyConfig() {
406 if (mNetworkStateTracker.getCurrentNetworkType() ==
ConnectivityManager.TYPE_WIFI) {
407 mProxyHost = null;
408 } else {
409 String host = Proxy.getHost(mContext);
410 if (HttpLog.LOGV) HttpLog.v
("RequestQueue.setProxyConfig " + host);
411 if (host == null) {
412 mProxyHost = null;
413 } else {
414 mActivePool.disablePersistence();
415 mProxyHost = new HttpHost(host, Proxy.getPort
(mContext), "http");
416 }
417 }
418 }
On Feb 3, 8:57 pm, "[email protected]" <[email protected]>
wrote:
> hi
> ok i think i found it at <android src folder>packages/apps/Settings/
> src/com/android/settings/ProxySelector.java
> this is only the gui but it seams that this is the problem.
> quote from src:
> " // FIXME: The best solution would be to make a better UI that
> would
> // disable editing of the text boxes if the user chooses to
> use the
> // default settings. i.e. checking a box to always use the
> default
> // carrier. http:/b/issue?id=756480
> // FIXME: This currently will not work if the default host is
> blank and
> // the user has cleared the input boxes in order to not use a
> proxy.
> // This is a UI problem and can be solved with some better
> form
> // controls.
> // FIXME: If the user types in a proxy that matches the
> default, should
> // we keep that setting? Can be fixed with a new UI."
>
> i will have a deeper look at this
>
> cu lad
>
> ps, ooh and if u whant to have a look at the "dialog" use the app any
> cut and make a shortcut activity -> proxy settings
>
> On Feb 3, 9:15 pm, "[email protected]" <[email protected]>
> wrote:
>
> > hi
> > could you tell me where you found this code.(which src file)
> > i would like to have a look myself into this bug
>
> > and about the wpa2 enterprise any idea how to use/set a certificate?
>
> > thanks and regards
> > lad
>
> > On Jan 26, 2:22 pm, Bjarni Rúnar <[email protected]> wrote:
>
> > > There is a bug open for
> > > this:http://code.google.com/p/android/issues/detail?id=1273
>
> > > I've had a look at the source, and there is code which pretty much
> > > goes like this
>
> > > if (connection is wifi) {
> > > // do nothing} else {
>
> > > // configure proxies
>
> > > }
>
> > > I recommend voting up the bug.
>
> > > There may be workarounds possible using local iptables and transparent
> > > proxy tricks, but that's obviously not an option unless you have root
> > > on your phone and lots of geek skills.
>
> > > On Jan 21, 11:21 am, "martin d." <[email protected]> wrote:
>
> > > > Hi there,
>
> > > > some time ago there where questions here about using different
> > > > authentication
> > > > types than WPA and WPA2 [1] on the dev phone. Here is how it can be
> > > > done by
> > > > foot:
>
> > > > 1) switch off wireless in Settings/Wireless Controls/Wi-Fi so that
> > > > wpa_supplicant is stopped
> > > > 2) edit the file /data/misc/wifi/wpa_supplicant.conf to your needs
> > > > 3) enable Wi-Fi
> > > > 4) the new network should appear in Settings/Wireless Controls/Wi-Fi
> > > > settings/
>
> > > > For the network at my univerity I use this config:
>
> > > > network={
> > > > ssid="FBI-WLAN1"
> > > > scan_ssid=1
> > > > proto=WPA
> > > > key_mgmt=WPA-EAP
> > > > pairwise=TKIP
> > > > group=TKIP
> > > > eap=TTLS
> > > > identity="USER"
> > > > anonymous_identity="anonymous"
> > > > password="PASSWORD"
> > > > phase2="auth=PAP"
>
> > > > }
>
> > > > What I still can't figure out, is how to use a HTTP proxy. I tried
> > > > adding a new row
> > > > to the database in /data/data/com.android.providers.settings/databases
> > > > as advised
> > > > on [2]. But I think this only works on the emulator. I can't believe
> > > > that such an
> > > > important feature like an HTTP really does not work!
>
> > > > MartinD:
>
> > > > [1]http://groups.google.com/group/android-developers/browse_thread/threa...
> > > > [2]http://openhandsetmagazine.com/2007/11/tips-howto-connect-android-emu...
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---