Font Size: a A A

Based On Android Plug-in Development Design And Implementation

Posted on:2019-08-19Degree:MasterType:Thesis
Country:ChinaCandidate:L J YeFull Text:PDF
GTID:2428330545969505Subject:Software engineering
Abstract/Summary:PDF Full Text Request
As the fourth generation communication technology with the flourishing development of 4 g promotion,wireless bandwidth and transmission speed got unprecedented ascension,for the application of intelligent mobile terminal to add rich content provides a good platform.With more and more mobile apps and more and more installation packages,it is easy to waste the phone's memory and make the user experience worse.Therefore,the development and update of APP require more and more APP developers.Currently widely used technology is DL dynamic loading of the Android framework,the framework is simple,open source,good compatibility,but also has many disadvantages: developers use opaque,all require the system to grasp the key points when developing software,development level of the four components of support is not enough,resources and class loading more burdensome,relying too much on that grammar,etc.The technical scheme proposed in this paper is to design a new set of basic framework,MyFlex,which is convenient for plug-in development for Android system.Meet the developer's need to develop the plug-in apk independently and integrate it into the host.Analyze the requirements,determine the function of the technical framework,then write the program code,debug the program,run the program,and optimize the program.The technology point class loading technology,resource loading technology and four component technologies implemented by MyFlex plug-in framework are the focus of this paper.The class loading technology of the MyFlex plug-in framework USES a common ClassLoader to dynamically load an uninstalled apk.The technique of resource loading solves the problem of resource loading by calling the addAssetPath method in AssetManager.In-depth analysis of the four major components of the Android Framework source code,to analysis the characteristics of the four major components for the Activity by implementing InstrumentationWrapper,Hook off the AMS in by calling StartActivity redirect plugin Activity,when the Activity of pit mapping Framework,system start after the completion of the back to the Activity time remapping again back to plug-in the Activity's lifecycle management of the Activity;In the case of Service,it occupies a hole in the plug-in framework.It develops a set of mechanisms by the distribution agent mechanism to maintain the Service life cycle management.This plug-in framework,MyFlex,enables developers to use transparency,class loading,resource loading,and four component technologies that are well supported and no longer rely on that syntax.The APP is added in the form of a plug-in.The plug-in does not need to be installed,but only needs the user to download to a certain location as required,and it is loaded dynamically when it is used.After verification,the technical scheme proposed in this paper can take into account the user's possible application scenarios from multiple directions and angles,making the user's use convenient.
Keywords/Search Tags:Android, application software, plug-in
PDF Full Text Request
Related items