Cloud application starting method

By sending multiple application instance running requests to the cloud service platform and creating independent mirror windows, the problem of being unable to open multiple cloud applications is solved, the multi-open function on the terminal device is realized, and the user experience and functional types are improved.

CN118550651APending Publication Date: 2024-08-27LENOVO (BEIJING) LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410705386.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

Existing cloud applications cannot be opened multiple times on terminal devices. Due to system design and memory size constraints, multiple cloud application instances cannot be run at the same time.

Method used

By sending multiple application instance running requests to the cloud service platform, the running window data is obtained and a mirror window is created. The stack structure is used to run each mirror window independently to realize the simultaneous operation of multiple cloud applications.

Benefits of technology

The multi-open function of cloud applications is implemented on the terminal device, which improves the user experience, reduces the demand for device resources, provides an intuitive interface, and expands the types of functions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550651A
    Figure CN118550651A
Patent Text Reader

Abstract

The invention provides a cloud application starting method, which is applied to electronic equipment, and comprises the following steps: sending at least two application instance operation requests based on a target application to a cloud service platform, and obtaining operation window data of the target application for operating at least two application instances; and creating at least two mirror windows of the target application based on the running window data of the at least two application examples. The cloud application starting method is applied to a cloud service platform, and comprises the following steps: in response to at least two application instance operation requests based on a target application sent by a target device, obtaining an application file of the target application; obtaining a target virtual machine on the cloud service platform, and running at least two application examples of the target application based on the target virtual machine; and sending the running window data of the at least two application examples to the target equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of cloud computing, and specifically to a cloud application startup method. Background Art

[0002] "Cloud application" is an application product derived from cloud computing technology. It changes the traditional software usage mode of "local installation and local calculation" on the terminal into a "ready-to-use" service. It connects and controls the remote server cluster through the Internet or local area network to perform logical operations of cloud applications, and provides cloud application services to terminal users, which can reduce the configuration requirements for the terminal.

[0003] In traditional cloud application scenarios, there is a one-to-one correspondence between the application window opened in the cloud and the mirror window on the device side. For example, due to limitations such as the device side system design and memory size, the Android device side can only open one mirror window for an application window. Every time a new application or a new window of the same application is started in the cloud, the mirror window on the Android device side will be reset to respond to and display the latest cloud application window mapping. In other words, the Android device side does not support "multi-opening" of cloud applications and cannot use multiple cloud applications at the same time. Summary of the invention

[0004] In view of this, the present disclosure provides a cloud application startup method to solve the problem that a terminal cannot realize "multiple openings" of cloud applications.

[0005] A first aspect of an embodiment of the present disclosure provides a cloud application startup method, which is applied to an electronic device, and the method includes: sending a request to run at least two application instances based on a target application to a cloud service platform, and obtaining running window data of the target application running the at least two application instances; and creating at least two mirror windows of the target application based on the running window data of the at least two application instances.

[0006] According to an embodiment of the present disclosure, the at least two application instances are run based on the same target application; or, a first part of the instances of the at least two application instances are run based on a first target application, and a second part of the instances of the at least two application instances are run based on a second target application, and the first target application is different from the second target application.

[0007] According to an embodiment of the present disclosure, the creating at least two mirror windows of the target application based on the running window data of the at least two application instances includes: obtaining identification information of each of the running window data, the identification information identifying the correspondence between each application instance and the running window data; and creating at least two mirror windows of the target application based on the identification information.

[0008] According to an embodiment of the present disclosure, creating at least two mirror windows of the target application based on the identification information includes: matching the identification information with identification information of an existing mirror window of the electronic device; after determining based on a matching result that there is no mirror window matching the identification information, respectively creating mirror windows based on running window data of the at least two application instances, and binding the mirror windows to the identification information.

[0009] According to an embodiment of the present disclosure, the method further includes: setting a stack structure of the at least two mirror windows based on preset parameters, wherein the preset parameters represent that the stack structure can and only can store one mirror window; and setting the at least two mirror windows in a corresponding stack structure so that the mirror window runs based on the stack structure.

[0010] A second aspect of an embodiment of the present disclosure provides a cloud application startup method, which is applied to a cloud service platform, wherein the cloud service platform stores an application file of at least one target application, including: obtaining the application file of the target application in response to a request for running at least two application instances based on the target application sent by a target device; obtaining a target virtual machine on the cloud service platform, and running at least two application instances of the target application based on the target virtual machine; and sending running window data of the at least two application instances to the target device.

[0011] According to an embodiment of the present disclosure, the at least two application instances are run based on the same target application; or, a first part of the instances of the at least two application instances are run based on a first target application, and a second part of the instances of the at least two application instances are run based on a second target application, and the first target application is different from the second target application.

[0012] According to an embodiment of the present disclosure, the at least two application instances are run based on the same target virtual machine; or, a first part of the instances of the at least two application instances are run based on a first target virtual machine, and a second part of the instances of the at least two application instances are run based on a second target virtual machine, and the first target virtual machine is different from the second target virtual machine.

[0013] According to an embodiment of the present disclosure, obtaining the target virtual machine on the cloud service platform includes: determining at least one virtual machine on the cloud service platform that meets a preset condition as the target virtual machine, wherein the preset condition is that the target virtual machine can start at least one application instance of the target application; when the target virtual machine is not obtained, creating a new virtual machine on the cloud service platform as the target virtual machine.

[0014] According to an embodiment of the present disclosure, sending the running window data of the at least two application instances to the target device includes: generating identification information of the at least two application instances, binding the running window data of the at least two application instances with the identification information and sending them to the target device, wherein the identification information identifies the correspondence between each application instance and the running window data. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0016] Figure 1 The application scenario of the cloud application startup method according to an embodiment of the present disclosure is schematically shown;

[0017] Figure 2 A flowchart of a cloud application startup method according to an embodiment of the present disclosure is schematically shown;

[0018] Figure 3 A schematic diagram of a window for starting a cloud application according to an embodiment of the present disclosure is schematically shown;

[0019] Figure 4 A schematic diagram of a window showing a same cloud application running multiple application instances according to an embodiment of the present disclosure is shown;

[0020] Figure 5 A schematic diagram of windows showing different cloud applications running different application instances according to an embodiment of the present disclosure is shown;

[0021] Figure 6 A flowchart of a cloud application startup method according to another embodiment of the present disclosure is schematically shown;

[0022] Figure 7 A schematic diagram schematically shows a target virtual machine running an application instance according to an embodiment of the present disclosure;

[0023] Figure 8 A schematic diagram of the interaction between an electronic device and a cloud service platform according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0024] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0025] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0026] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0027] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.

[0028] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification and features of different embodiments or examples, unless they are contradictory.

[0029] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0030] In order to better understand the technical solution of the present application, the relevant concepts and terms involved in the present application are first explained below.

[0031] Cloud application is a subset of the concept of "cloud computing" and the embodiment of cloud computing technology at the application layer. It is a new type of application that transforms the traditional software usage mode of "local installation and local computing" into a "ready-to-use" service, connecting and controlling remote server clusters through the Internet or local area network to complete business logic or computing tasks.

[0032] An application instance refers to a software that is made into a virtual disk file, mounted on an instance in a cloud server, and runs on the cloud for users to use.

[0033] Activity is the running instance of an application in the Android system. The specific Acitivity instance is managed by the Android system background service ActivityManagerService (abbreviated as AMS)

[0034] Task is responsible for managing the stack of all Activity instances used to implement a function, following the first-in-last-out principle.

[0035] In order to better understand the technical solution of the present disclosure, the related technologies involved in the present disclosure are further introduced in detail below.

[0036] Figure 1 The application scenario 100 of the cloud application startup method according to the embodiment of the present disclosure is schematically shown. It should be noted that: Figure 1 The examples shown are merely scenarios in which the embodiments of the present disclosure can be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure cannot be used in other devices, systems, environments or scenarios.

[0037] like Figure 1 As shown, a user can access the cloud service platform 120 through the electronic device 110, and the cloud service platform 120 can provide cloud application related services for the electronic device 110. Figure 1 In the example shown, there are application A, application B, and application C on the desktop of the electronic device 110. Assuming that these three applications are cloud applications, the user does not need to install these applications in the electronic device 110, but accesses the cloud service platform 120 through the network 130, and the cloud service platform 120 provides the electronic device 110 with logical operations of these applications, and maps the application window reflecting the operation results to the electronic device 110, so that the electronic device 110 can obtain the corresponding cloud application services.

[0038] Optionally, the cloud application may be a game cloud application, an office cloud application, etc., but is not limited thereto.

[0039] The electronic device 110 includes but is not limited to laptop computers, desktop computers, all-in-one computers, mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality / virtual reality devices, super mobile personal computers, netbooks, personal digital assistants, etc. In the application scenario 100, taking the electronic device 110 as an Android phone as an example, due to the limitations of the Android system itself and the limitations of memory resources, only one cloud application window can be opened on a mobile phone. In this case, the mobile phone cannot open another instance based on application A while opening application A. For example, it is impossible to open a social software to log in to account A and then open the social software to log in to account B, which affects the user experience.

[0040] Cloud computer virtual machines, cloud application data areas, and cloud computer management systems can be deployed in the cloud service platform 120. The cloud computer service platform can be implemented through one or more servers (e.g., server 121, server 122, server 123), cloud computer virtual machines can be deployed on these servers, cloud application data areas can be stored on these servers, and cloud computer management systems can also run on these servers. Here, a simple description of the cloud computer virtual machine is given. The virtual machine here can be understood as a cloud server instance, where a cloud server instance can be equivalent to a virtual machine. The most basic computer components such as virtual processors, memory, operating systems, networks, and disks can be included in the virtual machine. The cloud service platform downloads and installs the cloud application in the virtual machine, and runs the cloud application instance based on the virtual machine. When the virtual cloud service platform 120 receives the cloud application startup request sent by the electronic device 110, it will run the application instance on the virtual machine where the cloud application is installed, and provide the running window data of the application instance to the electronic device 110, so as to provide cloud application services to the electronic device 110.

[0041] The network 130 is used to provide a medium for a communication link between the electronic device 110 and the cloud service platform 120. The network 130 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0042] It should be understood that Figure 1 The number and type of the electronic devices 110 and servers in the embodiment are only for illustration. Any number and type of electronic devices 110 and servers may be provided as required.

[0043] The following will be based on Figure 1 The scene described by Figure 2 to Figure 8 The cloud application startup method of the embodiment of the present disclosure is described in detail.

[0044] Figure 2 The flowchart of a cloud application startup method according to an embodiment of the present disclosure is schematically shown.

[0045] like Figure 2 As shown, one embodiment of the present disclosure provides a cloud application startup method, which is applied to an electronic device, and the method includes operations S210 to S220.

[0046] In operation S210, a request for running at least two application instances based on a target application is sent to a cloud service platform, and running window data of at least two application instances of the target application is obtained.

[0047] Cloud applications can be game cloud applications, office cloud applications, etc., but are not limited to these. The cloud service platform can at least provide a target application service for the electronic device. The electronic device may include a display desktop for displaying the cloud application identifier that the cloud service platform can provide services for the electronic device. In response to a user clicking on the identifier of one of the cloud applications (i.e., the target application) on the desktop, the electronic device may generate a run request for the target application and send it to the cloud service platform to request the cloud service platform to run the application instance of the target application. When the cloud service platform runs the application instance of the target application, it generates the running window data of the application instance and sends it to the electronic device. Based on the running window data, the electronic device can create a mirror window of the corresponding application instance locally.

[0048] In one of the embodiments of the present disclosure, when a user of an electronic device needs to open two or more cloud application instances at the same time, a request to run at least two application instances based on a target application can be sent to a cloud service platform to obtain running window data of at least two application instances of the target application, thereby achieving the purpose of opening multiple cloud applications on one electronic device.

[0049] In operation S220, at least two mirror windows of the target application are created based on the execution window data of the at least two application instances.

[0050] In the embodiment of the present disclosure, in order to solve the problem that some electronic devices at this stage can only open a mirror window of an application instance of a cloud application due to system restrictions and other reasons, it is proposed to set up stack structures for mirror windows of different application instances to run respectively. When a user wants to run at least two application instances of a target application simultaneously through an electronic device, the electronic device can create mirror windows respectively after obtaining the running window data of at least two application instances based on operation S210, and run at least two mirror windows of the at least two application instances respectively by creating different stack structures, so that the running processes of each mirror window are independent of each other, and the running window data of each mirror window is prevented from interfering with each other, thereby realizing multiple cloud applications being opened simultaneously on the same electronic device.

[0051] According to the cloud application startup method provided by the embodiment of the present disclosure, on the one hand, by opening the cloud application on the cloud service platform, the logical operations of the cloud application are placed in the cloud to perform, thereby reducing the resource requirements for the local electronic device and achieving lightweight local computing resources of the electronic device; on the one hand, the cloud application can directly create a mirror window on the local electronic device. Compared with directly displaying the cloud desktop of the cloud service platform on the electronic device, the mirror window of the cloud application can provide the user with the required interface more intuitively and reduce the interference of unnecessary elements on the cloud desktop; on the one hand, the cloud service platform can be used to realize multiple openings of cloud applications. The local electronic device only needs to open a mirror window for each application instance to achieve the effect of multiple openings of local applications, providing convenience for users.

[0052] Figure 3 A schematic diagram of a window for starting a cloud application according to an embodiment of the present disclosure is shown schematically.

[0053] like Figure 3 As shown, after the electronic device obtains the running window data of at least two cloud application instances, it creates mirror windows based on the running window data of the at least two cloud application instances, wherein each mirror window runs based on a stack structure.

[0054] Running the mirror window based on the stack structure includes: setting a stack structure of at least two mirror windows based on preset parameters, wherein the preset parameters indicate that the stack structure can and only can store one mirror window; setting at least two mirror windows in corresponding stack structures, so that the mirror window runs based on the stack structure.

[0055] Taking an electronic device with an Android system as an example, when the electronic device receives the running window data from the cloud service platform, a mirror window Activity instance is created based on the running window data of at least two cloud application instances under the scheduling of the AMS; a Task stack is created for each mirror window Activity instance, and a thread is started to run each mirror window Activity instance, thereby solving the problem that multiple cloud applications cannot be opened on the Android device side. When creating a Task task stack, in order to ensure the independence between each mirror window Activity instance and prevent problems such as data crosstalk and window coverage between each mirror window Activity instance, a one-to-one relationship between the Task task stack and the mirror window Activity instance is achieved by setting the launchMode mode of the Activity and preset parameters such as the taskAffinity attribute, wherein the taskAffinity attribute is used to set the Task task stack corresponding to the mirror window Activity instance, identify the mapping relationship between the mirror window Activity instance and the Task task stack, and the launchMode mode can be set to the "singletask" mode, combined with the "singleInstance" mode and the "singleInstancePerTask" mode, to limit a mirror window Activity instance to be instantiated and located in a Task task stack with the same taskAffinity attribute. It should be noted that this is only a schematic description and is not limited to this. In electronic devices using other systems, a stack structure can also be used to realize multiple openings of cloud application windows.

[0056] When the electronic device sends at least two application instance execution requests based on the target application to the cloud service platform, the at least two application instances can be executed based on the same target application.

[0057] Figure 4 The diagram schematically shows a window diagram of the same cloud application running multiple application instances according to an embodiment of the present disclosure.

[0058] like Figure 4As shown, in one of the embodiments of the present disclosure, a mirror window 401 of an application instance of cloud application A has been running on electronic device 400. It is assumed that cloud application A is a text editing tool and mirror window 401 is a text editing window. When the user needs to use mirror window 401 as a reference text and open another text editing window to edit text, the user can select the logo of cloud application A again on electronic device 400, for example, by selecting cloud application A again in the open file mode option of the text editing file, requesting the cloud service platform to start an application instance of cloud application A again, and re-create mirror window 402 based on the running window data of the application instance, so as to realize multiple openings of the same cloud application on electronic device 400.

[0059] In one embodiment, the user has installed a chat application X on a tablet device. User A requests to execute chat application X based on a first account based on a cloud application X'. At this time, user A also wants to open chat application X of a second account at the same time. User A can continue to choose to execute chat application X through cloud application X'. At this time, the cloud will feedback two different windows to the user, corresponding to the chat application X of the first account and the chat application X of the second account respectively, so as to realize multiple access of the user to chat application X.

[0060] When the electronic device sends a request to run at least two application instances based on a target application to the cloud service platform, the target application may be at least two cloud applications on the cloud service platform, and the at least two application instances may be instances of the two cloud applications, respectively. The first part of the at least two application instances runs based on the first target application in the at least two cloud applications, and the second part of the at least two application instances runs based on the second target application in the at least two cloud applications, and the first target application is different from the second target application.

[0061] In some embodiments of the present disclosure, a user can simultaneously select at least two cloud application identifiers displayed on the desktop of an electronic device, generate a run request and send it to the cloud service platform, requesting the cloud service platform to run at least two application instances. Figure 1 The user can select the cloud application A and the cloud application B on the desktop through an interactive tool such as a mouse or keyboard, issue an instruction to start the cloud application A and the cloud application B, and forward the instruction to the cloud service platform 120 through the electronic device 110, so that the cloud service platform 120 runs an application instance of the cloud application A and the cloud application B respectively, and sends the running window data of the two application instances to the electronic device 110, and then sends the running window data of the two application instances to the electronic device 110 according to the operation of the cloud application A and the cloud application B. Figure 3 In the method shown, mirror windows of cloud application A and cloud application B are opened on electronic device 110 respectively.

[0062] In other embodiments of the present disclosure, the user can select at least two application identifiers displayed on the desktop of the electronic device at different time periods according to actual needs, and sequentially generate running requests and send them to the cloud service platform, requesting the cloud service platform to run the application instances of each selected cloud application. Figure 1 On the desktop of the electronic device 110 shown in the figure, the user can select the identifier of the cloud application A according to the needs, and request the cloud service platform 120 to start the application instance of the cloud application A, so that the electronic device 110 obtains the running window data of the application instance from the cloud service platform 120, so as to prepare to create a mirror window of the application instance locally on the electronic device 110; after the cloud application A is running, if the user wants to run the cloud application B at the same time, the user can select the identifier of the cloud application B and request the cloud service platform 120 to run its application instance, so that the electronic device 110 obtains the running window data of the application instance from the cloud service platform 120, and then according to the Figure 3 In the method shown, mirror windows of cloud application A and cloud application B are opened on electronic device 110 respectively.

[0063] Figure 5 The diagram schematically shows a window diagram of different cloud applications running different application instances according to an embodiment of the present disclosure.

[0064] like Figure 5 As shown, in one embodiment of the present disclosure, a user can choose to start multiple different cloud applications on an electronic device 500, and each cloud application can start multiple application instances. Referring to 5, cloud application A, cloud application B, and cloud application C are started on the electronic device 500 at the same time, and a mirror window of one instance of cloud application A, two mirror windows of two instances of cloud application B, and two mirror windows of two instances of cloud application C are running.

[0065] Since the logical operations of cloud applications are provided by the cloud service platform, the electronic device only needs to generate a mirror window based on the running window data of the cloud application instance. This allows multiple applications to be opened on the electronic device and each application can be opened multiple times under the condition of low demand for local computing resources of the electronic device.

[0066] Furthermore, in order to ensure that the running window data of each application instance can be accurately transmitted and used in the corresponding mirror window, when creating the mirror window, the identification information of each running window data can be obtained, and the identification information identifies the correspondence between each application instance and the running window data. The identification information may include the cloud application name, instance code, generation time information, etc. of the target application. At least two mirror windows of the target application are created based on the identification information, so that each mirror window is bound to the identification information respectively. In the process of interaction between the electronic device and the cloud service platform, the electronic device can transmit the running window data of the application instance to the corresponding mirror window based on the identification information.

[0067] In the process of interaction between the electronic device and the cloud service platform, the running window data of each activated application instance is transmitted to the electronic device in real time. In the case where there is already a mirror window of at least one application instance of the cloud application on the electronic device, in order to prevent the same application instance from being repeatedly created as a mirror window, before creating the mirror window of the target application based on the identification information, the electronic device can match the identification information with the identification information of the existing mirror window of the electronic device. After determining that there is no mirror window with matching identification information based on the matching result, the mirror windows created based on the running window data of at least two application instances are bound to the mirror window and the identification information. If the identification information matches the identification information of the existing mirror window on the electronic device, it means that the current running window data is the data of the existing mirror window of the electronic device, and there is no need to create a new mirror window. If the identification information does not match the identification information of the existing mirror window of the electronic device, it means that the running window data is the window data of the new application instance, and a new mirror window needs to be created on the electronic device.

[0068] For example, assuming that the current electronic device receives the running window data data1 of the application instance 1 and the running window data data2 of the application instance 2 of the cloud game M, and obtains the identification information flag1 and flag2 included in the running window data data1 and the running window data data2 respectively; matches the identification information flag1 and flag2 with the identification information bound to the mirror window W1 of the existing cloud game M on the electronic device respectively; assuming that the identification information flag1 matches successfully, it means that the mirror window W1 is the mirror window of the application instance 1, and the mirror window can be updated based on the running window data data1 without creating a new mirror window; assuming that the identification information flag2 matches unsuccessfully, it means that the corresponding mirror window does not exist on the electronic device, and it is necessary to create a new mirror window of the application instance 2 based on the running window data data2, and create a stack structure so that the mirror window runs independently of other existing mirror windows, so as to realize the running of multiple operation games M on the electronic device.

[0069] According to the cloud application startup method applied to electronic devices provided by the embodiments of the present disclosure, the electronic device can be lightweight, multiple cloud application windows can be opened on the electronic device, the types and number of functions provided by the electronic device to the user can be greatly expanded, and the user experience can be improved. This is particularly important for the Android system with relatively weak computing power. The Android system can provide access to PC-level applications through cloud application-based services, greatly improving the user experience of lightweight devices. Of course, the Android system can also perform application access based on the Android system itself locally.

[0070] Figure 6 The following schematically shows a flow chart of a cloud application startup method according to another embodiment of the present disclosure.

[0071] like Figure 6 As shown, another embodiment of the present disclosure provides an application startup method, which is applied to a cloud service platform, and the cloud service platform stores at least one application file of a target application. The application startup method includes operations S610 to S630.

[0072] In operation S610, in response to at least two application instance execution requests based on the target application sent by the target device, an application file of the target application is acquired.

[0073] A data channel is established between the cloud service platform and the target device through the network, through which the instance running request of the target device can be obtained, and the running window data of the application instance can be transmitted through the data channel. Among them, the cloud service platform stores at least one application target application file, and provides a start-up identifier of the target application on the target device, so that the user can initiate an instance running request of the target application to the cloud service platform by selecting the start-up identifier of the target application on the target device.

[0074] In the disclosed embodiment, the cloud service platform can provide at least two application instances of the target application for the target device, thereby realizing multiple openings of the cloud application on the target device. In response to the at least two application instance execution requests based on the target application sent by the target device, the cloud service platform obtains the application file of the target application and prepares to execute the two application instances.

[0075] In operation S620, a target virtual machine on the cloud service platform is acquired, and at least two application instances of a target application are run based on the target virtual machine.

[0076] The cloud service platform downloads the application file of the target application by creating a virtual machine, installs the application file on the virtual machine, and runs the application file to generate at least two application instances of the target application. The cloud service platform can be supported by at least one cloud server, and the virtual machine is deployed on the cloud server. Under the control of the cloud service platform on the load balancing of the virtual machine, the cloud service platform can set up multiple virtual machines with different computing resource sizes to run different applications and provide different services for at least one target device.

[0077] In an embodiment of the present disclosure, in response to a request for running at least two application instances based on a target application sent by a target device, the cloud service platform needs to select a suitable target virtual machine to run the at least two application instances to ensure that the application instances can run stably.

[0078] In operation S630, execution window data of at least two application instances are sent to the target device.

[0079] In the disclosed embodiment, after the cloud service platform determines the target virtual machine, the application file of the target application is installed and run on the target virtual machine, at least two application instances requested by the target device are generated, and the running window data corresponding to each application instance is obtained. The logical operation of the application instance is performed on the target virtual machine. In order to enable the user to have the experience of using multiple cloud applications through the target device, the running window data of the at least two application instances need to be sent to the target device so that the target device can generate a corresponding mirror window for the user to use.

[0080] The cloud application startup method provided by the embodiment of the present disclosure creates a virtual machine on the cloud service platform to start the cloud application. In the case of multiple cloud applications, a virtual machine that can instantiate the cloud application is selected to run the cloud application, and multiple cloud applications are enabled under the premise of ensuring that the cloud application can run stably. The method provides computing resource support for the target device to enable multiple applications to be enabled through the cloud service platform, which can help the target device overcome the problem of being unable to enable multiple applications due to its own hardware or system limitations.

[0081] In some embodiments of the present disclosure, when the target device sends at least two application instance execution requests based on the target application, the at least two application instances are executed based on the same target application. Figure 4 The description of running multiple application instances of the same cloud application shown is not repeated here. In this case, when the cloud service platform receives an instance running request, the application file of the target application can be downloaded to the target virtual machine to run at least two application instances of the target application.

[0082] In some embodiments, an image editing application is installed on the cloud service platform, and the image editing application G includes a variety of image editing functions. For some of the image editing functions, such as rendering function, cropping function or material adding function, a separate editing interface needs to be opened when it is started on the cloud service platform, which is equivalent to running a separate application instance. In this case, the cloud service platform can transmit the running window data of the editing interface of specific functions such as rendering function or cropping function to the target device according to the needs of the target device user, so as to generate at least two mirror windows on the target device, so that the user can perform different image editing tasks in different mirror windows. This method can simplify the interface content on the target device side on the basis that the image editing application G has a relatively complex operation interface, provide a direct operation interface for the user, and simplify the complexity of the displayed content.

[0083] In some other embodiments of the present disclosure, when the target device sends at least two application instance execution requests based on the target application, the at least two application instances may be instances that are executed based on different cloud applications. In the case where the target application includes a first target application and a second target application and the first target application is different from the second target application, the user may declare through the application instance execution request that the first part of the at least two application instances are executed based on the first target application and the second part of the at least two application instances are executed based on the second target application. The description here can refer to Figure 5 The description of different cloud applications running different application instances is not repeated here. In this case, when the cloud service platform receives an instance running request, it downloads and runs at least one application instance of the application file of the first target application and the application file of the second target application on the target virtual machine, respectively, to obtain at least two application instances.

[0084] Acquiring a target virtual machine on the cloud service platform includes: determining at least one virtual machine on the cloud service platform that meets a preset condition as the target virtual machine, where the preset condition is that the target virtual machine can start at least one application instance of the target application. The preset condition may be that the remaining computing resources of the virtual machine can start and run at least one application instance of the target application. The preset condition may also be that the target virtual machine is set to allow the application instance to run, which is not specifically limited here.

[0085] When the cloud service platform fails to obtain a target virtual machine that meets the preset conditions, the cloud service platform may create a new virtual machine that meets the preset conditions as the target virtual machine to run the current at least two application instances.

[0086] In some embodiments of the present disclosure, in order to facilitate application instance management, instances of the same application should be able to run on the same virtual machine. When the unified virtual machine can only run one target application or there are insufficient virtual machines, the instance of the application can be run on an idle virtual machine to achieve load balancing.

[0087] When the target device requests to run at least two application instances based on the target application, the cloud service platform may enable the at least two application instances to run based on the same target virtual machine when determining the target virtual machine.

[0088] In the case where the target device requests to run at least two application instances based on the target application, when the cloud service platform determines the target virtual machine, the target virtual machine may include at least a first target virtual machine and a second target virtual machine, and the first target virtual machine is different from the second target virtual machine. The first part of the at least two application instances are run based on the first target virtual machine, and the second part of the at least two application instances are run based on the second target virtual machine.

[0089] Figure 7 The schematic diagram schematically shows a target virtual machine running an application instance according to an embodiment of the present disclosure.

[0090] like Figure 7 As shown, the at least two application instances requested to be run by the target device may include application instances A1\A2\A3 of the target application A and application instances B1 / B2 of the target application B. The cloud service platform has a first virtual machine M1, a second virtual machine M2, and a third virtual machine M3. The cloud service platform determines that the first virtual machine M1 and the second virtual machine M2 are the first target virtual machine and the second target virtual machine. For the application instances A1\A2\A3 of the target application A, if the first virtual machine M1 allows, all of them can be run on the first virtual machine M1, or they can be run on the second virtual machine M1. Figure 7 As shown, within the scope allowed by the first virtual machine M1, the application instances A1\A2 are simultaneously run on the first virtual machine M1, and the application instance A3 is run on the second virtual machine M2. Figure 7 For application instances B1 / B2 of target application B, if the first virtual machine M1 and the second virtual machine are already running application instances A1\A2\A3, and the first virtual machine M1 and the second virtual machine allow it, application instance B1 and application instance A1\A2 can be run simultaneously on the first virtual machine M1, and application instance B2 and application instance A3 can be run simultaneously on the first virtual machine M2.

[0091] After generating at least two application instances, the cloud service platform obtains the running window data of each application instance through the target virtual machine. Before sending the running window data to the target device, the identification information of at least two application instances is generated, and the identification information identifies the correspondence between each application instance and the running window data. The identification information may include the application instance ID code, the target application identifier, etc. The running window data of at least two application instances are bound to the identification information and sent to the target device, so that the target device can identify the source of the running window data.

[0092] Figure 8 A schematic diagram of the interaction between an electronic device and a cloud service platform according to an embodiment of the present disclosure is schematically shown.

[0093] like Figure 8 As shown, the cloud service platform and the electronic device interact through the network. After the cloud application data channel is established between the cloud service platform and the electronic device, the electronic device can initiate a running request based on at least two application instances of the target application to the cloud service platform by selecting the application identifier of the desktop, requesting to implement multiple cloud application openings on the electronic device. Figure 8 , the electronic device requests the cloud service platform to start multiple application instances of cloud application A and cloud application B. The cloud service platform determines the target virtual machine (A) and the target virtual machine (B) to run each application instance based on the request. Among them, two application instances Aa\Ab of cloud application A and one instance Ba of cloud application B run on the target virtual machine (A), and another instance of cloud application B runs on the target virtual machine (B). The cloud service platform synchronizes the events (including running window data) of creating multiple application instances of cloud application A and cloud application B to the electronic device, so that the electronic device creates a mirror window for each application instance. The electronic device creates a task stack for each mirror window for management. Task management modules can be set on both the cloud service platform and the electronic device, wherein the task management module on the cloud service platform is used to coordinate and manage virtual machines to achieve load balancing, and the task management module on the electronic device is used to manage the declaration cycle of the task stack and assist the electronic device in timely resource recovery.

[0094] According to the cloud application startup method applied to electronic devices and cloud service platforms provided by the embodiments of the present disclosure, cloud application services are provided to electronic devices through the cloud service platform, support is provided for the operation of cloud applications, the requirements for the hardware configuration of electronic devices are reduced, and the electronic devices are enabled to generate mirror windows locally based on the running window data of the cloud application instance, providing users with an interface for interacting with cloud applications. Based on this, electronic devices can realize multiple openings of cloud application windows, greatly expanding the types and number of functions provided by electronic devices to users, and improving user experience.

[0095] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0096] Although the present disclosure has been shown and described with reference to specific exemplary embodiments of the present disclosure, it should be understood by those skilled in the art that various changes in form and details may be made to the present disclosure without departing from the spirit and scope of the present disclosure as defined by the appended claims and their equivalents. Therefore, the scope of the present disclosure should not be limited to the above-mentioned embodiments, but should be determined not only by the appended claims, but also by the equivalents of the appended claims.

Claims

1. A cloud application startup method, applied to an electronic device, the method comprising: Sending at least two application instance running requests based on the target application to the cloud service platform, and obtaining running window data of the target application running the at least two application instances; At least two mirror windows of the target application are created based on the running window data of the at least two application instances.

2. The method according to claim 1, wherein the at least two application instances are run based on the same target application; Alternatively, a first portion of the at least two application instances are run based on a first target application, and a second portion of the at least two application instances are run based on a second target application, and the first target application is different from the second target application.

3. The method according to claim 1, wherein the step of creating at least two mirror windows of the target application based on the running window data of the at least two application instances comprises: Obtaining identification information of each of the running window data, wherein the identification information identifies the correspondence between each application instance and the running window data; At least two mirror windows of the target application are created based on the identification information.

4. The method according to claim 3, wherein the step of creating at least two mirror windows of the target application based on the identification information comprises: Matching the identification information with identification information of an existing mirror window of the electronic device; After determining based on the matching result that there is no mirror window matching the identification information, mirror windows are created based on the running window data of the at least two application instances, and the mirror windows are bound to the identification information.

5. The method according to any one of claims 1 to 3, further comprising: Setting a stack structure of the at least two mirror windows based on preset parameters, wherein the preset parameters indicate that the stack structure can store and only store one mirror window; The at least two mirror windows are arranged in a corresponding stack structure, so that the mirror windows are operated based on the stack structure.

6. A cloud application startup method, applied to a cloud service platform, wherein the cloud service platform stores at least one application file of a target application, comprising: In response to at least two application instance execution requests based on a target application sent by a target device, obtaining an application file of the target application; Acquire a target virtual machine on the cloud service platform, and run at least two application instances of the target application based on the target virtual machine; Sending the running window data of the at least two application instances to the target device.

7. The method according to claim 6, wherein the at least two application instances are run based on the same target application; Alternatively, a first portion of the at least two application instances are run based on a first target application, and a second portion of the at least two application instances are run based on a second target application, and the first target application is different from the second target application.

8. The method according to any one of claims 6 to 7, wherein the at least two application instances are run based on the same target virtual machine; Alternatively, a first portion of the at least two application instances are run based on a first target virtual machine, and a second portion of the at least two application instances are run based on a second target virtual machine, and the first target virtual machine is different from the second target virtual machine.

9. According to the method of claim 8, obtaining the target virtual machine on the cloud service platform comprises: Determine at least one virtual machine on the cloud service platform that meets a preset condition as the target virtual machine, wherein the preset condition is that the target virtual machine can start at least one application instance of the target application; When the target virtual machine is not obtained, a new virtual machine is created on the cloud service platform as the target virtual machine.

10. The method according to any one of claims 6 to 9, wherein sending the running window data of the at least two application instances to the target device comprises: Generate identification information of the at least two application instances, bind the running window data of the at least two application instances with the identification information, and send them to the target device, wherein the identification information identifies the correspondence between each application instance and the running window data.

Citation Information

Cited By

  • Cloud application multi-opening method and device

    CN120892139A