Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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.

Active Publication Date: 2019-02-26
BEIJING QIHOO TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, under normal circumstances, a plug-in is composed of classes, resources, etc. The resources of the plug-in can include its interface pictures, background music, etc., and DexClassLoader can only realize the loading of the plug-in class, but not the resources of the plug-in. Loading will cause problems such as display errors and incomplete display after the plug-in is loaded

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method, device and mobile terminal for loading plug-ins
  • A method, device and mobile terminal for loading plug-ins
  • A method, device and mobile terminal for loading plug-ins

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method, device and mobile terminal for loading a plugin and relates to the field of computers. The embodiment of the method comprises the steps that when the plugin is triggered, the resources of the plugin are obtained, the context of the plugin is created, the context which is allocated to a main application of the plugin by an operation system is replaced with the context of the plugin, and according to the replaced context, the resources of the plugin are loaded. By means of the method, the problem that under an Android original system, the resources of the plugin can not be loaded due to the fact that the context of the plugin can not be obtained, the method has no effect on other objects generated by the system, the compatibility problem does not occur, and even if evolvement happens to the system, the plugin can still be loaded correctly.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method, device and mobile terminal for loading plug-ins. Background technique [0002] At present, the Android (Android) operating system has been widely used in the field of mobile terminals, and a large number of mobile phones and tablet computers adopt the Android operating system. The Android operating system uses the Linux kernel. Due to the security mechanism of the Linux kernel and the special mechanism of the dalvik of the Android operating system, it is difficult to expand the application programs in the Android operating system. [0003] Under the Android operating system, after the apk of the application program is installed in the operating system, it is difficult to expand. Minor upgrades in the application program require repackaging the code, and the user needs to use a new apk to install it again, so that the application program in the Android system is not so flexible...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 宋照春张炅轩姚彤
Owner BEIJING QIHOO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products