Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Android Emulator Proxy Server

  • 16-09-2011 02:39PM
    #1
    Registered Users, Registered Users 2 Posts: 80 ✭✭


    Hi i'm new to android development.

    Just wondering has anyone had any issues getting the emulator to connect to the internet?

    In work we use the internet through a proxy server. so i have entered the proxy details into the Virtial Device. I have run the emulator as administrator.
    I have even used the adb shell and inserted into the system table with no luck.

    Anybody got any suggestions ??


Comments

  • Registered Users, Registered Users 2 Posts: 668 ✭✭✭Freddio


    If your machine connects to the net then the emulator should


  • Registered Users, Registered Users 2 Posts: 21,611 ✭✭✭✭Sam Vimes


    To get this to work in the past I've had to modify any web requests to use the proxy. Something like this:

    String PROXY = "1.2.3.4";
    HttpHost PROXY_HOST = new HttpHost(PROXY, 80);
    httpclient.getParams().setParameter(ConnRoutePNames.DEFAULT_PROXY, PROXY_HOST);


  • Registered Users, Registered Users 2 Posts: 80 ✭✭terry_s


    Thanks for the reply will give it a shot.

    Terry


Advertisement