Research and Design of a Real-Time Interactive Application Development Model Based on the Android Platform
This paper introduces a real-time interactive application development model on the Android platform. This model uses persistent socket connection mechanism to establish the connection of clients and servers and uses Protocol Buffers as the transmission medium. In order to maintain the smooth connection with the server in the communication process, clients send keep alive packages to servers at regular time. In addition, this model adds retransmission mechanism and reconnection mechanism to ensure the correctness of the packages and the robustness of the system. This module has a good performance in network data consumption, power saving and the correctness of the packages etc.