Method and apparatus for remotely running application program
First Claim
1. A method for remotely running an application program, comprising:
- acquiring, by a client, an application program from a server and running the application program on the client;
detecting, by the client, whether the application program triggers an application programming interface (API) invocation request intended for a system API on the server;
intercepting, by the client, the API invocation request intended for the system API;
determining, by the client according to a preset invocation policy, that the client or the server executes API invocation when the application program triggers the API invocation request;
generating, by the client, a local API invocation request according to the API invocation request when determining that the client executes the API invocation;
invoking, by the client, a device resource of the client and executing local API invocation according to the local API invocation request, so as to generate an execution result of the local API invocation;
sending, by the client, the execution result of the local API invocation to the application program;
generating, by the client, a remote API invocation request according to the API invocation request when determining that the server executes the API invocation;
sending, by the client, the remote API invocation request to the server, the remote API invocation request being used to instruct the server to execute remote API invocation and return an execution result of the remote API invocation;
receiving, by the client from the server, the execution result of the remote API invocation; and
sending, by the client, the execution result of the remote API invocation to the application program.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for remotely running an application program. A client acquires an application program from a server, runs the application program on the client, and detects whether the application program triggers an application programming interface (API) invocation request. If the application program triggers the API invocation request, the client determines that the client or the server executes API invocation according to a preset invocation policy. A device resource of the client can be used to execute a part of the API invocation, which enhances efficiency in remote running of the application program and improves user experience. In addition, the latest data obtained according to a result of application program running can be saved onto the server, which ensures data access security.
-
Citations
12 Claims
-
1. A method for remotely running an application program, comprising:
-
acquiring, by a client, an application program from a server and running the application program on the client; detecting, by the client, whether the application program triggers an application programming interface (API) invocation request intended for a system API on the server; intercepting, by the client, the API invocation request intended for the system API; determining, by the client according to a preset invocation policy, that the client or the server executes API invocation when the application program triggers the API invocation request; generating, by the client, a local API invocation request according to the API invocation request when determining that the client executes the API invocation; invoking, by the client, a device resource of the client and executing local API invocation according to the local API invocation request, so as to generate an execution result of the local API invocation; sending, by the client, the execution result of the local API invocation to the application program; generating, by the client, a remote API invocation request according to the API invocation request when determining that the server executes the API invocation; sending, by the client, the remote API invocation request to the server, the remote API invocation request being used to instruct the server to execute remote API invocation and return an execution result of the remote API invocation; receiving, by the client from the server, the execution result of the remote API invocation; and sending, by the client, the execution result of the remote API invocation to the application program. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for remotely running an application program, comprising:
a processor configured to; acquire an application program from a server and run the application program on a client; detect whether the application program triggers an application programming interface (API) invocation request intended for a system API on the server; intercept the API invocation request intended for the system API; determine, according to a preset invocation policy, that the client or the server executes API invocation when the application program triggers the API invocation request; generate a local API invocation request according to the API invocation request when it is determined that the client executes the API invocation; invoke a device resource of the client and execute local API invocation according to the local API invocation request, so as to generate an execution result of the local API invocation; send the execution result of the local API invocation to the application program; generate a remote API invocation request according to the API invocation request when it is determined that the server executes the API invocation; send the remote API invocation request to the server, the remote API invocation request being used to instruct the server to execute remote API invocation and return an execution result of the remote API invocation; receive, from the server, the execution result of the remote API invocation; and send the execution result of the remote API invocation to the application program. - View Dependent Claims (8, 9, 10, 11, 12)
Specification