Is it possible to enable TrafficStats on android emulator? -


i'm trying total number transmitted bytes device (using getmobiletxbytes().

the number i'm getting method call in emulator -1 (which means method not supported on device). there way make emulator return reasonable number here? best number increase i'm browsing web in emulator.

from @ stock android source code (/frameworks/base/core/jni/android_net_trafficstats.cpp), class pretty dumb, has network device names hard-coded inside, , looking @ "rmnet0" , "ppp0" only, mobile device names. not going detect network traffic in emulator, unfortunately.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -