Method and device used for loading plug-in of Android system
A loading device and plug-in technology, which is applied in the direction of program control device, program loading/starting, program control design, etc., can solve the problems of inconvenient operation for users and low conversion rate, and achieve the effect of conveniently closing the plug-in function
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0031] see figure 1 , shows the plug-in loading method for the Android system provided by the embodiment of the present invention.
[0032] The described plug-in loading method for the Android system is applied in a terminal device, and specifically includes the following steps:
[0033] In step S101, receiving an operation instruction from a program or a user on a plug-in entry;
[0034] In the embodiment of the present invention, the plug-in is: a dex or apk file running without installation.
[0035] In step S102, according to the operation instruction, it is judged whether the plug-in exists;
[0036] In the embodiment of the present invention, if it is determined that the plug-in does not exist, the latest plug-in is downloaded.
[0037] In step S103, if it is determined that the plug-in exists, start a plug-in process to parse and run the installation package of the plug-in;
[0038] In the embodiment of the present invention, if it is determined that the plug-in exi...
Embodiment 2
[0051] see figure 2, as another embodiment of the present invention, when the application needs to add new functions, the method further includes:
[0052] In step S201, a dynamic function list is obtained;
[0053] In step S202, check whether the plug-ins corresponding to the functions in the list exist;
[0054] In step S203, if it exists, the installation package of the plug-in is parsed; if not, the plug-in file corresponding to the function is downloaded.
[0055] In step S204, the plug-in is preloaded;
[0056] In step S205, the function selected by the user is received;
[0057] In step S206, the plug-in corresponding to the selected function is started, and at this time, the user can start to interact with the new function.
[0058] As can be seen from the above, the plug-in loading method for the Android system provided by the present invention can split its own application through the plug-in, and some functions can be implemented in the plug-in, and then downlo...
Embodiment 3
[0060] see image 3 , is the plug-in loading device for the Android system provided by the embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown. The plug-in loading device for the Android system includes: a receiving module 101 , a judging module 102 , an analyzing module 103 , a starting module 104 , an injecting module 105 , and a callback module 106 . The plug-in loading device for the Android system may be a software unit, a hardware unit or a combination of software and hardware built in the terminal device.
[0061] A receiving module 101, configured to receive an operation instruction from a program or a user on a plug-in entry;
[0062] A judging module 102, configured to judge whether the plug-in exists according to the operation instruction;
[0063] The parsing module 103 is used to start the plug-in process to analyze and run the installation package of the plug-in if ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 