On Tue, Jan 17, 2012 at 12:25 AM, Putti Me putt...@gmail.com wrote:
getTotalRxBytes() + getTotalTxBytes() gives me the total bytes transferred.
Does this include all data i.e.
mobile
wifi
bluetooth
anything else
I suspect that it does not include Bluetooth. I would expect that it
only
I want to determine if the Wifi is being used currently.
AFAIK, Wifi can be in a connected state, but there need not be any
data being transferred currently.
I can get whether the Wi-fi is connected or not by doing this:
TrafficStats can tell you the number of bytes/packets/etc. transferred
over WiFi or mobile data.
On Mon, Jan 16, 2012 at 6:49 AM, Put_tiMe putt...@gmail.com wrote:
I want to determine if the Wifi is being used currently.
AFAIK, Wifi can be in a connected state, but there need not be any
data
Thanks for that info.
getTotalRxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()()
+
getTotalTxByteshttp://developer.android.com/reference/android/net/TrafficStats.html#getTotalRxBytes()()
gives me the total bytes transferred.
Does this include all
4 matches
Mail list logo