Monitor data consumption in Android app? -
i'm building app relies on lot of online content. i'd monitor how being downloaded , attempt minimize as possible. these days, more , more carriers implementing data caps, users deserve application has gone through data consumption testing.
well, not advanced tools. can use iptables in underlying linux system give network info. used little while ago bit of tracking. needed rooted phone. i've tried out far on g2, not sure how fare on emulator or of sort. assuming did have rooted phone, have iptables command available, can use iptables segment traffic off chain , stats out of chain:
iptables -n app iptables -a output -d a.b.c.d -j app
if wanted track data sending ip a.b.c.d handset. can dump stats iptables using "iptables -l -v -n" packet count , byte count rule.
might not right solution given control source of program. comes in useful monitoring when don't have ability modify code.
Comments
Post a Comment