Update for Android Studio v 1.5 or greater
As @LouMorda mentioned in a comment below that the Emulator
tab mentioned in original post has been removed in Android Studio v 1.5.
Now They've placed these settings in Simulator Settings in AVD Manager
.
To access these settings:
Tools -> Android -> AVD Manager
Edit AVD
button (pencil icon)Network Settings
can be accessed after clicking the Show Advanced Settings
buttonHere is a screenshot of how it may appear:
Original Post
For anyone using Android Studio IDE:
Run -> Edit Configurations
Android Application -> [Your App]
Emulator
tabNetwork Speed
(internet speed) and Network Latency
(delay) to simulate different speeds and latencies etcAlternatively, you can enter various arguments in Additional command line options
text field as mentioned in @inazaruk's answer.
The screenshot below describes how this Run Configuration
screen looks like:
I know its a bit late to answer to this question, but i hope this helps others facing similar issues!
Edit
For anyone using eclipse, see @Abhi's answer below.