Re: [android-developers] Wifi is currently being used.

2012-01-17 Thread Mark Murphy
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

[android-developers] Wifi is currently being used.

2012-01-16 Thread Put_tiMe
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:

Re: [android-developers] Wifi is currently being used.

2012-01-16 Thread Mark Murphy
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

Re: [android-developers] Wifi is currently being used.

2012-01-16 Thread Putti Me
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