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

  • SEARCH
  • Home
  • 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 8354337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:31:11+00:00 2026-06-09T09:31:11+00:00

I enabled proxy settings in 2.2 and 2.3 version of android in emulator and

  • 0

I enabled proxy settings in 2.2 and 2.3 version of android in emulator and the internet started working but I have an application installed (which works only with proxy) is still not working. When I did the same for 4.0 version emulator, it was working there. Can anyone tell, why is it not working on 2.2 and 2.3 version though the internet is working.

  • 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-09T09:31:14+00:00Added an answer on June 9, 2026 at 9:31 am

    Configuring your proxy in the emulator allows the Browser application to use it, but any other applications need to be HTTP Proxy capable to access the internet.

    Assuming you use the DefaultHttpClient class to connect to the internet, you’ll have to add the following code to your android application before making the connection:

    DefaultHttpClient client = new DefaultHttpClient();
    
    HttpHost proxy = new HttpHost("yourproxy.domain.com", 3128); 
    // Enter your proxy domain and port
    client.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, proxy);
    

    If you are using an authenticated proxy, you’ll need to also have these lines:

    client.getCredentialsProvider().setCredentials(
                    new AuthScope("yourproxy.domain.com", 3128),
                    new UsernamePasswordCredentials("proxyusername", "password"));
    

    Since you want the same code to work on both the emulator as well as a real phone, you should add a setting to the app which allows the user to turn on or off use of the proxy, and enter the proxy server/port/credentials instead of hard-coding them in the application.

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

Sidebar

Related Questions

I have an Opera browser with Opera Turbo enabled. It is a proxy, which
My project is ARC enabled (the build settings have Objective-C Reference Counting set to
We have a simple ASP.Net WCF Ajax enabled web service which is called via
(Related to this question, EF4: Why does proxy creation have to be enabled when
I have installed ConsoleExport Firebug extension. I have enabled auto-export feature at about:config by
Below are my maven settings from behind the proxy User Settings: <?xml version=1.0 encoding=UTF-8?>
I have a running ejabberd installation, with http-bind enabled, nginx proxy, and a mini
Is there any way to add Proxy IP and Port in android application so
I enabled heap debugging because of a memory leak error I started seeing in
I enabled the extension on wamp ( Screenshot ) but I still get this

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.