Is there a app for this?
It it po
You can write a wrapper class that fetches the whole content and returns that data with delays and only in small chunks.
You can use followed 2 applications for your purposes:
Now you can connect with android to your virtual WiFi AP and manage BW + packet loss + latency by using some scripts (single batch file *.bat
). Here is example:
cd C:\ipfw3-2012\binary
@echo on
@set CYGWIN=nodosfilewarning
@ipfw -q flush
@ipfw -q pipe flush
set download="80Kbit/s"
set srcIp=111.111.222.222
ipfw pipe 1 config bw %download%
ipfw add pipe 1 tcp from any to any in
ipfw -c show
ipfw pipe show
It works great. Here is print screen:
Within the Android emulator, you can now throttle the network speed directly.
Press the 3 dots button, followed by 'Cellular' on the left. You can then select the network type and signal strength.
Speeds for reference in increasing kbps:
UP DOWN
-------- ----------
gsm GSM/CSD 14.4 14.4
hscsd HSCSD 14.4 57.6
gprs GPRS 28.8 57.6
umts UMTS/3G 384.0 384.0
edge EDGE/EGPRS 473.6 473.6
hsdpa HSDPA 5760.0 13,980.0
lte LTE 58,000.0 173,000.0
evdo EVDO 75,000.0 280,000.0
full No limit ∞ ∞
I solved the problem by slowing down the network of my PC with network simulator. Then I created a virtual wifi with win 7 and connected my phone with it.
If your developing on OS X, you can use Network Link Conditioner to slow down your internet connection, then turn on internet sharing and connect the Android phone to that network.