Application implementation method and apparatus
First Claim
Patent Images
1. An application implementation method, comprising:
- acquiring, by a terminal, an installation package of a target application, wherein the acquiring the installation package of the target application comprises;
reading a storage address, of the installation package, in a local memory of the terminal, orinstructing the terminal to download the installation package of the target application from a remote location;
generating a proxy interface for managing the target application;
dynamically loading, by the proxy interface, the installation package by using an operating parameter of the terminal;
dynamically write, by the proxy interface, programming instructions and an operating parameter in the installation package of the target application to a memory of the terminal, andstarting, by the proxy interface, an operation interface of the target application, wherein after dynamically loading the installation package by using the operating parameter of the terminal, the method further comprises;
maintaining a context, a running resource, and a life cycle of the target application in the proxy interface.
1 Assignment
0 Petitions
Accused Products
Abstract
Application implementation methods and apparatus are described, which are used to implement a function of a target application without installation of the target function. An example method may include acquiring an installation package of the target application; generating a proxy interface for managing the target application; and dynamically loading, by the proxy interface, the installation package by using an operating parameter of a terminal, and starting an operation interface of the target application.
-
Citations
8 Claims
-
1. An application implementation method, comprising:
-
acquiring, by a terminal, an installation package of a target application, wherein the acquiring the installation package of the target application comprises; reading a storage address, of the installation package, in a local memory of the terminal, or instructing the terminal to download the installation package of the target application from a remote location; generating a proxy interface for managing the target application; dynamically loading, by the proxy interface, the installation package by using an operating parameter of the terminal; dynamically write, by the proxy interface, programming instructions and an operating parameter in the installation package of the target application to a memory of the terminal, and starting, by the proxy interface, an operation interface of the target application, wherein after dynamically loading the installation package by using the operating parameter of the terminal, the method further comprises; maintaining a context, a running resource, and a life cycle of the target application in the proxy interface.
-
-
2. The method according to claim 1, wherein the generating a proxy interface for managing the target application comprises:
-
generating instructions for dynamically loading the installation package of the target application; generating instructions for transferring the operating parameter of the terminal; and generating instructions for managing creation, display, hiding, and recycling of the target application, to obtain the proxy interface of the target application.
-
-
3. The method according to claim 1, wherein dynamically loading the installation package by using an operating parameter of the terminal, and starting the operation interface of the target application comprises:
-
loading, by the proxy interface, classes of the installation package by using a java class loader; creating, by the proxy interface, a context of running of the target application; invoking, by the proxy interface, a creating unit of the installation package by using a java reflection mechanism; and loading the creating unit by using the operating parameter of the terminal.
-
-
4. The method according to claim 1, wherein the content displayed in the proxy interface is acquired from the installation package of the target application.
-
5. An application implementation apparatus, comprising:
-
an installation package acquiring unit stored in a memory configured to acquire an installation package of a target application, wherein the installation package acquiring unit comprises; an address reading module configured to read a storage address, of the installation package, from a local memory in the terminal, or a downloading module configured to instruct the terminal to download the installation package of the target application from a remote location; a proxy generation unit stored in a memory configured to generate a proxy interface for managing the target application; a proxy loading unit stored in a memory configured to dynamically load, by the proxy interface, the installation package by using an operating parameter of a terminal, dynamically write, by the proxy interface, programming instructions and an operating parameter in the installation package of the target application to a memory of the terminal, and start an operation interface of the target application; and a maintaining unit stored in a memory configured to maintain a context, a running resource, and a life cycle of the target application in the proxy interface.
-
-
6. The apparatus according to claim 5, wherein the proxy generation unit is further configured to:
-
generate instructions to dynamically load the installation package of the target application; generate instructions to transfer the operating parameter of the terminal; and generate instructions to manage creation, display, hiding, and recycling of the target application, to obtain the proxy interface of the target application.
-
-
7. The apparatus according to claim 5, wherein the proxy loading unit comprises:
-
a class loading module configured to load classes of the installation package; a context creating module configured to create a context for execution of the target application; an invoking module configured to invoke a creating unit of the installation package; and a creation loading module configured to load the creating unit by using the operating parameter of the terminal.
-
-
8. A non-transitory computer readable storage medium, storing computer executable instructions, the non-transitory computer readable storage medium comprising:
-
instructions to acquire an installation package of a target application, wherein the instructions to acquire the installation package of the target application comprises; instructions to read a storage address, of the installation package, in a local memory of the terminal, or instructions to instruct the terminal to download the installation package of the target application from a remote location; instructions to generate a proxy interface for managing the target application; and instructions to control the proxy interface to dynamically load the installation package by using an operating parameter of a terminal, dynamically write programming instructions and an operating parameter in the installation package of the target application to a memory of the terminal, and start an operation interface of the target application; and instructions to maintain a context, a running resource, and a life cycle of the target application in the proxy interface.
-
Specification