Introduction - If you have any usage issues, please Google them yourself
This project is based on a Android with a suspended window and chart statistics flow assistant project source code, the main function of the program:
1, record this month, the day of the mobile data traffic and WIFI traffic
2, record the day of the use of each program
3, flow suspended window, showing the flow rate per second (the default is updated every 5 seconds, if you think the update is too slow to change to a second)
The principle is to obtain traffic information through the TrafficStats class in the API.
Since the traffic information in the shutdown will be cleared, so with the SQLite to save the data.
The main thing is to use a lot of operations and a lot of logical things (such as the construction of two data tables, a temporary summary, a record of real data).
Timing update traffic through AlarmService.
Through the front Service to achieve the suspension window, so that the suspension window is recycled.