I am new to android programming. I am creating an app that download a file and measure bytes recieved through the application.
I am using thread to do the download and using another thread to measure the bytes recived using getUidRxBytes
function.
In the device it is working very well but in emulator getUidRxBytes
function is always returning -1.
Pls help me to understand this issue. Thanks in advance.