Android examples for android.net:TrafficStats
Click the following links for the tutorial for android.net and TrafficStats.