Font Size: a A A

Design And Implementation Of Cross-process Data Sharing Framework For Android

Posted on:2021-12-26Degree:MasterType:Thesis
Country:ChinaCandidate:N LiuFull Text:PDF
GTID:2518306305475694Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
In Android systems,there is often a need to share some data between related applications or different processes.From the point of view of facilitating developers' use and improving development efficiency,this paper presents a shared data framework which is implemented by using Java features such as dynamic proxy,reflection and Android features such as Binder,Parceable.The implementation of the framework combines the features and technologies of Java and Android to simplify the implementation of API interface and shared data access process.In the data serialization process,the most appropriate serialization method is used for different data types to achieve a balance between ease of use and performance.And unified data update monitoring interface is used to further reduce the workload of developers.First,the framework is divided into six different modules according to the different functions: process connection module,data transfer module,remote call module,shared data management module,shared data provision module and shared data service module.These six modules are relatively independent and can work together to achieve the entire function of the framework.Secondly,three modules,process connection,data transmission and remote call,are designed and implemented to make process connection simple and reliable,connection interruption can be reconnected automatically,data transmission can support a wide range of types,remote call interface is easy to obtain and use.Design and implement the three modules: Shared Data Management,Shared Data Provision and Shared Data Service.For various complex data sharing scenarios,extract their core functions: Getter,Setter and Updater,and design the common implementation interface and function logic around these three modules.Finally,the data structure and interface for the test are designed through the application scenario,and test applications and test cases are written according to the use of shared data framework to verify the function and effect of the framework on Android mobile phones.The test results show that the framework can quickly acquire,update and persist data between different applications with a small amount of code.
Keywords/Search Tags:Data Sharing, Serialization, Dynamic Proxies, Reflection, Binder
PDF Full Text Request
Related items