I write a little android app, sends Http request, receives response from server, and count how many bytes transmitted and received. and the code is simply as follow
From my understanding, you should combine getUidRxBytes with getUidRxPackets.
You should have something like : getUidRxBytes = getUidRxPackets * (tcp/ip header size)