Cloud application startup method, device, electronic device and computer storage medium
By analyzing the application information in the application startup request, the server application instance is directly launched, which solves the problem of waste resources and poor user experience when starting the Android cloud application, and achieves a fast startup and consistent user experience.
Patent Information
- Application Number
- CN202010345761.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-27
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-04-27
AI Technical Summary
When starting the cloud application of Android system, it is necessary to start the desktop launcher on the server, resulting in wasted resources and high complexity of startup processes, poor user experience, and users feel that they are using different applications, which creates a sense of separation.
By analyzing the application information in the application startup request, directly start the corresponding server application instance, avoid starting the desktop launcher, save resources and quickly start the server application, so that the startup process seen by the user terminal does not include the desktop launcher and click service Apply the image of the icon to reduce the sense of splitting.
It saves server resources, simplifies the startup process, improves the user experience, and provides a more consistent and complete application experience.
Smart Images

Figure CN113568672B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a cloud application startup method, device, electronic device, and computer storage medium. Background Art
[0002] As cloud computing becomes more and more mature, more and more applications, especially those with high device performance requirements, are configured to run on the server side (such as cloud servers). Such applications can also be called cloud applications. The characteristic of cloud applications is that although the corresponding application is installed on the terminal device, the main data processing of the application is implemented through the cloud application rather than the application on the terminal device, in order to achieve the realization of local applications through cloud applications without the user of the terminal device being aware of it. The cloud application runs in a container or on a virtual machine, and the container or virtual machine runs on the server. The server sends the running results of the cloud application to the user's terminal device, and the terminal device outputs the running results through its local application, such as data display and / or playback.
[0003] Taking an application based on the Android system as an example, when it runs on a server, the Android system is first run on the server in a container or a virtual machine, and then various applications are run on it.
[0004] Currently, there are some problems with Android cloud applications. For example, to run a cloud application, you need to start the Android desktop launcher on the server, which wastes server resources. Another example is that the startup process of a cloud application is complex and time-consuming. In addition, because the running results sent from the cloud server contain the desktop launcher interface, users feel that they are using different applications, which creates a sense of disconnection and a poor user experience. Summary of the invention
[0005] In view of this, an embodiment of the present invention provides a cloud application startup solution to solve some or all of the above problems.
[0006] According to a first aspect of an embodiment of the present invention, a cloud application startup method is provided, comprising: receiving an application startup request sent when a terminal application in a user terminal is triggered; performing parameter parsing on the application startup request, and obtaining information about the application carried in the application startup request based on the parameter parsing result; determining a server application instance corresponding to the application information, and starting the corresponding server application based on the server application instance.
[0007] According to a second aspect of an embodiment of the present invention, a cloud application startup method is provided, comprising: receiving a trigger operation of a user on a terminal application displayed in a user terminal; generating an application startup request for instructing a server to start a server application corresponding to the terminal application based on information of the application corresponding to the trigger operation, and sending the application startup request; obtaining operation result data returned in response to the application startup request, and displaying the operation result data through the terminal application, wherein the operation result data is data obtained by the server application started by the cloud application startup method of the first aspect.
[0008] According to a third aspect of an embodiment of the present invention, a cloud application startup method is provided, comprising: calling a software development kit configured in the terminal application according to an acquired trigger operation on the terminal application, so as to start a server-side application corresponding to the terminal application in the server through the software development kit according to the server-side application instance corresponding to the application information of the terminal application; obtaining the running result data of the server-side application returned by the software development kit in response to the call, and displaying the running result data through the terminal application.
[0009] According to a fourth aspect of an embodiment of the present invention, a cloud application startup method is provided, comprising: receiving a call request from a terminal application; and instructing a server to start a server application corresponding to the terminal application based on application information of the terminal application carried in the call request.
[0010] According to a fifth aspect of an embodiment of the present invention, a cloud application startup device is provided, comprising: a first receiving module, used to receive an application startup request sent when a terminal application in a user terminal is triggered; a parsing module, used to perform parameter parsing on the application startup request, and obtain information about the application carried in the application startup request according to the parameter parsing result; a first determining module, used to determine a server application instance corresponding to the application information, and start the corresponding server application according to the server application instance.
[0011] According to the sixth aspect of an embodiment of the present invention, a cloud application startup device is provided, comprising: a second receiving module, used to receive a user's trigger operation on a terminal application displayed in a user terminal; a second sending module, used to generate an application startup request for instructing a server to start a server application corresponding to the terminal application based on information of the application corresponding to the trigger operation, and send the application startup request; an acquisition module, used to acquire operation result data returned in response to the application startup request, and display the operation result data through the terminal application, wherein the operation result data is data acquired by the server application started by the cloud application startup device of the third aspect.
[0012] According to the seventh aspect of an embodiment of the present invention, a cloud application startup device is provided, comprising: a calling module, used to call a software development kit configured in the terminal application according to an acquired trigger operation on the terminal application, so as to start a server-side application corresponding to the terminal application in the server through the software development kit according to the server-side application instance corresponding to the application information of the terminal application; and an acquisition and display module, used to obtain the operation result data of the server-side application returned by the software development kit in response to the call, and display the operation result data through the terminal application.
[0013] According to the eighth aspect of an embodiment of the present invention, a cloud application startup device is provided, comprising: a call receiving module for receiving a call request of a terminal application; an application startup module for instructing a server to start a server application corresponding to the terminal application based on application information of the terminal application carried in the call request.
[0014] According to a ninth aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the cloud application startup method described in any one of the first to fourth aspects.
[0015] According to a tenth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the cloud application startup method as described in any one of the first to fourth aspects is implemented.
[0016] According to the cloud application startup solution provided by the embodiment of the present invention, the information of the application carried in the application startup request is obtained by parsing the application startup request, and then the corresponding server-side application instance is obtained according to the application information. The server-side application is started by directly starting the server-side application instance. This can avoid starting the desktop launcher, thereby saving server resources and reducing resource usage. In addition, the server-side application can be started quickly, so that the startup process image seen by the user terminal does not include the image of starting the desktop launcher and clicking the server-side application icon, thereby avoiding a sense of disconnection in the user's use and providing a better user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0018] Figure 1a This is a flowchart of a method for starting a cloud application according to Embodiment 1 of the present invention;
[0019] Figure 1b A schematic diagram of a usage scenario according to the first embodiment of the present invention;
[0020] Figure 2 This is a flowchart of a method for starting a cloud application according to Embodiment 2 of the present invention;
[0021] Figure 3 This is a flowchart of a method for starting a cloud application according to Embodiment 3 of the present invention;
[0022] Figure 4a This is a flowchart of a method for starting a cloud application according to Embodiment 4 of the present invention;
[0023] Figure 4b A schematic diagram of a usage scenario according to Embodiment 4 of the present invention;
[0024] Figure 4c A schematic diagram of starting a cloud application in the prior art;
[0025] Figure 5 This is a flowchart of a method for starting a cloud application according to Embodiment 5 of the present invention;
[0026] Figure 6 This is a flowchart of a method for starting a cloud application according to Embodiment 6 of the present invention;
[0027] Figure 7 This is a structural block diagram of a cloud application startup device according to Embodiment 7 of the present invention;
[0028] Figure 8 This is a structural block diagram of a cloud application startup device according to Embodiment 8 of the present invention;
[0029] Fig. 9 This is a structural block diagram of a cloud application startup device according to Embodiment 9 of the present invention;
[0030] Fig.10 This is a structural block diagram of a cloud application startup device according to Embodiment 10 of the present invention;
[0031] Fig.11 FIG. 1 is a schematic diagram of the structure of an electronic device according to Embodiment 11 of the present invention. DETAILED DESCRIPTION
[0032] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0033] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0034] Embodiment 1
[0035] Reference Figure 1a , showing a step flow chart of a cloud application startup method according to embodiment 1 of the present invention.
[0036] To facilitate the description of the solution provided by the embodiment of the present invention, the following first schematically describes the system architecture used in the present embodiment. Figure 1b In this embodiment, the cloud application startup method is configured on the server side (the server side includes a cloud server or other server), and data interaction is performed with a user terminal (such as a Bluetooth speaker, a mobile phone, a PAD, a smart TV, etc.) through a network as an example, wherein the application on the user terminal is mainly used to interact with the user, such as receiving user operations and displaying application running results, and the server-side application configured on the server side is mainly used to run the corresponding processing logic according to the user's operation and return the running results to the user terminal.
[0037] Specifically, one or more virtual machines (or containers) are configured in the server. Taking the container as an example, the container is configured with an operating system and one or more cloud applications. The cloud application interacts with the terminal application on the user terminal through the services provided in the operating system.
[0038] For example, when a user triggers an application on a user terminal, the user terminal generates an application start request according to the triggered application and sends it to the server. The operating system on the server starts the server application corresponding to the triggered application based on the application start request.
[0039] Based on the above architecture, the cloud application startup method of this embodiment includes the following steps:
[0040] Step S102: receiving an application start request sent by a terminal application in a user terminal when the terminal application is triggered.
[0041] In this embodiment, the application start request adds application information, and the application information is used to indicate the terminal application triggered in the user terminal. For example, the application information may be the name, ID or other identification of the terminal application.
[0042] Optionally, a content parameter may be added to the application start request as needed, and the content parameter is used to indicate the content to be acquired. For example, if the terminal application is a video application, the content parameter may be used to indicate the video to be acquired.
[0043] The application startup request may or may not carry content parameters. If it carries content parameters, after starting the corresponding server application, the corresponding content data can be directly obtained according to the content parameters, and the content data can be sent to the user terminal as the operation result data, thereby simplifying the content acquisition process.
[0044] When the start request does not carry the content parameter, the home page data after the server application is started can be sent to the user terminal as the operation result data.
[0045] Step S104: performing parameter parsing on the application start request, and acquiring the application information carried in the application start request according to the parameter parsing result.
[0046] In this embodiment, since the application start request carries the application information, it is used to indicate the terminal application triggered on the user terminal. Therefore, when starting the corresponding server application on the server side, it is not necessary to start the desktop launcher of the operating system after obtaining the application start request sent by the user terminal, and convert the input event (input event) in the application start request into a touch event (trigger event) for the server application icon in the desktop launcher, and start the server application through the touch event. Instead, it is only necessary to parse the parameters of the application start request to obtain the application information carried therein, and then find the corresponding server application instance according to the application information, and directly start the server application through the server application instance.
[0047] Since the server-side application startup process of this embodiment can omit the process of starting the desktop launcher and simulating the process of clicking the server-side application icon in the desktop launcher through a touch event, on the one hand, the occupation of server-side resources is reduced, and on the other hand, the user will not see the desktop launcher interface and the process of clicking the icon, avoiding the user's sense of disconnection, making the cloud application startup process perceived by the user simpler, consistent, and complete. Even if the operating system used by the user terminal is inconsistent with the operating system running on the server, a consistent and complete application usage experience can be obtained.
[0048] A person skilled in the art may perform parameter parsing on the application startup request in any appropriate manner, and this embodiment does not limit this. For example, the parsing may be performed based on a keyword in the application startup request. If the keyword "apl" carried in the application startup request is used for information of the corresponding application, the keyword "apl" may be obtained by parsing the application startup request, and then the application information may be determined based on the keyword.
[0049] Taking the application start request of http: / / 112.13.73.148:8095 / ?apl=MMM as an example, by parsing the parameters of the application start request, the keyword "apl" is obtained, and then the application information is determined to be "MMM", and the "MMM" is the identifier of the terminal application.
[0050] Of course, in other embodiments, other methods may be used to perform parameter analysis, which is not limited to the present embodiment.
[0051] Step S106: determining a server application instance corresponding to the application information, and starting a corresponding server application according to the server application instance.
[0052] The server application instance may be a main instance of the server application. Taking the Android operating system as an example, it may be the mainactivity of the server application. By starting the server application instance, the server application may be started.
[0053] Those skilled in the art may determine the server application instance determined by the application information in any appropriate manner, for example, by searching a preset corresponding table according to the application information to determine the corresponding server application instance.
[0054] After obtaining the corresponding server application instance, the server application instance can be started through the startup command preset in the operating system, thereby realizing the startup of the server application. This can omit the process of starting the desktop launcher and clicking the server application icon in the desktop launcher, thereby improving the startup speed of the server application, avoiding the desktop launcher from occupying resources, and avoiding the user from seeing the screen of starting the server application through the desktop launcher, which causes a poor user experience.
[0055] The following is a description of the implementation process of the cloud application startup method based on a specific usage scenario:
[0056] like Figure 1b As shown, in this usage scenario, the user terminal can be a smart speaker. Of course, in other usage scenarios, the user terminal can be other electronic devices, such as mobile phones, PADs, smart switches, smart TVs, etc.
[0057] The user can trigger the terminal application 2 on the smart speaker through the screen in the smart speaker, or can also trigger the terminal application 2 through voice control, expression control or gesture control, etc., which is not limited in this usage scenario. The smart speaker generates an application start request according to the triggered terminal application 2, and sends the application start request to the server. The application start request carries information of the terminal application 2, such as the name information of the terminal application 2.
[0058] The server parses the parameters of the obtained application startup request, obtains the application information contained therein (i.e., the name information of the terminal application 2 mentioned above, usually the name of the terminal application is consistent with the name of the corresponding server application), searches the preset corresponding table according to the application information, and determines the server application instance corresponding to the application information. For example, if the application information is "MMM", the corresponding server application instance can be determined according to the application information, and then the server application is started by starting the corresponding server application instance.
[0059] Through this embodiment, the application information carried in the application startup request is obtained by parsing the application startup request, and then the corresponding server application instance is obtained according to the application information. The server application is started by directly starting the server application instance. This can avoid starting the desktop launcher, thereby saving server resources and reducing resource usage. The server application can also be started quickly, so that the startup process image seen by the user terminal does not include the image of starting the desktop launcher and clicking the server application icon, thereby avoiding a sense of disconnection in the user's use and providing a better user experience.
[0060] The cloud application startup method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones, etc.) and PCs, etc.
[0061] Embodiment 2
[0062] Reference Figure 2 , shows a step flow chart of a cloud application startup method according to embodiment 2 of the present invention.
[0063] The cloud application startup method of this embodiment includes the aforementioned steps S102 to S106. Wherein, when determining the server application instance corresponding to the application information, step S106 can be implemented through sub-steps S1061 to S1063.
[0064] Sub-step S1061: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in the preset instance correspondence.
[0065] In this embodiment, the instance correspondence is used to indicate the server application instance corresponding to each server application. Those skilled in the art may indicate the correspondence in any appropriate manner, such as by a preset correspondence table, or other manners, which is not limited in this embodiment.
[0066] Taking the corresponding table as an example, a table can be initialized in the server to record the server application and its corresponding server application instance in the server (for example, the server application instance can be the name of the mainactivity of the server application in Android).
[0067] When determining the server application instance corresponding to the application information, the corresponding table can be searched. If the corresponding table contains a server application corresponding to the application information, it means that the corresponding table contains a server application instance corresponding to the application information, and sub-step S1062 is executed. Otherwise, if the server application instance does not exist, sub-step S1063 can be executed to obtain the corresponding server application instance. Of course, in other embodiments, if the server application instance does not exist, the corresponding server application instance can be obtained by other means.
[0068] Sub-step S1062: If it exists, obtaining a server application instance corresponding to the server application indicated by the application information.
[0069] In the case where there is a server application indicated by the application information in the instance correspondence, the corresponding server application instance can be directly acquired according to the instance correspondence.
[0070] By presetting the corresponding relationship, the server application instance corresponding to the application information can be quickly determined, thereby improving the startup speed of the server application. In addition, in order to improve adaptability, sub-step S1063 can be executed when there is no corresponding server application instance in the corresponding relationship to ensure that the server application can be started normally in this case.
[0071] Sub-step S1063: If it does not exist, then according to the information of the application, obtain the server application instance corresponding to the information of the application from the installation package corresponding to the information of the application stored in the server.
[0072] In the case that the server application indicated by the application information does not exist in the instance correspondence, the corresponding server application instance can be determined according to the information of the installation package of the server application.
[0073] In a specific implementation, sub-step S1063 can be implemented as: based on the information of the application, generating a query command carrying the name of the installation package corresponding to the information of the application; based on the query command, querying the installation package corresponding to the name of the installation package in the server, and obtaining the server application instance corresponding to the information of the application based on the query result.
[0074] For example, the name of the corresponding installation package (such as XXX.apk) is determined according to the information of the application, and the query command may be different according to different operating systems. For example, in the Android system, the query command may be a command that instructs the aapt tool built into the operating system to process the installation package to obtain the server application instance.
[0075] According to the query command, an installation package named XXX.apk is queried to obtain the package name (package) and the name of the main activity (launchable-activity) in the installation package.
[0076] According to the query command, the package name and mainactivity name are obtained as information of the server application instance, and then the server application instance is determined.
[0077] After obtaining the server application instance corresponding to the application information, starting the corresponding server application according to the server application instance can be implemented through sub-steps S1064 to S1065.
[0078] Sub-step S1064: Generate a startup command carrying information of the server application instance.
[0079] The startup commands of different operating systems may be different. Taking the Android operating system as an example, an amstart command including information of the server application instance may be generated.
[0080] Sub-step S1065: starting the server application instance according to the start command, and starting the corresponding server application according to the started server application instance.
[0081] Start the server application instance through the amstart command to complete the startup of the server application.
[0082] Taking the information of the server application instance including "com.aaaaa.bbbbb.ccccc / com.aaaaa.bbbbb.ccccc.SGameActivity" as an example, the corresponding startup command can be expressed as: abd shell am start–ncom.aaaaa.bbbbb.ccccc / com.aaaaa.bbbb.ccccc.SGame Activity, which indicates to start the server application instance. Among them, "abd shell am start–n" is the command body, and "com.aaaaa.bbbbb.ccccc / com.aaaaa.bbbbb.ccccc.SG ameActivity" is the command parameter.
[0083] This allows the server application to be started quickly without starting the desktop launcher, thereby reducing resource usage and preventing users from seeing the desktop launcher screen. In addition, when the user clicks the back button on the user terminal, the desktop launcher screen will not be displayed, reducing the sense of disconnection when the user uses the application.
[0084] Through this embodiment, the application information carried in the application startup request is obtained by parsing the application startup request, and then the corresponding server application instance is obtained according to the application information. The server application is started by directly starting the server application instance. This can avoid starting the desktop launcher, thereby saving server resources and reducing resource usage. The server application can also be started quickly, and the startup process image seen by the user terminal does not include the image of starting the desktop launcher and clicking the server application icon, thereby avoiding a sense of disconnection in the user's use and providing a better user experience.
[0085] The cloud application startup method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones, etc.) and PCs, etc.
[0086] Embodiment 3
[0087] Reference Figure 3 , shows a step flow chart of a cloud application startup method according to embodiment three of the present invention.
[0088] The cloud application startup method of this embodiment includes the aforementioned steps S102 to S106. Among them, step S106 can be implemented in the manner described in any of the aforementioned embodiments.
[0089] In this embodiment, in order to further improve convenience, in addition to the application information, the application start request may also carry content parameters as needed. If the content parameters are carried, the parameter parsing result of the application start request includes the content parameters, and the content parameters are used to indicate the content to be obtained. Different terminal applications may have different corresponding content parameters. Taking a video terminal application as an example, its content parameters can be used to indicate the video to be obtained.
[0090] In the application start request, the content parameter can be indicated by the keyword "dir". For example, the application start request is http: / / 112.13.73.148:8000 / ?apl=***&dir=AAA: / / BBB / CCCC?scg_id=00000&count=10000&from=asr, and the content parameter is "AAA: / / BBB / CCCC?scg_id=00000&count=10000&from=asr".
[0091] When the parameter parsing result includes content parameters, the method of this embodiment may further include step S108.
[0092] Step S108: According to the content parameters, the content acquisition interface of the started server application is called to acquire content data corresponding to the content parameters.
[0093] Different server applications may have different content acquisition interfaces, which are not limited in this embodiment. By calling the content acquisition interface, a request is made to obtain content data indicated by the content parameters.
[0094] Optionally, in this embodiment, the method further includes step S110.
[0095] Step S110: sending the content data to the terminal application in the user terminal, so as to display the content data through the terminal application in the user terminal.
[0096] After the content data is acquired, the content data may be sent to a terminal application, and displayed by the terminal application for viewing by the user.
[0097] Through this embodiment, the application startup request is parsed to obtain the information of the application carried therein, and then the corresponding server application instance is obtained according to the application information. The server application is started by directly starting the server application instance. This can avoid starting the desktop launcher, thereby saving server resources and reducing resource usage. The server application can also be started quickly, and the startup process image seen by the user terminal does not include the image of starting the desktop launcher and clicking the server application icon, thereby avoiding a sense of disconnection in the user's use and providing a better user experience.
[0098] In addition, in addition to improving the startup speed of cloud applications and saving server resources, it can also provide richer customized needs. Corresponding parameters can be carried in the application startup request as needed, so as to obtain the corresponding content data through the server application. The content data obtained by the server application can be sent to the corresponding terminal application and displayed by the corresponding terminal application to achieve interaction with the user, thereby meeting more customized needs and making operation simple.
[0099] The cloud application startup method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones, etc.) and PCs, etc.
[0100] Embodiment 4
[0101] like Figure 4a , showing a step flow chart of a cloud application startup method according to embodiment 4 of the present invention.
[0102] In this embodiment, the implementation process of the cloud application startup method is described from the perspective of a user terminal.
[0103] In this embodiment, the cloud application startup method includes the following steps:
[0104] Step S402: receiving a trigger operation of a user on a terminal application displayed in a user terminal.
[0105] The user terminal can be any appropriate terminal, including but not limited to: a personal computer, a mobile phone, a PAD, a smart speaker, a smart watch, a smart computer, etc.
[0106] In order to reduce the storage pressure of user terminals, break through the computing power limitations of user terminals, and further reduce the size and weight of user terminals, the terminal application on the user terminal can be used only for interaction with the user, and the application data processing is performed by the server application. Through the data transmission between the terminal application and the server application, the user can obtain complete services.
[0107] When the user needs to use the terminal application, the terminal application can be triggered by any appropriate operation, including but not limited to: clicking, triggering by voice, triggering by expression, triggering by gesture, etc.
[0108] Step S404: generating an application start request for instructing the server to start the server application corresponding to the terminal application according to the information of the application corresponding to the trigger operation, and sending the application start request.
[0109] The application information includes but is not limited to the terminal application identifier, such as name, ID, etc. The user terminal generates an application startup request according to the application information to instruct the server to start the corresponding server application through the request. The server can start the server application in the manner of the aforementioned embodiment 1 or 2 to reduce resource usage and prevent the user from seeing the desktop launcher image.
[0110] Step S406: Acquire the operation result data returned in response to the application start request, and display the operation result data through the terminal application.
[0111] The operation result data is data acquired by the server application started by the server through the cloud application startup method described in the above embodiment 1 or 2. For example, the operation result data includes but is not limited to: home page data after the server application is started, content data acquired based on content parameters, etc.
[0112] The following is a detailed description of the implementation process of the cloud application startup method based on a specific usage scenario:
[0113] like Figure 4b As shown, taking the user terminal as a mobile phone as an example. An icon of a terminal application is displayed on the screen of the user terminal. The user clicks on the icon, and the user terminal generates an application start request based on the click operation. In this embodiment, the application start request is customized, and the application information is added to the application start request sent by the user terminal to the server, and content parameters may also be included as needed. Since the terminal application and the server application usually have the same identifier, the application information can indicate the server application requested to be started through any appropriate identifier such as the name of the terminal application. The content parameter can be any appropriate parameter depending on the type of the server application.
[0114] Since the operating system used to run the server application in the server runs in a container or a virtual machine, the application startup request may include: the container address of the operating system (such as http: / / 112.13.73.148:8095), the keyword "apl", and the application information. Different keywords are used to indicate the type of content that follows, and the keyword "apl" is used to indicate that the content that follows is information about the server application. Keywords may also include "dir", which is used to indicate that the content that follows is a content parameter.
[0115] The server parses the parameters of the application launch request and obtains the application information it carries, such as "MMM". Based on the application information, the server searches the corresponding table pre-stored on the server and finds the activity corresponding to MMM, such as "com.aaaaa.bbbbb.ccccc / com.aaaaa.bbbbb.ccccc.SGameActivity".
[0116] In this case, if Figure 4b As shown in the branch, according to the server application instance, the server enters the container (container) running the operating system through the docker command (command), and uses the startup command in the operating system to start the server application instance, thereby entering the server application startup process. For example, according to the information of the server application instance, the amstart command is used to obtain the AMS service, that is, to instruct the activity manager service creation process of the service service of the operating system, and execute the existing normal server application startup process.
[0117] In another case, if the server application instance cannot be found in the corresponding table, then Figure 4b As shown in the no branch, the name of the launchable-activity is obtained from the installation package corresponding to the application information through the service manager of the operating system using the operating system's own tools such as the aapt tool as the information of the server application instance. Then, through the binder mechanism, the am start command is used to instruct the activitymanager service of the service to create a process and execute the existing normal server application startup process.
[0118] For example, the command is: abd shell am start–n com.aaaaa.bbbbb.ccccc / com.aaaaa.bbbbb.ccccc.SGameActivity.
[0119] Of course, different tools can be used to obtain the launchable-activity from the installation package for different operating systems, and this usage scenario does not limit this.
[0120] After the server application is started, the operation result data in the server application (such as the home page data after the server application is started) can be sent to the mobile phone for display through the mobile phone (display includes display and / or playback, etc.).
[0121] This startup process is different from the startup process in the prior art (such as Figure 4c As shown in FIG. 1 , there is no need to convert the input event in the start request sent by the user terminal into a click (touch) event of the server application icon displayed in the desktop launcher in the operating system running on the server to start the server application. In this way, it is possible to avoid starting the desktop launcher on the server, thereby preventing waste of server resources.
[0122] In addition, the complexity of the server-side application startup process can be reduced. The operation result data received by the user terminal (i.e., the streaming content pushed down from the server) does not have the desktop launcher interface, and when the user terminal clicks the return button of the terminal application, the desktop launcher interface will not be seen, avoiding the user feeling two operating systems, thereby improving the user experience.
[0123] In this usage scenario, if the application startup request carries content parameters, after starting the server application, the server can call the content acquisition interface of the server application according to the content parameters to obtain the corresponding content data, and send the content data to the user terminal for display.
[0124] To sum up, in this embodiment, by increasing the information carried in the application startup request, such as application information, content parameters, etc., the startup process of the cloud application is optimized, which not only saves server resources, but also makes the desktop displayed by the user terminal unique. The running result data of the server application is output through the terminal application of the user terminal, showing the content required by the user, giving the user a better experience.
[0125] Embodiment 5
[0126] like Figure 5 A flow chart of the steps of a cloud application startup method according to Embodiment 5 of the present invention is shown.
[0127] In this embodiment, the cloud application startup method includes the following steps:
[0128] Step S502: according to the acquired trigger operation for the terminal application, the software development kit configured in the terminal application is called to start the server application corresponding to the terminal application in the server through the server application instance corresponding to the application information of the terminal application according to the software development kit.
[0129] During the development phase of the terminal application, developers can configure a software development kit (SDK) in the terminal application. The software development kit has the function of enabling the server to start the server application corresponding to the terminal application, so that the modularization of functions can be achieved. Different terminal applications can enable the server to start the corresponding server application by configuring the software development kit. There is no need for each terminal application to develop this function independently, which reduces duplication of work, reduces development costs, and improves development efficiency.
[0130] When a terminal application configured with a software development kit is installed on a user terminal and triggered by a user (such as being clicked), the user terminal receives the triggering operation on the terminal application, and based on the triggering operation, calls the configured software development kit to start the server application through the software development kit.
[0131] The software development tool may instruct the server to start a server application corresponding to the terminal application in any appropriate manner as needed, and this embodiment does not limit this.
[0132] For example, the software development kit starts the server application corresponding to the terminal application in the server through the following steps A and B:
[0133] Step A: Generate an application start request carrying the application information according to the application information of the terminal application.
[0134] The application information of the terminal application can be the name, logo, etc. of the terminal application, as long as it can indicate the terminal application. The software development kit generates an application startup request carrying the application information based on the application information. For example, an application startup request is generated based on the address of the container used to run the server application in the server (such as http: / / 112.13.73.148:8095) and the application information (such as the name of the terminal application). The application information is indicated by preset keywords in the application startup request to facilitate parsing by the server. The application startup request is, for example, http: / / 112.13.73.148:8095 / ? apl=MMM, where "MMM" can be the name of the terminal application.
[0135] Step B: Sending the application start request to the server to instruct the server to determine the corresponding server application instance according to the application information, and start the corresponding server application according to the server application instance.
[0136] The software development kit can send an application startup request to the server, and the server obtains the application information carried therein by parsing the parameters of the application startup request, and then determines the corresponding server application instance (such as the main activity corresponding to the server application) according to the application information, and completes the startup of the server application by starting the server application instance. The process of the server starting the server application according to the application startup request can be as described in any of the above-mentioned embodiments one to three, so it will not be repeated here.
[0137] Step S504: obtaining the operation result data returned by the started server application, and displaying the operation result data through the terminal application.
[0138] After the server application is started, it will return the operation result data (such as the home page data or login interface data displayed after startup) to the terminal application. The terminal application displays the operation result data for the user to view, thereby realizing interaction with the user.
[0139] It should be noted that the terminal application may be a video player application, a music player application, a browser, a game application, etc. This embodiment does not limit this, and the server application corresponds to the terminal application.
[0140] Through this embodiment, a software development kit is configured in the terminal application. Since the software development kit has the function of automatically instructing the server to start the server application corresponding to the terminal application based on the application information, the developer of the terminal application can easily configure the software development kit in the terminal application, so that the developed terminal application has the function of quickly starting the corresponding server application, thereby reducing development costs.
[0141] In addition, since the software development kit enables the server to directly start the server application by starting the server application instance, the terminal application configured with the software development kit can solve the problem that the server application needs to start the desktop launcher in the prior art, which causes waste of server resources and the user sees the server desktop launcher interface in the terminal application interface when starting the corresponding server application.
[0142] The cloud application startup method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones, etc.) and PCs, etc.
[0143] Embodiment 6
[0144] like Figure 6 A step flow chart of a cloud application startup method according to embodiment 6 of the present invention is shown.
[0145] In this embodiment, the configuration of the software development kit on the server is taken as an example to illustrate the process of starting the server application corresponding to the terminal application through the software development kit. Of course, in other embodiments, the software development kit can also be configured in the user terminal or other third-party servers or clouds, and this embodiment does not limit this.
[0146] The cloud application startup method of this embodiment includes the following steps:
[0147] Step S602: receiving a call request from a terminal application.
[0148] When a prepackaged software development kit (SDK) is configured in the terminal application, the software development kit can be called during the operation of the terminal application, and the software development kit receives a call request. The call request only needs to meet the grammatical specification preset by the software development kit, and this embodiment does not limit this.
[0149] The calling request may carry application information of the terminal application (such as the name of the terminal application) and the like.
[0150] Step S604: According to the application information of the terminal application carried in the calling request, instruct the server to start the server application corresponding to the terminal application.
[0151] In one feasible method, step S604 can be implemented as follows: based on the application information of the terminal application, generate an application startup request carrying the application information; send the application startup request to the server to instruct the server to determine the corresponding server application instance based on the application information, and start the corresponding server application based on the server application instance.
[0152] In this implementation process, the method of generating an application startup request and the process of starting the server application according to the application startup request can be similar to the process of starting the server application according to the application startup request described in any of the above-mentioned embodiments one to three, so it will not be repeated here.
[0153] Alternatively, in another feasible manner, step S604 may be implemented as the following steps I to III.
[0154] Step I: According to the application information of the terminal application, determine the server application instance corresponding to the application information.
[0155] For example, the software development kit determines whether there is a server application instance corresponding to the application information in the instance correspondence relationship according to the preset instance correspondence relationship. If not, the installation package of the corresponding server application can be obtained according to the application information, and the server application instance therein can be obtained by parsing the installation package, and then step II is performed. For example, the application information is the name of the terminal application "MMM". Since the name of the terminal application is consistent with or matches the name of the server application, the installation package of the corresponding server application can be obtained according to the name of the terminal application, and then the installation package is parsed to obtain the server application instance therein (such as the name of the server application instance).
[0156] On the contrary, if there is a corresponding server application instance in the instance correspondence, step II can be directly executed.
[0157] Step II: Generate a startup command for instructing to start the server instance according to the server application instance.
[0158] For example, a start command is generated according to the name of the server application instance. The start command may be expressed as: abdshell am start–n com.aaaaa.bbbbb.ccccc / com.aaaaa.bbbbb.ccccc.SGameActivity.
[0159] Of course, different startup commands may be generated according to different requirements, and this embodiment does not limit this.
[0160] Step III: Send the startup command to the server, so that the server starts the server application instance and completes the startup of the corresponding server application.
[0161] The software development kit sends a startup command to the server, and the server executes the startup command to start the server application instance, thereby completing the startup of the server application. It should be noted that the process of completing the startup of the server application can adopt any appropriate method in the prior art, and this embodiment does not limit this.
[0162] In this way, the terminal application can conveniently integrate the function of enabling the server to start the corresponding server application by configuring the software development kit, without the need for a large amount of development work, or only a small amount of modification is required to the existing terminal application to enable the terminal application, so that the server can quickly start the server application, and there is no need to start the desktop launcher, thereby reducing the server's resource usage and avoiding the user from seeing the desktop launcher screen. It ensures that when the user clicks the return button on the user terminal, the desktop launcher screen will not be displayed, reducing the sense of disconnection when the user uses it. Optionally, in this embodiment, in addition to being able to instruct the server to start the server application, the software development kit can also implement debugging, troubleshooting and other functions for the terminal application and / or server application. In this case, the method also includes the following steps:
[0163] Step S606: Generate an application processing request carrying operation parameters corresponding to the interactive operation according to the acquired user's interactive operation on the terminal application, and send the application processing request to the server application.
[0164] For example, in a specific implementation, taking the terminal application as a game application, after starting the corresponding server application, the server application returns the login interface data to the terminal application, and the terminal application displays the login interface. The user can enter the account and password in the login interface and click the login button (these operations can be understood as interactive operations). The software development kit is called by the terminal application to obtain the interactive operation.
[0165] For these interactive operations, the parameters (also understood as keywords) corresponding to these interactive operations can be determined, such as the parameter corresponding to the account input can be account, and the account content is used as the value of the account parameter, the parameter corresponding to the password input can be password, and the password content is used as the value of the password parameter, and the parameter corresponding to the login operation can be login, and the parameter value of login is "1" which can indicate a login request. The application processing request generated based on this is, for example: http: / / 112.13.73.148:8095 / ?apl=MMM&login=1&account=XXX&password=PPP.
[0166] By sending the application processing request to the server application, the server application parses the application processing request, obtains the parameters corresponding to the interactive operation carried in the application processing request, generates the corresponding operation command according to the parameters, and enables the server application to execute the operation command (for example, according to the aforementioned application processing request, an operation command for logging in to the server application MMM with account XXX and password PPP can be generated), thereby obtaining the operation result data (such as the game homepage interface data after login), and returns the operation result data to the terminal application, so that the terminal application displays the game homepage interface after login.
[0167] If the server application cannot correctly respond to the application processing request, it means that there may be an exception (BUG) in the server application or the terminal application, so it is necessary to perform exception troubleshooting on the server application and / or the terminal application. At this time, the server application can return an exception message to the software development kit to enable it to perform exception troubleshooting.
[0168] In this embodiment, abnormality troubleshooting can be implemented through steps S608 to S610 included in the method.
[0169] Step S608: determining a corresponding operation event for the server application according to the application processing request, and sending the operation event to the server application so that the server application responds to the operation event.
[0170] For example, still taking the aforementioned application processing request as an example, when the application processing request cannot be responded to correctly, the interactive operation corresponding to the application processing request can be converted into an input event (input event) for the server application, that is, it is converted into an input event of entering the account and password and clicking the login button in the login interface of the server application. If it can be correctly converted into an input event, it means that there is no abnormality in the terminal application.
[0171] By sending these input events to the server, the server converts them into input events for the server application through the operating system, so that the server application responds to the operation events.
[0172] Step S610: Determine fault information according to the response result of the server application to the operation event.
[0173] If the server application cannot correctly respond to an input event, it can return a response result indicating an error, and then determine based on the response result that the processing logic used by the server application to process the input event may be abnormal, and it can be optimized. Through this embodiment, the operation of the terminal application and / or the server application, user behavior, etc. can be simulated into parameters to test whether the server application and / or the terminal application can run correctly. When a fault occurs, the simulated parameters can be restored to the input event of the server application for troubleshooting, thereby realizing troubleshooting and optimization of the server application and / or the terminal application.
[0174] The cloud application startup method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as tablet computers, mobile phones, etc.) and PCs, etc.
[0175] Embodiment 7
[0176] Reference Figure 7 , shows a structural block diagram of a cloud application startup device according to embodiment 7 of the present invention.
[0177] The cloud application startup device of this embodiment includes:
[0178] The first receiving module 702 is used to receive an application start request sent by a terminal application in a user terminal when the terminal application is triggered;
[0179] The parsing module 704 is used to perform parameter parsing on the application start request, and obtain the application information carried in the application start request according to the parameter parsing result;
[0180] The determination module 706 is used to determine a server application instance corresponding to the application information, and start the corresponding server application according to the server application instance.
[0181] Optionally, when determining the server application instance corresponding to the information of the application, the determination module 706 is used to determine whether there is a server application indicated by the information of the application in a preset instance correspondence relationship based on the information of the application, and the instance correspondence relationship is used to indicate the server application instance corresponding to each server application; if so, obtain the server application instance corresponding to the server application indicated by the information of the application.
[0182] Optionally, the determination module 706 is also used to, when determining a server application instance corresponding to the application information, if it does not exist, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server according to the application information.
[0183] Optionally, the determination module 706 is used to generate a query command carrying the name of the installation package corresponding to the application information based on the application information when obtaining the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server based on the application information; query the installation package corresponding to the name of the installation package in the server based on the query command, and obtain the server application instance corresponding to the application information based on the query result.
[0184] Optionally, the determination module 706 is used to generate a startup command carrying information of the server application instance when starting the corresponding server application according to the server application instance; start the server application instance according to the startup command, and start the corresponding server application according to the started server application instance.
[0185] Optionally, the parameter parsing result further includes content parameters for indicating the content to be acquired, and the device further includes:
[0186] The calling module 708 is used to call the content acquisition interface of the started server application according to the content parameters to obtain content data corresponding to the content parameters.
[0187] Optionally, the device further comprises:
[0188] The first sending module 710 is configured to send the content data to a terminal application in the user terminal, so as to display the content data through the terminal application in the user terminal.
[0189] The cloud application startup device of this embodiment is used to implement the corresponding cloud application startup methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the cloud application startup device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0190] Embodiment 8
[0191] Reference Figure 8 , shows a structural block diagram of a cloud application startup device according to embodiment eight of the present invention.
[0192] The cloud application startup device of this embodiment includes:
[0193] The second receiving module 802 is used to receive a trigger operation of a user on a terminal application displayed in a user terminal;
[0194] A second sending module 804 is used to generate an application start request for instructing the server to start the server application corresponding to the terminal application according to the information of the application corresponding to the trigger operation, and send the application start request;
[0195] The acquisition module 806 is used to obtain the operation result data returned in response to the application startup request, and display the operation result data through the terminal application, wherein the operation result data is the data obtained by the server application started by the cloud application startup device described in Example 4.
[0196] The cloud application startup device of this embodiment is used to implement the corresponding cloud application startup methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the cloud application startup device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0197] Embodiment 9
[0198] Reference Fig. 9 , shows a structural block diagram of a cloud application startup device according to embodiment 9 of the present invention.
[0199] The cloud application startup device of this embodiment includes:
[0200] A calling module 902 is used to call a software development kit configured in the terminal application according to the acquired trigger operation on the terminal application, so as to start a server application corresponding to the terminal application in the server through the software development kit according to the server application instance corresponding to the application information of the terminal application;
[0201] The acquisition and display module 904 is used to obtain the operation result data of the server application returned by the software development kit in response to the call, and display the operation result data through the terminal application.
[0202] The cloud application startup device of this embodiment is used to implement the corresponding cloud application startup methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the cloud application startup device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0203] Embodiment 10
[0204] Reference Fig.10 , shows a structural block diagram of a cloud application startup device according to embodiment 10 of the present invention.
[0205] The cloud application startup device of this embodiment includes:
[0206] The call receiving module 1002 is used to receive the call request of the terminal application;
[0207] The application startup module 1004 is used to instruct the server to start the server application corresponding to the terminal application according to the application information of the terminal application carried in the calling request.
[0208] Optionally, the application startup module 1004 is used to generate an application startup request carrying the information of the application based on the information of the application of the terminal application; send the application startup request to the server to instruct the server to determine the corresponding server application instance based on the information of the application, and start the corresponding server application based on the server application instance.
[0209] Optionally, the application startup module 1004 is used to determine the server application instance corresponding to the application information of the terminal application based on the application information of the terminal application; generate a startup command for instructing to start the server instance based on the server application instance; send the startup command to the server so that the server starts the server application instance and completes the startup of the corresponding server application.
[0210] The cloud application startup device of this embodiment is used to implement the corresponding cloud application startup methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here. In addition, the functional implementation of each module in the cloud application startup device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be repeated here.
[0211] Embodiment 11
[0212] Reference Fig.11 , shows a schematic diagram of the structure of an electronic device according to Embodiment 11 of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0213] like Fig.11 As shown, the electronic device may include: a processor (processor) 1102 , a communication interface (Communications Interface) 1104 , a memory (memory) 1106 , and a communication bus 1108 .
[0214] in:
[0215] The processor 1102 , the communication interface 1104 , and the memory 1106 communicate with each other via a communication bus 1108 .
[0216] The communication interface 1104 is used to communicate with other electronic devices such as terminal devices or servers.
[0217] Processor 1102 is used to execute program 1110, and specifically can execute the relevant steps in the above-mentioned cloud application startup method embodiment.
[0218] Specifically, the program 1110 may include program codes, which include computer operation instructions.
[0219] The processor 1102 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0220] The memory 1106 is used to store the program 1110. The memory 1106 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0221] Program 1110 can be specifically used to enable processor 1102 to perform the following operations: receive an application startup request sent when a terminal application in a user terminal is triggered; perform parameter parsing on the application startup request, and obtain information about the application carried in the application startup request based on the parameter parsing result; determine a server application instance corresponding to the application information, and start the corresponding server application based on the server application instance.
[0222] In an optional embodiment, program 1110 is also used to enable processor 1102 to determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship when determining a server application instance corresponding to the information of the application, and the instance correspondence relationship is used to indicate the server application instance corresponding to each server application; if so, obtain the server application instance corresponding to the server application indicated by the information of the application.
[0223] In an optional embodiment, program 1110 is also used to enable processor 1102 to obtain, based on the application information, an installation package corresponding to the application information stored in the server, the server application instance corresponding to the application information if it does not exist when determining the server application instance corresponding to the application information.
[0224] In an optional embodiment, program 1110 is also used to enable processor 1102 to generate a query command carrying the name of the installation package corresponding to the application information based on the application information when obtaining a server-side application instance corresponding to the application information from the installation package corresponding to the application information stored in the server based on the application information; query the installation package corresponding to the name of the installation package in the server based on the query command, and obtain the server-side application instance corresponding to the application information based on the query result.
[0225] In an optional embodiment, program 1110 is also used to enable processor 1102 to generate a startup command carrying information of a server application instance when starting the corresponding server application according to the server application instance; start the server application instance according to the startup command, and start the corresponding server application according to the started server application instance.
[0226] In an optional implementation, the parameter parsing result also includes content parameters for indicating the content to be acquired, and the program 1110 is further used to enable the processor 1102 to call the content acquisition interface of the started server application according to the content parameters to acquire content data corresponding to the content parameters.
[0227] In an optional implementation, the program 1110 is further configured to enable the processor 1102 to send the content data to a terminal application in the user terminal, so as to display the content data through the terminal application in the user terminal.
[0228] Alternatively, program 1110 can be specifically used to enable processor 1102 to perform the following operations: receive a trigger operation from a user on a terminal application displayed in a user terminal; generate an application start request for instructing the server to start a server application corresponding to the terminal application based on information about the application corresponding to the trigger operation, and send the application start request; obtain operation result data returned in response to the application start request, and display the operation result data through the terminal application, wherein the operation result data is data obtained by the server application started by the above-mentioned cloud application start method.
[0229] Alternatively, program 1110 can be specifically used to enable processor 1102 to perform the following operations: based on the acquired trigger operation on the terminal application, call the software development kit configured in the terminal application, so as to start the server application corresponding to the terminal application in the server side through the software development kit according to the server application instance corresponding to the application information of the terminal application; obtain the operation result data returned by the started server application, and display the operation result data through the terminal application.
[0230] Alternatively, the program 1110 may be specifically configured to enable the processor 1102 to perform the following operations: receive a call request of a terminal application; and instruct the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the call request.
[0231] In an optional embodiment, program 1110 is also used to enable processor 1102 to generate an application startup request carrying information of the application based on the application information of the terminal application when instructing the server to start the server application corresponding to the terminal application based on the application information of the terminal application carried in the call request; send the application startup request to the server to instruct the server to determine the corresponding server application instance based on the application information, and start the corresponding server application based on the server application instance.
[0232] In an optional embodiment, program 1110 is also used to enable processor 1102 to determine a server application instance corresponding to the application information based on the application information of the terminal application when instructing the server to start the server application corresponding to the terminal application based on the application information of the terminal application carried in the call request; generate a startup command for instructing to start the server instance based on the server application instance; and send the startup command to the server so that the server starts the server application instance and completes the startup of the corresponding server application.
[0233] The specific implementation of each step in program 1110 can refer to the corresponding description of the corresponding steps and units in the above-mentioned cloud application startup method embodiment, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0234] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present invention.
[0235] The above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk), or as computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor, or hardware, the cloud application startup method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the cloud application startup method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the cloud application startup method shown herein.
[0236] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0237] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A cloud application startup method, comprising: Receiving an application start request sent by a terminal application in a user terminal when it is triggered; Performing parameter parsing on the application start request, and acquiring information about the application carried in the application start request according to the parameter parsing result; Determine a server application instance corresponding to the application information, and start a corresponding server application according to the server application instance; The application information is used to indicate the terminal application triggered in the user terminal; The determining of the server application instance corresponding to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The determining of the server application instance corresponding to the application information further includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
2. The method according to claim 1, wherein: The acquiring, according to the information of the application, from an installation package corresponding to the information of the application stored in the server, a server application instance corresponding to the information of the application, comprises: Generate, according to the information of the application, a query command carrying the name of the installation package corresponding to the information of the application; According to the query command, the server is queried for an installation package corresponding to the name of the installation package, and a server application instance corresponding to the application information is obtained according to the query result.
3. The method according to claim 1, wherein: The starting a corresponding server application according to the server application instance includes: Generate a startup command carrying information of the server application instance; The server application instance is started according to the start command, and the corresponding server application is started according to the started server application instance.
4. The method according to claim 1, wherein: The parameter parsing result also includes content parameters for indicating the content to be obtained, and the method further includes: According to the content parameters, the content acquisition interface of the started server application is called to acquire content data corresponding to the content parameters.
5. The method according to claim 4, wherein: The method further comprises: The content data is sent to a terminal application in the user terminal, so that the content data is displayed through the terminal application in the user terminal.
6. A cloud application startup method, comprising: Receiving a trigger operation from a user on a terminal application displayed in a user terminal; Generate an application start request for instructing the server to start the server application corresponding to the terminal application according to the information of the application corresponding to the trigger operation, and send the application start request; Obtain operation result data returned in response to the application startup request, and display the operation result data through the terminal application, wherein the operation result data is data obtained by the server-side application started by the cloud application startup method described in any one of claims 1-5.
7. A cloud application startup method, comprising: According to the acquired trigger operation for the terminal application, a software development kit configured in the terminal application is called to start a server application corresponding to the terminal application in the server through the software development kit according to the server application instance corresponding to the application information of the terminal application; Obtaining the operation result data returned by the started server application, and displaying the operation result data through the terminal application; The application information is used to indicate the terminal application triggered in the terminal; The method for the server to determine the server application instance corresponding to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The method for the server to determine the server application instance corresponding to the application information further includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
8. A cloud application startup method, comprising: Receive a call request from a terminal application; Instructing the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the calling request; The instructing the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the calling request includes: Generate an application start request carrying the application information according to the application information of the terminal application; Sending the application start request to the server to instruct the server to determine a corresponding server application instance according to the application information, and start the corresponding server application according to the server application instance; The application information is used to indicate the terminal application triggered in the terminal; The method for the server to determine the corresponding server application instance according to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The method for the server to determine the corresponding server application instance according to the application information also includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
9. The method according to claim 8, wherein: The instructing the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the calling request includes: Determining, according to the information of the application applied by the terminal, a server application instance corresponding to the application information; According to the server application instance, generating a startup command for instructing to start the server instance; The startup command is sent to the server, so that the server starts the server application instance and completes the startup of the corresponding server application.
10. A cloud application startup device, comprising: A first receiving module, configured to receive an application start request sent by a terminal application in a user terminal when the terminal application is triggered; A parsing module, used to perform parameter parsing on the application startup request, and obtain the application information carried in the application startup request according to the parameter parsing result; A first determining module, configured to determine a server application instance corresponding to the information of the application, and start a corresponding server application according to the server application instance; The application information is used to indicate the terminal application triggered in the user terminal; The determining of the server application instance corresponding to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The determining of the server application instance corresponding to the application information further includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
11. A cloud application startup device, comprising: A second receiving module is used to receive a trigger operation of a user on a terminal application displayed in a user terminal; A second sending module, used to generate an application start request for instructing the server to start the server application corresponding to the terminal application according to the information of the application corresponding to the trigger operation, and send the application start request; An acquisition module is used to acquire operation result data returned in response to the application startup request, and to display the operation result data through the terminal application, wherein the operation result data is data acquired by the server application started by the cloud application startup device according to claim 10.
12. A cloud application startup device, comprising: A calling module, configured to call a software development kit configured in the terminal application according to the acquired triggering operation on the terminal application, so as to start a server application corresponding to the terminal application in the server through the software development kit according to the server application instance corresponding to the application information of the terminal application; an acquisition and display module, used for acquiring the operation result data of the server application returned by the software development kit in response to the call, and displaying the operation result data through the terminal application; The application information is used to indicate the terminal application triggered in the terminal; The method for the server to determine the server application instance corresponding to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The method for the server to determine the server-side application instance corresponding to the application information also includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
13. A cloud application startup device, comprising: A call receiving module, used for receiving a call request from a terminal application; An application startup module, used to instruct the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the call request; The instructing the server to start a server application corresponding to the terminal application according to the application information of the terminal application carried in the calling request includes: Generate an application start request carrying the application information according to the application information of the terminal application; Sending the application start request to the server to instruct the server to determine a corresponding server application instance according to the application information, and start the corresponding server application according to the server application instance; The application information is used to indicate the terminal application triggered in the terminal; The method for the server to determine the corresponding server application instance according to the application information includes: Determine, based on the information of the application, whether there is a server application indicated by the information of the application in a preset instance correspondence relationship, wherein the instance correspondence relationship is used to indicate a server application instance corresponding to each server application; If so, obtaining a server application instance corresponding to the server application indicated by the application information; The method for the server to determine the corresponding server application instance according to the application information also includes: If not, then according to the application information, obtain the server application instance corresponding to the application information from the installation package corresponding to the application information stored in the server.
14. An electronic device, comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform an operation corresponding to the cloud application startup method as described in any one of claims 1-5, or to perform an operation corresponding to the cloud application startup method as described in claim 6, or to perform an operation corresponding to the cloud application startup method as described in claim 7, or to perform an operation corresponding to the cloud application startup method as described in any one of claims 8-9.
15. A computer storage medium having a computer program stored thereon, which, when executed by a processor, implements the cloud application startup method as described in any one of claims 1 to 5, or executes the cloud application startup method as described in claim 6, or executes the cloud application startup method as described in claim 7, or executes the cloud application startup method as described in any one of claims 8 to 9.