Network Delay Emulation
The emulator lets you simulate various network latency levels, so that you can test your applicaton in an environment more typical of the actual conditions in which it will run. You can set a latency level or range at emulator startup or you can use the console to change the latency dynamically, while the application is running in the emulator.
To set latency at emulator startup, use the -netdelay
emulator option with a supported <delay>
value, as listed in the table below. Here are some examples:
emulator -netdelay gprs
emulator -netdelay 40 100
To make dynamic changes to network delay while the emulator is running, connect to the console and use the netdelay
command with a supported <delay>
value from the table below.
network delay gprs
The format of network is one of the following (numbers are milliseconds):
Value
| Description | Comments |
gprs | GPRS |
(min 150, max 550) |
edge | EDGE/EGPRS |
(min 80, max 400) |
umts | UMTS/3G |
(min 35, max 200) |
none | No latency | (min 0, max 0) |
<num> |
Emulate an exact latency (milliseconds). |
|
<min>:<max> |
Emulate an specified latency range (min, max milliseconds). |
|