In recent years, mobile Internet is going into people’s life in every aspect and mobileapplications play a vital role in connecting people with mobile Internet. As a platform ofmobile applications, Android has such advantages as open source and highly customizableability. It’s becoming more and more popular and has owned more than half of the globalsmartphone market share.However, the market of mobile applications has some problems in China whiledeveloping in a rapid speed. Issues like fragmentation, high cost of mobile communication,differences between mobile Internet and traditional Internet, competitions and technicalisolation of mobile application development, make it hard to building up perfectapplications and cause an unsatisfied user experience. Based on the factors limited to theenvironment of mobile Internet, the paper focuses on some key technology of networkcommunication in Android and proposes some optimal solutions in order to work better innowadays mobile network.Firstly, the paper pays attention to technology of limited cache in Android clientapplications and reveals the jittering problems when the capacity of cache reaches the limitand the application continues to add up new objects. Therefore the paper proposes ananti-jitter cache solution based on preload technology and dual-threshold. For the currentmobile network traffic and throughput issues, the paper studies some data exchange formatsand considers it a effective way to replace text-based data exchange formats with serializedones in data transferring as they show better space efficiency. The paper takes ProtocolBuffer as an example of serialized data exchange format and studies the underlyingprinciples of it and how to use in Android Platform. At last, based on the complex mobilenetwork, the paper analyzes every strategy of P2P establishing in details, and proposed aNAT-detetive-based adaptive P2P communication framework, which stresses high successrate and fault tolerance.The paper carries out some experiments on these modules. The results show that byusing anti-jitter cache, it can not only reduce the frequency of cache replacement operations, but also take advantage of user idle time reasonably. As to Protocol Buffer, it spends lesstime encoding and decoding, and occupies less storage space compare with XML and JSON.The adaptive P2P communicate framework do perform the optimal P2P establishingstrategy according to client information. In particular, it can automatically switch to acompatible P2P method when it fails in establishing a better P2P communication, whichguarantees high availability. |