views:

2925

answers:

4

Hi,

I've been using this method to gain access to internet from my Android emulator emulator -http-proxy <> -avd <>

It works but is that the best way to do it? It just doesn't feel right that I need to open the emulator from command line and can't just do it from Eclipse or something.

Can't seem to find an internet option on the "AVD Manager" either.

Thanks,

Tee

+2  A: 

Hello,

By default, you should be able to toggle the Internet access to your emulator with F8 (on Windows) and Fn + F8 (on Mac OS X) - I think F8 also works for Linux, but I'm not 100% sure.

With this shortcut, you get the ACTION_BACKGROUND_DATA_SETTING_CHANGED dispatched.

Hope that helps.

Dimitar Dimitrov
A: 

still i'm not able to use internet through the emulator, can u give me step-by-step process to connect internet (i'm using proxy server), i'm beginer in android at my email - [email protected]

Rakesh
A: 

-http-proxy can be set in eclipse this way:

  1. Menu Window
  2. Submenu Preferences
  3. In Preferences Dialog Click Android in left part Click Launch Near Default Emulator Options: input ur -http-proxy
chenjian
A: 

On a slightly different note, I had to make a virtual device without GSM Modem Support so that the internet on my emulator would work.

cdated