A method, device and mobile terminal for loading plug-ins
A plug-in and plug-in list technology, which is applied in the computer field, can solve problems such as plug-in failure, failure to fully display, plug-in display errors, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] The embodiment of the present invention provides a method for loading a plug-in. It can be implemented by improving the application program under Android, and implemented on terminal equipment installed with Android operating system, such as mobile terminal equipment of users such as mobile phones, tablets, and handheld computers.
[0083] figure 1 It is a flowchart of a method for loading a plug-in provided in this embodiment. The method specifically includes steps S102 to S106.
[0084] S102: Acquire resources of the plug-in when the plug-in is triggered.
[0085] S104: Create a context of the plug-in, and replace the context previously assigned by the operating system to the main application of the plug-in with the context of the plug-in.
[0086] Among them, the context of the plug-in points to the resource of the plug-in.
[0087] S106: The main application loads the resources of the plug-in according to the replaced context, where the replaced context is the p...
Embodiment 2
[0090] This embodiment is a specific application scenario of the first embodiment above. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.
[0091] Such as figure 2 As shown, it is a flowchart of a specific method for loading a plug-in provided by an embodiment of the present invention, and the method includes steps S201 to S206.
[0092] First, step S201 is executed, when the plug-in is triggered, the package archive information PackageArchiveInfo of the plug-in is acquired.
[0093] Among them, the plug-in is a module of the main program. An application developed based on a plug-in usually includes multiple modules, each of which can be implemented by a plug-in. At present, due to the inconvenience of upgrading the application program under Android, the plug-in of the application program has become a trend.
[0094] For example, an optimization software may include functions such as garbage cleaning, sel...
Embodiment 3
[0189] image 3 It is a structural block diagram of a device for loading plug-ins provided by an embodiment of the present invention. The device 300 includes:
[0190] The resource obtaining module 310 is adapted to obtain the resources of the plug-in when the plug-in is triggered;
[0191] The first building module 320 is suitable for creating a new plug-in context context, and replacing the context allocated by the operating system for the main application of the plug-in with the plug-in context, wherein the plug-in context points to the plug-in resource;
[0192] The loading module 330 is adapted for the main application to load the resources of the plug-in according to the replaced context, wherein the replaced context is the plug-in context.
[0193] Optionally, the device 300 also includes:
[0194] The information obtaining module 340 is adapted to obtain the installation package archive information of the plug-in before obtaining the resource of the plug-in.
[0195...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com