How do I set a proxy in Android phones?

前端 未结 7 410
故里飘歌
故里飘歌 2021-01-31 00:45

Am really wondering how to set a proxy server in android phone like [tattoo] in order to gain access in some private networks

any suggestion would be appreciated ...

相关标签:
7条回答
  • 2021-01-31 01:01

    You have to create Access Points which can then be configured with Proxy Settings for different provider networks.
    Go to Home->Menu->Settings->WirelessControls->MobileNetworks->Access Point Names create an APN and configure it for what ever provider you want

    Hope that helps..

    0 讨论(0)
  • 2021-01-31 01:03

    For Android 4.0.3 and up (don't know how far up though) the following will work:

    1. Go to Settings -> Wifi.
    2. Long-click on your network and select 'Modify network'.
    3. Scroll down to 'Show advanced options' which should show you the proxy options.
    4. Edit your proxy settings as desired and save.
    0 讨论(0)
  • 2021-01-31 01:10

    Finally i got what i want and here is the result :

    There is no UI for proxy settings for android web browser. But the android web browser will read the proxy settings in its settings database. Here is the instructions to enable the proxy in the android web browser.

    1. adb shell
    2. sqlite3 /data/data/com.google.android.providers.settings/databases/settings.db
    3. sqlite> INSERT INTO system VALUES(99,'http_proxy', 'proxy:port');
    4. sqlite>.exit

    source: http://discuz-android.blogspot.com/2008/01/set-proxy-for-android-web-browser.html

    0 讨论(0)
  • 2021-01-31 01:10

    Froyo has no provision for setting up proxy per wifi connection. In that case, you setup your wifi and install->setup ProxyDroid - http://www.appbrain.com/app/proxydroid/org.proxydroid

    Let me know if it does not work.

    Needs your phone rooted.

    0 讨论(0)
  • 2021-01-31 01:18

    I found something here that looks like it might work

    package com.BrowserSettings;
    
    import android.app.Activity;
    import android.os.Bundle;
    import android.view.View;
    import android.widget.Button;
    import android.provider.Settings;
    
    public class BrowserSettingsUI extends Activity {
        /** Called when the activity is first created. */
        @Override
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
    
            final Button button = (Button) findViewById(R.id.Button01);
            button.setOnClickListener(new Button.OnClickListener() {
                public void onClick(View v) {
                    try {
                        Settings.System.putString(getContentResolver(),  
                Settings.System.HTTP_PROXY, "127.0.0.1:100");//enable proxy
                    }catch (Exception ex){
                    }
                }
            });
    
            final Button button2 = (Button) findViewById(R.id.Button02);
            button2.setOnClickListener(new Button.OnClickListener() {
                public void onClick(View v) {
                    try {
                        Settings.System.putString(getContentResolver(), 
                Settings.System.HTTP_PROXY, "");//disable proxy
                    }catch (Exception ex){
                    }
                }
            });
        }
    }
    

    You must add

    <uses-permission android:name=”android.permission.WRITE_SETTINGS” />
    

    to your manifest.

    0 讨论(0)
  • 2021-01-31 01:22

    On CyanogenMod (source : http://forum.cyanogenmod.com/topic/20002-web-proxy-setup/)

    In CM6 there was a setting in the Wireless & Settings for the proxy.

    In CM7 you have to long press on the desktop background. Then in the list that pops up select Custom Shortcut - Pick your activity - Activities - Settings - toward the bottom of this long list is Proxy Settings

    Add this shortcut to your desktop. When you then click on the shortcut you can enter your proxy address and port number.

    0 讨论(0)
提交回复
热议问题