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

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

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -