It is an android application for PM2.5 detection and reporting.
It contains features as below:
-
Basic Http Restful services like Login, Register, Change password, email, ect.
-
Pull and push PM 2.5 density and other environmental related information from and to our server.
-
An algorithm for calculating the number of PM2.5 breathed in and plot 12 different graphs for visualization.
-
Intelligent health reminder based on your environmental information and your health state.
-
Personal state detections by using the mobile built-in sensor, such as estimating entrained-air volume when you are walking, running and playing sports.
-
Map function for better viewing polluted environment, but it is only available in China Mainland.
-
Embedded Devices Connection --- the affiliated wristband and 803 PM2.5 indoor detection device by using Bluetooth and UDP protocal.
-
Cache mechanism for reducing redundant calculation and too many accesses to the database.
-
A Thread pool for network operations by using Volley Framework.
Please add your own applied baidu map API KEY in the pM/src/main/AndroidManifest.xml
like this:
<application
android:name=".MyApplication"
...
>
...
<meta-data
android:name="com.baidu.lbsapi.API_KEY"
android:value="In8U2gwdA6i5Q0lyDHne342u">
</meta-data>
...
</application>
It is ok for personal learning and discussion.
Please don't use the source code in any commercial projects.
Any questions or comments, please contact me [email protected]
(please star it after you clone it and like it.「^_^」)