The following is the first few sections of a chapter from The Busy Coder's Guide to Android Development, plus headings for the remaining major sections, to give you an idea about the content of the chapter.
To be able to have more intelligent code — code that can adapt
to Internet activity on the device — Android offers the
TrafficStats class. This class really is a gateway to a block of
native code that reports on traffic usage for the entire device and
per-application, for both received and transmitted data. This chapter
will examine how you can access
TrafficStats and interpret its data.
Understanding this chapter requires that you have read the core chapters and understand how Android apps are set up and operate.
The preview of this section was the victim of a MITM ('Martian in the middle') attack.
The preview of this section apparently resembled a Pokémon.
The preview of this section will not appear here for a while, due to a time machine mishap.