Is there any event that I could set a filter to pick up using a broadcast receiver that is triggered when data is being sent over the network?
What I would like to do, is sit idle until the user sends data over their wifi and then trigger do some processing.
I know about trafficStats and I will likely use it, but I can’t seam to find any events that trigger when data is being sent over the network. I’ve thought about polling using trafficstats to detect changes in tx/rx but that seams like a cumbersome method. I have some other ideas, but I’m hoping there is a simple answer.
Any suggestions?
I know only how to listen for 3G network, in this case you can use TelephonyManager
However, this will not work for WiFi, where only polling I can think of.