Description: 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.
To Search:
File list (Check if you may need any files):
Android项目源码带悬浮窗和图表统计的流量助手
...........................................\KaikaiMonitor
...........................................\.............\.DS_Store
...........................................\.............\.idea
...........................................\.............\.....\.name
...........................................\.............\.....\compiler.xml
...........................................\.............\.....\copyright
...........................................\.............\.....\.........\profiles_settings.xml
...........................................\.............\.....\libraries
...........................................\.............\.....\.........\libs.xml
...........................................\.............\.....\misc.xml
...........................................\.............\.....\modules.xml
...........................................\.............\.....\uiDesigner.xml
...........................................\.............\.....\vcs.xml
...........................................\.............\.....\workspace.xml
...........................................\.............\AndroidManifest.xml
...........................................\.............\ant.properties
...........................................\.............\assets
...........................................\.............\build.xml
...........................................\.............\libs
...........................................\.............\....\xUtils-2.6.14.jar
...........................................\.............\local.properties
...........................................\.............\proguard-project.txt
...........................................\.............\project.properties
...........................................\.............\res
...........................................\.............\...\drawable
...........................................\.............\...\........\progress_loading.xml
...........................................\.............\...\drawable-hdpi
...........................................\.............\...\.............\ic_launcher.png
...........................................\.............\...\.............\loading.png
...........................................\.............\...\.............\marker2.png
...........................................\.............\...\drawable-ldpi
...........................................\.............\...\.............\ic_launcher.png
...........................................\.............\...\drawable-mdpi
...........................................\.............\...\.............\ic_launcher.png
...........................................\.............\...\drawable-xhdpi
...........................................\.............\...\..............\ic_launcher.png
...........................................\.............\...\layout
...........................................\.............\...\......\allapp_activity.xml
...........................................\.............\...\......\allapp_item.xml
...........................................\.............\...\......\chart_activity.xml
...........................................\.............\...\......\custom_marker_view.xml
...........................................\.............\...\......\float_bar.xml
...........................................\.............\...\......\loading.xml
...........................................\.............\...\......\main.xml
...........................................\.............\...\......\setting_activity.xml
...........................................\.............\...\values
...........................................\.............\...\......\colors.xml
...........................................\.............\...\......\strings.xml
...........................................\.............\...\......\styles.xml
...........................................\.............\src
...........................................\.............\...\com
...........................................\.............\...\...\kaikai
......