| In the trend of urbanization in China."Smart Community" came into being with the advent of "Smart City",which appears as the "Internet + Community" in the government work report.At the same time,the mobile Internet is booming,and the number of China’s mobile smart terminal has reached 1.37 billion by December 2016,among which the terminals equipped with android system account for about 80.7%.With the high penetration rate of android smart terminals,more and more developers are willing to develop android application,and the application of smart community is also mushrooming.However,some existing applications only focus on one aspect of community service which is lacking of comprehensiveness,others provide community integrated service which is based on social contact,but it does not meet the reality that community social foundation is weak in our country.Therefore,it’s promising to create a smart community system providing comprehensive service based on Android system.Considering the basic situation of community in our country,a smart community system based on Android is designed and implemented in this paper aiming to meet the actual needs of the community.This system uses both C/S and B/S architecture,and integrates management,service,and information using embedded system,mobile Internet,load balancing and other new information technologies.Smart community system not only provides administrators with a convenient way to manage the sources,but also makes the community residents experience intelligent life.Smart community system is consist of management and service parts.The management part is based on B/S architecture,which is divided into display layer,control layer,service layer and data layer using MVC framework.In this way,the coupling of the system is reduced by realizing the separation between data and view.The service part uses C/S architecture and includes both server and Android client,which mainly provides information,life and property service for community residents.Functions including information notice,city news,online supermarket,domestic services,parking spaces renting,and items repairing are completed.In addition,the client introduces the AliPay SDK and the Baidu Maps SDK to realize online payment and location.The client extracts JSON format data from the backend server through HTTP,and finally displays the data on the Android system UI after data analysis.The server builds a distributed system according to different functions.In order to solve the problem of identity consistency among users in different modules,the server introduces the single sign-on module and thus completes the authentication of user’s identity to ensure the security of the system.Nginx server is used as load balancer to achieve the shunt effect between same modules in order to improve the performance of the background server system.Finally,stress tests on the server interface and the client is accomplished and the test results show that the system can run stably.This smart community system that designed in this paper is based on Professor Dongfeng Yuan’s team project,and realizes a smart cloud terminal that fits the smart community domain.Community residents can do online shopping,and enjoy the home delivery services after logging in the client.The "collection express" function solves the problem that express is on the way but nobody is at home which meets the needs of the community residents.Smart community system achieves the desired results in function and interface design,and it has great practical value. |