Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7981871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:30:23+00:00 2026-06-04T10:30:23+00:00

The Android developer docs say the following about Settings.Secure.HTTP_PROXY : Host name and port

  • 0

The Android developer docs say the following about Settings.Secure.HTTP_PROXY:

Host name and port for global http proxy. Uses ‘:’ seperator for between host and port TODO – deprecate in favor of global_http_proxy_host, etc

But there is not any information about global_http_proxy_host. Now I always get null when trying to read Settings.Secure.HTTP_PROXY.

Settings.Secure.HTTP_PROXY was working properly in all releases before ICS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:30:25+00:00Added an answer on June 4, 2026 at 10:30 am

    You can use Java Reflection to set the global proxy tested on ICS.

    UPDATED CODE

    Activity activity = this;
    
    
    private void setProxtAndPortOnICS(String porxyServer2, int port2)
    {
                try
    {
      Class jwcjb = Class.forName("android.webkit.JWebCoreJavaBridge");
      Class params[] = new Class[1];
      params[0] = Class.forName("android.net.ProxyProperties");
      Method updateProxyInstance = jwcjb.getDeclaredMethod("updateProxy", params);
    
      Class wv = Class.forName("android.webkit.WebView");
      Field mWebViewCoreField = wv.getDeclaredField("mWebViewCore");
      Object mWebViewCoreFieldIntance = getFieldValueSafely(mWebViewCoreField, oauthPage);
    
      Class wvc = Class.forName("android.webkit.WebViewCore");
      Field mBrowserFrameField = wvc.getDeclaredField("mBrowserFrame");
      Object mBrowserFrame = getFieldValueSafely(mBrowserFrameField, mWebViewCoreFieldIntance);
    
      Class bf = Class.forName("android.webkit.BrowserFrame");
      Field sJavaBridgeField = bf.getDeclaredField("sJavaBridge");
      Object sJavaBridge = getFieldValueSafely(sJavaBridgeField, mBrowserFrame);
    
      Class ppclass = Class.forName("android.net.ProxyProperties");
     Class pparams[] = new Class[3];
     pparams[0] = String.class;
     pparams[1] = int.class;
     pparams[2] = String.class;
     Constructor ppcont = ppclass.getConstructor(pparams);
    
     updateProxyInstance.invoke(sJavaBridge, ppcont.newInstance("my.proxy.com", 1234, null)); 
    }
    catch (Exception ex)
    {    
     }
    
    
     }
    
    
     private Object getFieldValueSafely(Field field, Object classInstance) throws IllegalArgumentException, IllegalAccessException {
       boolean oldAccessibleValue = field.isAccessible();
       field.setAccessible(true);
       Object result = field.get(classInstance);
       field.setAccessible(oldAccessibleValue);
       return result;      
    }
    

    NOW you can filter out the urls using proxy server.

    OR look at this blog this is in Chinese but you can read the code it is fairly easy to understand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After following these steps: http://developers.facebook.com/docs/mobile/android/build/ I find that everything goes well, but when I
The new Android design docs mention use of an Up caret: http://developer.android.com/design/patterns/actionbar.html The up
I followed the guidelines presented in the Android docs (http://developer.android.com/guide/practices/screens_support.html) and created image buttons
I am creating a gesture application. In the Gesture class docs http://developer.android.com/reference/android/gesture/Gesture.html ) it
Just reviewing the NDK docs, http://developer.android.com/sdk/ndk/index.html , first para states If you write native
Looking at the example code in the docs http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir%28java.lang.String%29 File path = getExternalFilesDir(Environment.DIRECTORY_PICTURES); It
I'm following the android developer tutorials on tab layouts. (im very very new to
I got the following request from an Android developer : Would you change the
As per the android developer docs for creating tab UI you need to have
Other than the brief article at android site:- http://developer.android.com/resources/articles/contacts.html I haven't seen any docs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.