Before you can use the network in Android Emulator. You will need to set the proxy first. This is the guide below.
settings->(wireless&networks)More...->Mobile networks->Access Point Names->T-Mobile US(it depends)
->then fill in the following fields
Proxy,
Port,
Username,
Password.