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

Method and device for running APK plug-in of application

An application, plug-in technology, used in the computer field

Inactive Publication Date: 2017-06-30
BEIJING QIHOO TECH CO LTD +1
View PDF4 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

That is, it is not possible to run the APK plug-in without installing the APK plug-in only

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
  • Method and device for running APK plug-in of application
  • Method and device for running APK plug-in of application
  • Method and device for running APK plug-in of application

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] The embodiment of the present application proposes a method for running the APK plug-in of an application, which is used to run the plug-in without installing the plug-in. The schematic flow chart of the method is as follows figure 1 shown, including the following steps:

[0034] Step 11: Load the APK plug-in, and generate a Dex file in the main program directory during the loading process.

[0035] In this step, since the application intends to load the APK plug-in without installing it, the APK plug-in determined in this step is a plug-in that has not been installed on the platform where the application program is located. In this application, the application program is regarded as the main program installed in the system platform. In order to facilitate the loading of the APK plug-in, so as to finally realize the functions of the APK plug-in and avoid excessive use of reflection mechanisms, the present invention abstracts the functions provided by the APK plug-in in...

Embodiment 2

[0060] Based on the same inventive concept, Embodiment 2 provides an apparatus for running an APK plug-in of an application, which is used to run the plug-in without installing the plug-in. Such as Figure 4 As shown, the device includes: a loading unit 21, a calling unit 22, and an operating unit 23, wherein,

[0061] The loading unit 21 can be used to load an APK plug-in, and a Dex file is generated in the main program directory during the loading process, and the APK plug-in is a plug-in that is not installed on the platform where the application program is located;

[0062] The calling unit 22 can be used to call the method in the successfully loaded APK plug-in to realize the plug-in function when the loading is successful;

[0063] The running unit 23 can be used to run the Dex file through a virtual machine to run the APK plug-in.

[0064] In one embodiment, the loading unit can be used to: generate the object of the ClassLoader class loader; set the instance Context ...

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 discloses a method and device for running an APK plug-in of an application. The method includes the steps that the APK plug-in is loaded, and a Dex file is generated in a main program catalogue in the loading process; after loading is successful, a method in the successfully loaded APK plug-in is called to achieve the functions of the plug-in; the Dex file runs by a virtual machine so as to run the APK plug-in. According to the method and device, after a running instruction for the plug-in is received, the application loads the plug-in; in the loading process, an example of the application is assigned to an example of the APK plug-in; the Dex file is generated in an application catalogue; then an APk plug-in calling request is issued by the application; then loading and calling of the plug-in are achieved in the mode that a system calls a method corresponding to the application and the application calls a method corresponding to the plug-in. Finally, the Dex file runs through the virtual machine, and then the aims that the complex installation step can be skipped, and the plug-in only needs to be downloaded to run are achieved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a method and device for running an APK plug-in of an application program. Background technique [0002] Smart terminals are playing an increasingly important role in daily life. Taking Android smartphones as an example, in order to meet various needs, the main application program, APK (Android Package, Android installation package), can be installed on the system platform. When certain functions are needed, the application programs installed in the system platform can be opened to realize certain functions. [0003] However, with the progress of various industries, the integrated functions of the application program are more abundant and the interface is more user-friendly and gorgeous, so the volume of the application program is getting larger and larger, because each function of the application program integration may be developed by a different Team development, s...

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 Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44526
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