CN110069185B - Method and apparatus for co-running hosted applications - Google Patents

Method and apparatus for co-running hosted applications Download PDF

Info

Publication number
CN110069185B
CN110069185B CN201910357323.9A CN201910357323A CN110069185B CN 110069185 B CN110069185 B CN 110069185B CN 201910357323 A CN201910357323 A CN 201910357323A CN 110069185 B CN110069185 B CN 110069185B
Authority
CN
China
Prior art keywords
hosted application
hosted
application
interface
running
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910357323.9A
Other languages
Chinese (zh)
Other versions
CN110069185A (en
Inventor
郁卉
胡晨鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910357323.9A priority Critical patent/CN110069185B/en
Publication of CN110069185A publication Critical patent/CN110069185A/en
Priority to PCT/CN2020/086326 priority patent/WO2020221090A1/en
Application granted granted Critical
Publication of CN110069185B publication Critical patent/CN110069185B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a method and equipment for jointly running hosted applications. One embodiment of a method for co-operating hosted applications includes: if the operation of a first hosted application and a second hosted application of a combined hosted application is detected, acquiring a combined running interface of the first hosted application and the second hosted application, wherein the combined running interface comprises at least part of function controls of the first hosted application and at least part of function controls of the second hosted application, the running of the first hosted application and the second hosted application depends on the hosted application, and the first hosted application and the second hosted application are independent of each other; and displaying the joint operation interface. The implementation can merge hosted applications that are originally independent of each other to run jointly.

Description

Method and apparatus for co-running hosted applications
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and equipment for jointly running hosted applications.
Background
To make users more convenient, hosted applications (e.g., applets) have come into force. Hosted applications refer to application programs that can be used on some application platforms (e.g., hosted applications that are hosted applications) without requiring user downloads. Through the hosted application, the user may conduct activities such as payment, shopping, information browsing, and the like.
In practice, the hosted applications can only run independently of each other. The user can use their desired functions only by running a plurality of hosted applications of the hosted application, respectively. For example, if a user wants to use the functions of two hosted applications, the hosted application needs to be run first, and a hosted application list interface is found; then clicking an icon of a hosted application which the user wants to run, and running the hosted application to use the function of the hosted application; then closing the hosted application and returning to the hosted application list interface; finally clicking the icon of another hosted application which the user wants to run, and running another hosted application to use the function of the hosted application.
Disclosure of Invention
The embodiment of the application provides a method and equipment for jointly running hosted applications.
In a first aspect, some embodiments of the present application provide a method for jointly running hosted applications, applied to a terminal device, including: if the operation of a first hosted application and a second hosted application of a combined hosted application is detected, acquiring a combined running interface of the first hosted application and the second hosted application, wherein the combined running interface comprises at least part of function controls of the first hosted application and at least part of function controls of the second hosted application, the running of the first hosted application and the second hosted application depends on the hosted application, and the first hosted application and the second hosted application are independent of each other; and displaying the joint operation interface.
In a second aspect, some embodiments of the present application provide a method for jointly running hosted applications, applied to a server hosting the applications, including: and if the joint request of the hosted application sent by the terminal equipment is received and the first hosted application and the second hosted application of the hosted application are determined to have joint operation capacity, sending a joint operation interface generation instruction to a server of the first hosted application.
In a third aspect, some embodiments of the present application provide a method for jointly running hosted applications, applied to a server of a first hosted application, comprising: if a joint operation interface generation instruction sent by a server of the host application is received, acquiring at least part of functional controls of the first hosted application; obtaining an interface of at least a portion of functionality controls of a second hosted application from a server of the second hosted application; fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint operation interface of the first hosted application and the second hosted application; and sending the joint operation interface to the terminal equipment.
In a fourth aspect, some embodiments of the present application provide an apparatus for jointly running hosted applications, which is disposed in a terminal device, and includes: the obtaining unit is configured to obtain a joint running interface of a first hosted application and a second hosted application if operations of the first hosted application and the second hosted application of the joint hosted application are detected, wherein the joint running interface comprises at least part of function controls of the first hosted application and at least part of function controls of the second hosted application, the running of the first hosted application and the running of the second hosted application depend on the hosted applications, and the first hosted application and the second hosted application are independent of each other; and the display unit is configured to display the joint operation interface.
In a fifth aspect, some embodiments of the present application provide an apparatus for jointly running hosted applications, disposed on a server hosting the applications, including: and the sending unit is configured to send a joint operation interface generation instruction to the server of the first hosted application if the first hosted application and the second hosted application of the hosted application are determined to have joint operation capacity after receiving the hosted application joint request sent by the terminal device.
In a sixth aspect, some embodiments of the present application provide an apparatus for jointly running hosted applications, disposed at a server of a first hosted application, comprising: the first obtaining unit is configured to obtain at least part of the function controls of the first hosted application if a joint operation interface generation instruction sent by a server of the hosted application is received; a second obtaining unit configured to obtain, from a server of the second hosted application, an interface of at least part of the functionality controls of the second hosted application; the generating unit is configured to fuse the interface of at least part of the function controls of the first hosted application with the interface of at least part of the function controls of the second hosted application and generate a joint running interface of the first hosted application and the second hosted application; and the sending unit is configured to send the joint operation interface to the terminal equipment.
In a seventh aspect, some embodiments of the present application provide a computer device, including: one or more processors; a storage device on which one or more programs are stored; when executed by one or more processors, cause the one or more processors to implement a method as described in any implementation of the first aspect, or to implement a method as described in any implementation of the second aspect, or to implement a method as described in any implementation of the third aspect.
In an eighth aspect, some embodiments of the present application provide a computer-readable medium on which a computer program is stored, which, when executed by a processor, implements a method as described in any of the implementations of the first aspect, or implements a method as described in any of the implementations of the second aspect, or implements a method as described in any of the implementations of the third aspect.
In the method and the device for jointly running hosted applications provided in the foregoing embodiments of the present application, when operations of a first hosted application and a second hosted application of a joint hosted application are detected, a joint running interface of the first hosted application and the second hosted application is obtained, and the joint running interface is displayed, so that originally mutually independent hosted applications can be fused and jointly run. And the joint operation interface comprises the function control of the first hosted application and the function control of the second hosted application, so that the user can simultaneously use the functions of the multiple hosted applications, and the functions of the hosted applications are expanded.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram to which some embodiments of the present application may be applied;
FIG. 2 is a flow diagram of a first embodiment of a method for federated running of hosted applications according to the present application;
FIG. 3A is a schematic diagram of a hosted application list interface of one embodiment of the present application;
FIG. 3B is a schematic diagram of an interface for a functionality control of a camera application, according to one embodiment of the present application;
FIG. 3C is a schematic view of an interface for a functionality control of a sticker application of one embodiment of the present application;
FIG. 3D is a schematic illustration of an interface for dragging an icon of a decal application, in accordance with one embodiment of the present application;
FIG. 3E is a schematic illustration of a co-operating interface of a camera application and a sticker application of one embodiment of the present application;
FIG. 4 is a flow diagram of a second embodiment of a method for federated running of hosted applications in accordance with the present application;
FIG. 5 is a flow chart of a third embodiment of a method for federated running of hosted applications according to the present application;
FIG. 6 is a flow chart of a fourth embodiment of a method for federated running of hosted applications according to the present application;
FIG. 7 is a flow chart of a fifth embodiment of a method for federated running of hosted applications according to the present application;
FIG. 8 is a flow chart of a sixth embodiment of a method for federated running of hosted applications according to the present application;
FIG. 9 is a schematic block diagram of a computer system suitable for use with the computer device of some embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
FIG. 1 illustrates an exemplary system architecture 100 to which the method for federated running of hosted applications of the present application may be applied.
As shown in fig. 1, system architecture 100 may include devices 101, 102, 103, 104 and networks 105, 106. Network 105 is the medium used to provide a communication link between device 101 and device 102. Network 106 is the medium used to provide communication links between device 102 and devices 103, 104. The networks 105, 106 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The devices 101, 102, 103, 104 may be hardware devices or software that support network connectivity to provide various network services. When the device is hardware, it can be a variety of electronic devices including, but not limited to, smart phones, tablets, laptop portable computers, desktop computers, servers, and the like. In this case, the hardware device may be implemented as a distributed device group including a plurality of devices, or may be implemented as a single device. When the device is software, the software can be installed in the electronic devices listed above. At this time, as software, it may be implemented as a plurality of software or software modules for providing a distributed service, for example, or as a single software or software module. And is not particularly limited herein.
In practice, a device may provide a respective network service by installing a respective client application or server application. After the device has installed the client application, it may be embodied as a client in network communications. Accordingly, after the server application is installed, it may be embodied as a server in network communications.
As an example, in fig. 1, the device 101 is embodied as a client, while the devices 102, 103, 104 are embodied as servers. Specifically, the device 101 may be a client installed with a hosting application, and the device 102 may be a server of the hosting application. The devices 103, 104 may be servers hosting applications. The host application may be, for example, an instant messaging application. The hosted application may be, for example, a payment-type application, a shopping-type application, a mini-game-type application, a camera-type application, a sticker-type application, and so forth. The hosted application is run dependent on the hosted application. The device 101 may run the hosted application through the hosted application installed thereon without installing the hosted application.
It should be noted that the method for jointly running hosted applications provided by the embodiments of the present application may be executed by the devices 101, 102, 103.
It should be understood that the number of networks and devices in fig. 1 is merely illustrative. There may be any number of networks and devices, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of a first embodiment of a method for federated execution of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the terminal equipment and comprises the following steps:
step 201, if the operation of the first hosted application and the second hosted application of the combined hosted application is detected, a combined running interface of the first hosted application and the second hosted application is obtained.
In this embodiment, in the case of detecting the operation of the first hosted application and the second hosted application of the federated hosted application, the terminal device (for example, the device 101 shown in fig. 1) may obtain a federated running interface of the first hosted application and the second hosted application.
In general, the host application may be a client application (e.g., an instant messaging application) that a user installs on the terminal device. The hosted application may be an application (e.g., applet) running in the hosted application. The hosted application is run dependent on the hosted application. The host application may run multiple hosted applications. These hosted applications are independent of each other. The host application can be provided with an interface for accessing the hosted application, and a developer of the hosted application can set the developed hosted application in the host application through the interface. In this way, the user can use the hosted application without separately installing the installation package of the hosted application, thereby reducing the storage expense of the terminal device. Here, the first hosted application and the second hosted application may be any hosted application of the hosted applications. The first hosted application and the second hosted application run in dependence of the hosted application, and the first hosted application and the second hosted application are independent of each other.
Here, the operation of joining the first hosted application with the second hosted application may trigger the first hosted application to join with the second hosted application, including but not limited to a click operation, a slide operation, a gesture operation, and so forth. In some embodiments, the operation of joining the first hosted application with the second hosted application may include, but is not limited to, at least one of: an operation of dragging the icon of the first hosted application until it overlaps with the icon of the second hosted application; an operation of dragging the icon of the second hosted application until it overlaps the icon of the first hosted application; dragging icons of the first hosted application and the second hosted application simultaneously until the icons are overlapped; an operation of moving the icons of the first hosted application and the second hosted application to a specific area, and so on.
Here, the co-launch interface may include at least a portion of functionality controls of the first hosted application and at least a portion of functionality controls of the second hosted application. Under the condition that the terminal device is locally loaded with the program packages of the first hosted application and the second hosted application, the terminal device can directly generate a joint operation interface. Otherwise, the co-launch interface may be generated in the server of the first hosted application (e.g., device 103 shown in FIG. 1) or the server of the second hosted application (e.g., device 104 shown in FIG. 1). Generally, for a hosted application with simple functions, when a user runs the hosted application through the hosted application, a package of the hosted application is loaded to the local, so that the terminal device stores the hosted application.
In some embodiments, the first hosted application is a hosted application and the second hosted application is a slave hosted application. At this point, the joint launch interface may include all functionality controls of the first hosted application and at least some functionality controls of the second hosted application. Also, the co-running interface is typically generated in the terminal device or the server hosting the application.
In some embodiments, the co-launch interface can only be generated if both the first hosted application and the second hosted application have co-launch capabilities. Thus, in the event that an operation to federate the first hosted application with the second hosted application is detected, the terminal device may first determine whether both the first hosted application and the second hosted application have a co-operational capability. If the first hosted application and the second hosted application both have the joint operation capability, the terminal device may acquire the joint operation interface. In general, the hosted application running on the hosted application may include a configuration file that includes a predetermined variable. The value of the preset variable may be used to indicate whether the hosted applications all have joint execution capabilities. Therefore, the terminal device may first obtain the configuration file of the first hosted application and the configuration file of the second hosted application; then, respectively searching preset variables in the configuration file of the first hosted application and the configuration file of the second hosted application; if the preset variables are all preset values (for example, 1), it is determined that both the first hosted application and the second hosted application have joint operation capability.
Step 202, displaying the joint operation interface.
In this embodiment, the terminal device may present the joint operation interface. The joint operation interface comprises at least part of function control of the first hosted application and at least part of function control of the second hosted application, and a user can operate the function control included in the joint operation interface.
In some embodiments, in the case of detecting an operation of running a function control on a joint running interface, the terminal device may first obtain a running result of the running function control; and then displaying the running result of the running function control. The operation of running the function control on the joint running interface can trigger the function control on the joint running interface to run, including but not limited to a click operation, a sliding operation, a gesture operation, and the like. Generally, in a case where the terminal device locally loads the packages of the first hosted application and the second hosted application, the terminal device may directly generate the execution result of the executed functionality control. Otherwise, the results of the execution of the executed functionality control may be generated in the server of the first hosted application or the server of the second hosted application.
In some embodiments, after the joint operation interface is acquired, the terminal device may first display the joint operation prompt information; and if the operation of running the first hosted application and the second hosted application is detected, the terminal equipment displays the joint running interface. The joint operation prompting information can be used for prompting the user that the first hosted application and the second hosted application can be operated jointly. In general, the joint operation prompt message may be a joint icon generated by the terminal device based on the icons of the first hosted application and the second hosted application. For example, in the case where the first hosted application is a hosted application, the join icon may be generated by adding a preset flag (e.g., a plus sign) to the icon of the first hosted application.
Some embodiments of the present application also provide an application scenario for a method of jointly running hosted applications. In the application scenario, an instant messaging application is installed on a mobile phone of a user. The user runs the instant messaging application, and finds the hosted application list interface therein, which may be specifically shown in fig. 3A. Wherein the hosted application list interface includes a "recently used" field and a "my applet" field. The "recently used" area includes icons for a camera application, a sticker application, a train ticket application, and a shopping application. The My applet area includes icons for a camera application and a sticker application. When the user clicks on the camera application, an interface of the function control of the camera application is presented, as shown in fig. 3B. The interface of the function control of the camera application comprises a viewfinder control, a shooting control and an option control. The option controls of the camera application include a video option control, a photo option control, and an album option control. When the user clicks on the sticker application, the interface of the functionality control of the sticker application is displayed, as shown in fig. 3C. The interface of the function control of the sticker application comprises an option control and a sticker control. The option controls of the sticker application include a latest option control, a hottest option control, a trend option control, a lovely option control, a literature option control, and a space option control. Each option control corresponds to a plurality of sticker controls belonging to the option. If the user wants to run the camera application and the sticker application in combination, the user needs to run the instant messaging application first, find the hosted application list interface therein, and drag the icon of the sticker application until the icon overlaps with the icon of the camera application, as shown in fig. 3D. The user's cell phone then presents the co-operating interface of the camera application and the sticker application, as shown in fig. 3E. The joint operation interface comprises a viewfinder control and a shooting control of the camera application, and an option control and a sticker control of the sticker application. And when the user clicks the shooting control on the joint operation interface, shooting the image in the view-finding frame. When a user clicks one of the sticker controls on the joint operation interface, a sticker corresponding to the sticker control is added to the image.
In the method for jointly running hosted applications provided in the foregoing embodiment of the present application, under the condition that the operations of the first hosted application and the second hosted application of the joint hosted application are detected, the joint running interface of the first hosted application and the second hosted application is obtained, and the joint running interface is displayed, so that the joint running of the hosted applications is realized, and the running flexibility of the hosted applications is improved. And the joint operation interface comprises the function control of the first hosted application and the function control of the second hosted application, so that the user can simultaneously use the functions of the multiple hosted applications, and the functions of the hosted applications are expanded.
With further reference to FIG. 4, a flow 400 of a second embodiment of a method for federated running of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the terminal equipment and comprises the following steps:
step 401, if the operation of the first hosted application and the second hosted application of the combined hosted application is detected, accessing the first data sandbox of the first hosted application to obtain an interface of at least a part of the functionality controls of the first hosted application.
In this embodiment, upon detecting operation of a first hosted application and a second hosted application of a federated hosted application, a terminal device (e.g., device 101 shown in fig. 1) may access a first data sandbox of the first hosted application to obtain an interface for at least a portion of functionality controls of the first hosted application. Here, the first hosted application may be a hosted application. The first hosted Application may include a first data sandbox and a first API (Application Programming Interface). The first data sandbox may be used to store a set of memory data and file buffers required by the hosted application in an independent operational state. The first API may be an interface for the hosted application to interact with information with the hosted application in an independently running state.
Step 402, accessing a second data sandbox of the second hosted application to obtain an interface for at least a portion of the functionality controls of the second hosted application.
In this embodiment, in the case of detecting the operation of the first hosted application and the second hosted application of the federated hosted application, the terminal device may further access a second data sandbox of the second hosted application to obtain an interface of at least a portion of the functionality controls of the second hosted application. Here, the second hosted application may be a slave hosted application. The second hosted application may include a first data sandbox and a second data sandbox. The second data sandbox may be used to store a set of memory data and file buffers needed by the hosted application in a federated operating state. Typically, the set of memory data and file buffers stored in the second data sandbox is no more than the set of memory data and file buffers stored in the first data sandbox.
In some embodiments, the second hosted application may include a first API and a second API. The second API may be an interface for the hosted application to interact with information of the federated hosted application in the federated operational state. In this way, the terminal device can access a second data sandbox of the second hosted application through a second API of the second hosted application to interface at least a portion of the functionality controls of the second hosted application.
In some embodiments, the second API may include a display control API. The display control API may be used to control the display of the federated runtime interface for the hosted application in the federated runtime state. In this way, the terminal device can access the second data sandbox of the second hosted application through the display control API of the second hosted application to interface at least a portion of the functionality controls of the second hosted application.
And step 403, fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint operation interface.
In this embodiment, the terminal device may fuse the interface of at least part of the functionality controls of the first hosted application with the interface of at least part of the functionality controls of the second hosted application to generate a joint execution interface. For example, the terminal device splices the interface of at least part of the functionality controls of the first hosted application with the interface of at least part of the functionality controls of the second hosted application to generate a joint execution interface.
Step 404, displaying the joint operation interface.
In this embodiment, the specific operation of step 404 is substantially the same as the operation of step 202 in the embodiment shown in fig. 2, and is not repeated here.
Step 405, if the operation of running the functionality control of the first hosted application on the joint running interface is detected, accessing the first data sandbox of the first hosted application, and generating a running result of the running functionality control.
In this embodiment, in the case of detecting an operation of running a functionality control on the joint running interface, the terminal device may first determine whether the running functionality control is a functionality control of the first hosted application or a functionality control of the second hosted application. If the executed functionality control is a functionality control of the first hosted application, the terminal device may access the first data sandbox of the first hosted application to generate an execution result of the executed functionality control.
Step 405', if an operation of running a functionality control of a second hosted application on the joint running interface is detected, accessing a second data sandbox of the second hosted application to generate a running result of the running functionality control.
In this embodiment, in the case of detecting an operation of running a functionality control on the joint running interface, the terminal device may first determine whether the running functionality control is a functionality control of the first hosted application or a functionality control of the second hosted application. If the executed functionality control is a functionality control of a second hosted application, the terminal device may access a second data sandbox of the second hosted application to generate an execution result of the executed functionality control.
In some embodiments, the second hosted application may include a second API. In this way, the terminal device can access a second data sandbox of the second hosted application through a second API of the second hosted application to generate a result of execution of the executed functionality control.
In some embodiments, the second API may include a datamation sequence API and a function API. The datamation sequence API can be used to provide a uniform format encapsulation of interaction information for hosted applications in a federated run state. The functional API can be used to provide a call interface for hosting a functional control of an application in a federated run state. In this way, the terminal device may first access the second data sandbox of the second hosted application through the functional API of the second hosted application to generate an unpackaged execution result of the executed functionality control; and then, uniformly packaging the unpacked running result through a datamation sequence API of the second hosted application to generate a running result of the running functional control.
And 406, displaying the running result of the running function control.
In this embodiment, the terminal device may present the operation result of the operated function control.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for jointly running hosted applications in this embodiment highlights a step of generating, by the terminal device, a joint running interface and a running result of the executed function control. Thus, in the solution described in this embodiment, the package is loaded to the local hosted application. And the terminal equipment generates a joint operation interface and an operation result of the operated function control, thereby realizing the joint operation of the hosted application.
With further reference to FIG. 5, a flow 500 of a third embodiment of a method for federated running of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the terminal equipment and comprises the following steps:
step 501, if the operation of the first hosted application and the second hosted application of the combined hosted application is detected, a hosted application combination request is sent to a server of the hosted application.
In this embodiment, upon detecting operation of a first hosted application and a second hosted application of a federated hosted application, a terminal device (e.g., device 101 shown in fig. 1) may send a hosted application federation request to a server of the hosted application (e.g., device 102 shown in fig. 1). The hosted application join request may include an identification of the first hosted application and the second hosted application.
In general, upon receiving a hosted application join request sent by a terminal device, a server of a hosted application may determine whether both a first hosted application and a second hosted application have join-run capabilities. In the case where both have the co-operation capability, the server hosting the application may send the co-operation interface generation instruction to the server hosting the first application (e.g., device 103 shown in fig. 1). And under the condition of receiving a joint operation interface generation instruction sent by the server of the host application, the server of the first hosted application can generate a joint operation interface and send the joint operation interface to the terminal equipment.
Step 502, receiving a joint operation interface returned by the server of the first hosted application.
In this embodiment, the terminal device may receive a joint operation interface returned by the server of the first hosted application.
Step 503, displaying the joint operation interface.
In this embodiment, the specific operation of step 503 is substantially the same as the operation of step 202 in the embodiment shown in fig. 2, and is not described herein again.
Step 504, if the operation of running the function control on the joint running interface is detected, a control running request is sent to the server of the first hosted application.
In this embodiment, in the case that an operation of running a function control on the joint running interface is detected, the terminal device may send a control running request to the server of the first hosted application. The control running request can include the identification of the running functional control.
Generally, in the case of receiving a control running request sent by a terminal device, a server of a first hosted application may first obtain a running result of a running functional control; and then, the running result of the running function control is sent to the terminal equipment.
And 505, receiving the running result of the running function control returned by the server of the first hosted application.
In this embodiment, the terminal device may receive a running result of the running functionality control returned by the server of the first hosted application.
And step 506, displaying the running result of the running function control.
In this embodiment, the specific operation of step 506 is substantially the same as the operation of step 307 in the embodiment shown in fig. 3, and is not described herein again.
As can be seen from fig. 5, compared with the embodiment corresponding to fig. 2, the flow 500 of the method for jointly running hosted applications in this embodiment highlights the step of the server of the first hosted application generating the joint running interface and the running result of the executed functionality control. Therefore, in the solution described in this embodiment, no matter whether the package of the hosted application is loaded locally, the server of the first hosted application generates the joint operation interface and the operation result of the executed function control, thereby implementing the joint operation of the hosted application.
With continued reference to FIG. 6, a flow 600 of a fourth embodiment of a method for federated execution of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the server of the hosted application and comprises the following steps:
step 601, if a hosted application combined request sent by the terminal device is received and it is determined that both the first hosted application and the second hosted application of the hosted application have combined operation capability, sending a combined operation interface generation instruction to the server of the first hosted application.
In this embodiment, upon receiving a hosted application join request sent by a terminal device (e.g., the device 101 shown in fig. 1), a server of a hosted application (e.g., the device 102 shown in fig. 1) may first determine whether both the first hosted application and the second hosted application have a join operation capability. If the first hosted application and the second hosted application both have a co-operation capability, a co-operation interface generation instruction is sent to a server of the first hosted application (e.g., device 103 shown in fig. 1).
In some embodiments, the server hosting the application may first obtain a configuration file for the first hosted application and a configuration file for the second hosted application; then, respectively searching preset variables in the configuration file of the first hosted application and the configuration file of the second hosted application; if the preset variables are all preset values (for example, 1), it is determined that both the first hosted application and the second hosted application have joint operation capability.
In some embodiments, the first hosted application may be a hosted application and the second hosted application may be a slave hosted application. At this point, the joint launch interface may include all functionality controls of the first hosted application and at least some functionality controls of the second hosted application.
In some embodiments, the first hosted application may include a first API. The second hosted application may include a first API and a second API. The first API may be an interface for the hosted application to interact with information with the hosted application in an independently running state. The second API may be an interface for the hosted application to interact with information of the federated hosted application in the federated operational state. In this way, the server of the hosted application may send the joint execution interface generation instruction to the server of the first hosted application through the first API of the first hosted application.
In the method for jointly running hosted applications provided in the foregoing embodiment of the present application, when a hosted application joint request sent by a terminal device is received and it is determined that both a first hosted application and a second hosted application of a hosted application have a joint running capability, a joint running interface generation instruction is sent to a server of the first hosted application, so that the server of the first hosted application generates a joint running interface and sends the joint running interface to the terminal device for display by the terminal device, thereby implementing joint running of the hosted applications and improving running flexibility of the hosted applications. And the joint operation interface comprises the function control of the first hosted application and the function control of the second hosted application, so that the user can simultaneously use the functions of the multiple hosted applications, and the functions of the hosted applications are expanded.
With continued reference to FIG. 7, a flow 700 of a fifth embodiment of a method for federated running of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the server of the first hosted application and comprises the following steps:
step 701, if a joint operation interface generation instruction sent by a server of a host application is received, acquiring at least part of function controls of a first hosted application.
In this embodiment, upon receiving a joint execution interface generation instruction sent by a server (e.g., device 102 shown in fig. 1) of a hosted application, a server (e.g., device 103 shown in fig. 1) of a first hosted application may obtain at least part of functionality controls of the first hosted application.
Step 702 obtains an interface for at least a portion of functionality controls of the second hosted application from a server of the second hosted application.
In this embodiment, upon receiving the joint execution interface generation instruction sent by the server of the hosted application, the server of the first hosted application may further obtain, from a server of a second hosted application (e.g., the device 104 shown in fig. 1), an interface of at least a part of the functionality controls of the second hosted application.
And 703, fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint running interface of the first hosted application and the second hosted application.
In this embodiment, the server of the first hosted application may merge the interface of at least part of the functionality controls of the first hosted application with the interface of at least part of the functionality controls of the second hosted application to generate a joint execution interface of the first hosted application and the second hosted application.
In some embodiments, the first hosted application may be a hosted application and the second hosted application may be a slave hosted application. As such, the co-launch interface may include all functionality controls of the first hosted application and at least some functionality controls of the second hosted application.
And step 704, sending the joint operation interface to the terminal equipment.
In this embodiment, the server of the first hosted application may send the joint execution interface to the terminal device (e.g., device 101 shown in fig. 1) so that the terminal device can display the joint execution interface.
Here, the joint execution interface may include at least part of the functionality controls of the first hosted application and at least part of the functionality controls of the second hosted application, and the user may operate the functionality controls included in the joint execution interface. In some embodiments, in the case of receiving a control running request sent by a terminal device, a server of a first hosted application may first obtain a running result of a running functional control; and then, the running result of the running function control is sent to the terminal equipment.
In the method for jointly running hosted applications provided in the foregoing embodiment of the present application, when a joint running interface generation instruction sent by a server of a hosted application is received, at least part of function controls of a first hosted application is obtained first, and an interface of at least part of function controls of a second hosted application is obtained from a server of the second hosted application; then fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint operation interface; and finally, the joint operation interface is sent to the terminal equipment for the terminal equipment to display, so that joint operation of the hosted application is realized, and the operation flexibility of the hosted application is improved. And the joint operation interface comprises the function control of the first hosted application and the function control of the second hosted application, so that the user can simultaneously use the functions of the multiple hosted applications, and the functions of the hosted applications are expanded.
With further reference to fig. 8, a flow 800 of a sixth embodiment of a method for federated running of hosted applications in accordance with the present application is illustrated. The method for jointly running the hosted applications is applied to the server of the first hosted application and comprises the following steps:
step 801, if a joint operation interface generation instruction sent by a server of the hosted application is received, accessing a first data sandbox of the first hosted application to obtain an interface of at least part of the functional controls of the first hosted application.
In this embodiment, upon receiving a joint execution interface generation instruction sent by a server (e.g., device 102 shown in fig. 1) of the hosted application, the server (e.g., device 103 shown in fig. 1) of the first hosted application may access the first data sandbox of the first hosted application to obtain an interface of at least a portion of the functionality controls of the first hosted application. Here, the first hosted application may be a hosted application. The first hosted application may include a first data sandbox and a first API. The first data sandbox may be used to store a set of memory data and file buffers required by the hosted application in an independent operational state. The first API may be an interface for the hosted application to interact with information with the hosted application in an independently running state.
Step 802, accessing a second data sandbox of the second hosted application through a second API of the second hosted application to obtain an interface for at least a portion of the functionality controls of the second hosted application.
In this embodiment, in the case of receiving the joint operation interface generation instruction sent by the server of the hosted application, the server of the first hosted application may further access the second data sandbox of the second hosted application through the second API of the second hosted application to obtain an interface of at least part of the function controls of the second hosted application. Here, the second hosted application may include a first data sandbox, a second data sandbox, a first API, and a second API. The first data sandbox may be used to store a set of memory data and file buffers required by the hosted application in an independent operational state. The second data sandbox may be used to store a set of memory data and file buffers needed by the hosted application in a federated operating state. The first API may be an interface for the hosted application to interact with information with the hosted application in an independently running state. The second API may be an interface for the hosted application to interact with information of the federated hosted application in the federated operational state.
In some embodiments, the second API may include a display control API. The display control API is used for controlling the display of the joint operation interface of the hosted application in the joint operation state. In this way, the server of the first hosted application may access the second data sandbox of the second hosted application through the display control API of the second hosted application to interface at least a portion of the functionality controls of the second hosted application.
Step 803, merging the interface of at least part of the functionality control of the first hosted application with the interface of at least part of the functionality control of the second hosted application to generate a joint operation interface of the first hosted application and the second hosted application.
And step 804, sending the combined operation interface to the terminal equipment.
In the present embodiment, the specific operation of the steps 803-804 is substantially the same as the operation of the step 703-704 in the embodiment shown in fig. 6, and will not be described herein again.
Step 805, if receiving the control running request of the function control of the first hosted application sent by the terminal device, accessing the first data sandbox of the first hosted application, and generating a running result of the running function control.
In this embodiment, in the case of receiving a control execution request of a functionality control of a first hosted application sent by a terminal device (for example, the device 101 shown in fig. 1), a server of the first hosted application may access a first data sandbox of the first hosted application to generate an execution result of the executed functionality control.
Step 805', if a control running request of the function control of the second hosted application sent by the terminal device is received, accessing a second data sandbox of the second hosted application through a second API of the second hosted application, and generating a running result of the running function control.
In this embodiment, in a case of receiving a control execution request of a function control of a second hosted application sent by a terminal device, a server of a first hosted application may access a second data sandbox of the second hosted application through a second API of the second hosted application to generate an execution result of the executed function control.
In some embodiments, the second API may include a datamation sequence API and a function API. The datamation sequence API can be used to provide a uniform format encapsulation of interaction information for hosted applications in a federated run state. The functional API can be used to provide a call interface for hosting a functional control of an application in a federated run state. In this way, the server of the first hosted application may first access the second data sandbox of the second hosted application through the functional API of the second hosted application to generate an unpackaged execution result of the executed functionality control; and then, uniformly format packaging the unpacked operation result through a datamation sequence API of the second hosted application to generate the operation result of the operated functional control.
And step 806, sending the running result of the running function control to the terminal equipment.
In this embodiment, the server of the first hosted application may send the running result of the running functionality control to the terminal device, so that the terminal device displays the running result of the running functionality control.
As can be seen from fig. 8, compared with the embodiment corresponding to fig. 7, the flow 800 of the method for jointly running hosted applications in this embodiment highlights the steps of obtaining the interface of at least part of the functionality control of the second hosted application and obtaining the running result of the functionality control of the second hosted application. Therefore, in the solution described in this embodiment, the second hosted application makes information interaction with the first hosted application more convenient in the joint operation state through the second API of the second hosted application.
Referring now to FIG. 9, a block diagram of a computer system 900 suitable for use in implementing a computing device (e.g., devices 101, 102, 103 shown in FIG. 1) of an embodiment of the present application is shown. The computer device shown in fig. 9 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU)901 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other via a bus 904. An input/output (I/O) interface 905 is also connected to bus 904.
The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, and the like; an output section 907 including components such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage portion 908 including a hard disk and the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as necessary. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 910 as necessary, so that a computer program read out therefrom is mounted into the storage section 908 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 909, and/or installed from the removable medium 911. The above-described functions defined in the method of the present application are executed when the computer program is executed by a Central Processing Unit (CPU) 901.
It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit and a presentation unit. The names of the units do not form a limitation on the units themselves in some cases, for example, the obtaining unit may also be described as a "unit for obtaining a joint running interface of a first hosted application and a second hosted application if the operation of the first hosted application and the second hosted application of the joint hosted application is detected". As another example, it can also be described as: a processor includes a transmit unit. The names of the units do not form a limitation on the unit itself in some cases, for example, the sending unit may also be described as a "unit sending a joint operation interface generation instruction to the server of the first hosted application if the first hosted application and the second hosted application of the hosted application are determined to have joint operation capability and the hosted application is received from the terminal device". As another example, it can also be described as: a processor includes a first acquisition unit, a second acquisition unit, a generation unit, and a transmission unit. For example, the first obtaining unit may be further described as "obtaining at least part of the functionality control of the first hosted application if receiving a joint execution interface generation instruction sent by the server of the hosted application".
As another aspect, the present application also provides a computer-readable medium, which may be contained in the computer device described in the above embodiments; or may exist separately and not be incorporated into the computer device. The computer readable medium carries one or more programs which, when executed by the computing device, cause the computing device to: if the operation of a first hosted application and a second hosted application of a combined hosted application is detected, acquiring a combined running interface of the first hosted application and the second hosted application, wherein the combined running interface comprises at least part of function controls of the first hosted application and at least part of function controls of the second hosted application, the running of the first hosted application and the second hosted application depends on the hosted application, and the first hosted application and the second hosted application are independent of each other; and displaying the joint operation interface. Or cause the computer device to: and if the joint request of the hosted application sent by the terminal equipment is received and the first hosted application and the second hosted application of the hosted application are determined to have joint operation capacity, sending a joint operation interface generation instruction to a server of the first hosted application. Or cause the computer device to: if a joint operation interface generation instruction sent by a server of the host application is received, acquiring at least part of functional controls of the first hosted application; obtaining an interface of at least a portion of functionality controls of a second hosted application from a server of the second hosted application; fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint operation interface of the first hosted application and the second hosted application; and sending the joint operation interface to the terminal equipment.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the invention. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (40)

1. A method for jointly running hosted applications, applied to a terminal device, includes:
if the operation of a first hosted application and a second hosted application of a joint hosted application is detected, acquiring a joint running interface of the first hosted application and the second hosted application, wherein the joint running interface comprises at least part of function controls of the first hosted application and at least part of function controls of the second hosted application, and is generated by fusing the interfaces of the at least part of function controls of the first hosted application and the interfaces of the at least part of function controls of the second hosted application, the running of the first hosted application and the second hosted application depends on the hosted application, and the first hosted application and the second hosted application are independent of each other;
and displaying the joint operation interface.
2. The method of claim 1, wherein after said presenting the joint operation interface, further comprising:
if the operation of running the function control on the joint running interface is detected, obtaining the running result of the running function control;
and displaying the running result of the running function control.
3. The method of claim 2, wherein the first hosted application is a hosted application and the second hosted application is a slave hosted application, and the joint runtime interface includes all functionality controls of the first hosted application and at least some functionality controls of the second hosted application.
4. The method of claim 3, wherein the first hosted application comprises a first data sandbox and the second hosted application comprises the first data sandbox for storing a set of memory data and file buffers required by the hosted application in an independently running state and a second data sandbox for storing a set of memory data and file buffers required by the hosted application in a jointly running state.
5. The method of claim 4, wherein said obtaining a joint execution interface of the first hosted application and the second hosted application comprises:
accessing the first data sandbox of the first hosted application to obtain an interface of at least a portion of functionality controls of the first hosted application;
accessing the second data sandbox of the second hosted application to obtain an interface for at least a portion of functionality controls of the second hosted application;
and fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate the joint operation interface.
6. The method of claim 5, wherein the obtaining of the result of the execution of the executed functionality control comprises:
if the executed functionality control is the functionality control of the first hosted application, accessing the first data sandbox of the first hosted application to generate an execution result of the executed functionality control.
7. The method of claim 5, wherein the obtaining of the result of the execution of the executed functionality control further comprises:
if the executed functionality control is the functionality control of the second hosted application, accessing the second data sandbox of the second hosted application to generate an execution result of the executed functionality control.
8. The method of any of claims 5-7, wherein the first hosted application comprises a first Application Programming Interface (API), and the second hosted application comprises a first API that is an interface for information interaction by the hosted application in an independently running state and a second API that is an interface for information interaction by the hosted application in a co-running state with the co-hosted application.
9. The method of claim 8, wherein said accessing the second data sandbox of the second hosted application to interface at least a portion of functionality controls of the second hosted application comprises:
accessing the second data sandbox of the second hosted application through the second API of the second hosted application to obtain an interface for at least a portion of functionality controls of the second hosted application.
10. The method of claim 8, wherein the accessing the second data sandbox of the second hosted application to generate a result of execution of the executed functionality control comprises:
accessing the second data sandbox of the second hosted application through the second API of the second hosted application to generate a run result of the run functionality control.
11. The method of claim 9 or 10, wherein the second API comprises at least one of: the display control API is used for controlling the display of a joint operation interface of the hosted application in a joint operation state, the datamation sequence API is used for providing uniform format encapsulation of interaction information of the hosted application in the joint operation state, and the function API is used for providing a calling interface of a function control of the hosted application in the joint operation state.
12. The method of claim 11, wherein said accessing the second data sandbox of the second hosted application through the second API of the second hosted application to interface at least a portion of functionality controls of the second hosted application comprises:
accessing the second data sandbox of the second hosted application through the display control API of the second hosted application to obtain an interface for at least a portion of functionality controls of the second hosted application.
13. The method of claim 11, wherein said accessing the second data sandbox of the second hosted application through the second API of the second hosted application to generate a result of execution of the executed functionality control comprises:
accessing the second data sandbox of the second hosted application through the functional API of the second hosted application to generate an unencapsulated execution result of the executed functionality control;
and performing uniform format encapsulation on the unencapsulated operation result through the datamation sequence API of the second hosted application to generate an operation result of the operated functional control.
14. The method of claim 2, wherein said obtaining a joint execution interface of the first hosted application and the second hosted application comprises:
sending a hosted application federation request to a server of the hosted application;
and receiving the joint operation interface returned by the server of the first hosted application.
15. The method of claim 14, wherein the obtaining of the result of the execution of the executed functionality control comprises:
sending a control running request to a server of the first hosted application;
and receiving the running result of the running functional control returned by the server of the first hosted application.
16. The method of claim 1, wherein said obtaining a joint execution interface of the first hosted application and the second hosted application comprises:
and if the first hosted application and the second hosted application are determined to have the joint operation capability, acquiring a joint operation interface of the first hosted application and the second hosted application.
17. The method of claim 16, wherein the method further comprises:
acquiring a configuration file of the first hosted application and a configuration file of the second hosted application;
and if the preset variable in the configuration file of the first hosted application and the preset variable in the configuration file of the second hosted application are both preset values, determining that both the first hosted application and the second hosted application have joint operation capability.
18. The method of claim 3, wherein said presenting the joint operation interface comprises:
displaying the combined operation prompt information;
and if the operation of running the first hosted application and the second hosted application is detected, displaying the joint running interface.
19. The method of claim 18, wherein said presenting a joint operation hint information comprises:
generating a union icon for the first hosted application and the second hosted application;
and displaying the joint icon.
20. The method of claim 19, wherein the union icon is generated by adding a preset flag to the icon of the first hosted application.
21. The method of any of claims 1-7, 9-10, 12-20, wherein the operation of joining the first hosted application with the second hosted application comprises at least one of:
an operation of dragging the icon of the first hosted application until it overlaps with the icon of the second hosted application;
an operation of dragging the icon of the second hosted application until it overlaps with the icon of the first hosted application;
an operation of simultaneously dragging icons of the first hosted application and the second hosted application until they overlap;
an operation of moving icons of the first hosted application and the second hosted application to a specific area.
22. A method for federated running of hosted applications, applied to a server hosting the applications, comprising:
if a hosted application joint request sent by a terminal device is received and it is determined that a first hosted application and a second hosted application of the hosted application both have joint operation capability, sending a joint operation interface generation instruction to a server of the first hosted application, wherein the joint operation interface is generated by fusing an interface of at least part of function controls of the first hosted application and an interface of at least part of function controls of the second hosted application.
23. The method of claim 22, wherein the method further comprises:
acquiring a configuration file of the first hosted application and a configuration file of the second hosted application;
and if the preset variable in the configuration file of the first hosted application and the preset variable in the configuration file of the second hosted application are both preset values, determining that both the first hosted application and the second hosted application have joint operation capability.
24. The method of claim 22, wherein the first hosted application is a hosted application and the second hosted application is a slave hosted application, and the joint runtime interface includes all functionality controls of the first hosted application and at least some functionality controls of the second hosted application.
25. The method of claim 24, wherein the first hosted application comprises a first Application Programming Interface (API) and the second hosted application comprises a first API that is an interface for hosted applications to interact with information with the hosted application in an independently running state and a second API that is an interface for hosted applications to interact with information with the federated hosted application in a federated running state.
26. The method of claim 25, wherein said sending a joint execution interface generation instruction to the server of the first hosted application comprises:
sending a joint operation interface generation instruction to a server of the first hosted application through the first API of the first hosted application.
27. A method for jointly running hosted applications, applied to a server of a first hosted application, comprising:
if a joint operation interface generation instruction sent by a server of the host application is received, acquiring at least part of functional controls of the first hosted application;
obtaining, from a server of a second hosted application, an interface of at least a portion of functionality controls of the second hosted application;
fusing the interfaces of at least part of the function controls of the first hosted application with the interfaces of at least part of the function controls of the second hosted application to generate a joint operation interface of the first hosted application and the second hosted application;
and sending the combined operation interface to terminal equipment.
28. The method of claim 27, wherein after sending the joint operation interface to a terminal device, further comprising:
if a control running request sent by the terminal equipment is received, obtaining a running result of the running functional control;
and sending the running result of the running function control to the terminal equipment.
29. The method of claim 28, wherein the first hosted application is a hosted application and the second hosted application is a slave hosted application, and the joint runtime interface includes all functionality controls of the first hosted application and at least some functionality controls of the second hosted application.
30. The method of claim 29, wherein the first hosted application comprises a first data sandbox and the second hosted application comprises the first data sandbox for storing a set of memory data and file buffers required by the hosted application in an independently operating state and a second data sandbox for storing a set of memory data and file buffers required by the hosted application in a jointly operating state.
31. The method of claim 30, wherein the first hosted application comprises a first Application Programming Interface (API) and the second hosted application comprises a first API that is an interface for hosted applications to interact with information with the hosted application in an independently running state and a second API that is an interface for hosted applications to interact with information with the federated hosted application in a federated running state.
32. The method of claim 30, wherein said obtaining at least a portion of functionality controls of the first hosted application comprises:
accessing the first data sandbox of the first hosted application to obtain an interface for at least a portion of functionality controls of the first hosted application.
33. The method of claim 31, wherein said obtaining from a server of a second hosted application an interface for at least a portion of functionality controls of the second hosted application comprises:
accessing the second data sandbox of the second hosted application through the second API of the second hosted application to obtain an interface for at least a portion of functionality controls of the second hosted application.
34. The method of claim 30, wherein the obtaining the result of the execution of the executed functionality control comprises:
if the functional control of the first hosted application of the executed functional control is not the same as the functional control of the first hosted application, accessing the first data sandbox of the first hosted application to generate an execution result of the executed functional control.
35. The method of claim 33, wherein the obtaining the result of the execution of the executed functionality control comprises:
if the functional control of the second hosted application of the run functional control is not available, accessing the second data sandbox of the second hosted application through the second API of the second hosted application to generate a running result of the run functional control.
36. The method of claim 35, wherein the second API comprises at least one of: the display control API is used for controlling the display of a joint operation interface of the hosted application in a joint operation state, the datamation sequence API is used for providing uniform format encapsulation of interaction information of the hosted application in the joint operation state, and the function API is used for providing a calling interface of a function control of the hosted application in the joint operation state.
37. The method of claim 36, wherein said accessing the second data sandbox of the second hosted application through the second API of the second hosted application to interface at least a portion of functionality controls of the second hosted application comprises:
accessing the second data sandbox of the second hosted application through the display control API of the second hosted application to obtain an interface for at least a portion of functionality controls of the second hosted application.
38. The method of claim 37, wherein said accessing the second data sandbox of the second hosted application through the second API of the second hosted application to generate a result of execution of the executed functionality control comprises:
accessing the second data sandbox of the second hosted application through the functional API of the second hosted application to generate an unencapsulated execution result of the executed functionality control;
and performing uniform format encapsulation on the unencapsulated operation result through the datamation sequence API of the second hosted application to generate an operation result of the operated functional control.
39. A computer device, comprising:
one or more processors;
a storage device on which one or more programs are stored;
when executed by the one or more processors, cause the one or more processors to implement a method as claimed in any one of claims 1-21, or to implement a method as claimed in any one of claims 22-26, or to implement a method as claimed in any one of claims 27-38.
40. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 21, or carries out the method of any one of claims 22 to 26, or carries out the method of any one of claims 27 to 38.
CN201910357323.9A 2019-04-29 2019-04-29 Method and apparatus for co-running hosted applications Active CN110069185B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910357323.9A CN110069185B (en) 2019-04-29 2019-04-29 Method and apparatus for co-running hosted applications
PCT/CN2020/086326 WO2020221090A1 (en) 2019-04-29 2020-04-23 Method for use in combined operation of guest applications, and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910357323.9A CN110069185B (en) 2019-04-29 2019-04-29 Method and apparatus for co-running hosted applications

Publications (2)

Publication Number Publication Date
CN110069185A CN110069185A (en) 2019-07-30
CN110069185B true CN110069185B (en) 2021-04-23

Family

ID=67369612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910357323.9A Active CN110069185B (en) 2019-04-29 2019-04-29 Method and apparatus for co-running hosted applications

Country Status (2)

Country Link
CN (1) CN110069185B (en)
WO (1) WO2020221090A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069185B (en) * 2019-04-29 2021-04-23 上海连尚网络科技有限公司 Method and apparatus for co-running hosted applications
CN111142721A (en) * 2019-12-04 2020-05-12 维沃移动通信有限公司 Application icon processing method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2618246A1 (en) * 2012-01-19 2013-07-24 Research In Motion Limited Simultaneous display of multiple maximized applications on touch screen electronic devices
CN107391117A (en) * 2017-06-28 2017-11-24 广州神马移动信息科技有限公司 Split screen processing method, equipment and the electronic equipment gently applied
CN107637073A (en) * 2015-06-07 2018-01-26 苹果公司 Videograph and playback
CN108833679A (en) * 2018-05-24 2018-11-16 维沃移动通信有限公司 A kind of object displaying method and terminal device

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE202009018704U1 (en) * 2008-12-01 2012-11-15 Lg Electronics Inc. Mobile terminal
KR20120137756A (en) * 2011-06-13 2012-12-24 삼성전자주식회사 Method and apparatus for merging applications in portable terminal
CN104063284B (en) * 2013-03-18 2016-07-06 腾讯科技(深圳)有限公司 The method and apparatus running application program
CN104951288A (en) * 2014-03-28 2015-09-30 上海斐讯数据通信技术有限公司 Application program managing method and system
CN104883384B (en) * 2015-03-25 2018-09-07 百度在线网络技术(北京)有限公司 A kind of method and apparatus for the end ability that client is provided for light application
US10051015B2 (en) * 2015-10-30 2018-08-14 Bank Of America Corporation System for configuration, device connectivity and device control based on user selection
CN109032691B (en) * 2018-06-25 2020-12-15 腾讯科技(深圳)有限公司 Applet running method and device and storage medium
CN110069185B (en) * 2019-04-29 2021-04-23 上海连尚网络科技有限公司 Method and apparatus for co-running hosted applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2618246A1 (en) * 2012-01-19 2013-07-24 Research In Motion Limited Simultaneous display of multiple maximized applications on touch screen electronic devices
CN107637073A (en) * 2015-06-07 2018-01-26 苹果公司 Videograph and playback
CN107391117A (en) * 2017-06-28 2017-11-24 广州神马移动信息科技有限公司 Split screen processing method, equipment and the electronic equipment gently applied
CN108833679A (en) * 2018-05-24 2018-11-16 维沃移动通信有限公司 A kind of object displaying method and terminal device

Also Published As

Publication number Publication date
CN110069185A (en) 2019-07-30
WO2020221090A1 (en) 2020-11-05

Similar Documents

Publication Publication Date Title
CN110708346B (en) Information processing system and method
US20220043898A1 (en) Methods and apparatuses for acquiring information
CN110377440B (en) Information processing method and device
CN109753332B (en) Method and device for displaying information
CN110619100A (en) Method and apparatus for acquiring data
CN110069185B (en) Method and apparatus for co-running hosted applications
CN110618768B (en) Information presentation method and device
CN111324376B (en) Function configuration method, device, electronic equipment and computer readable medium
CN111309416B (en) Information display method, device and equipment of application interface and readable medium
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111125503A (en) Method and apparatus for generating information
CN111124523A (en) Method and apparatus for initializing applications
CN110619101A (en) Method and apparatus for processing information
CN113407229B (en) Method and device for generating offline scripts
CN109669679B (en) Service detection and processing method and device and electronic equipment
CN113778566A (en) Native application calling method and device, electronic equipment and computer readable medium
CN111324386B (en) Method and device for starting split application program, electronic equipment and storage medium
CN112306858A (en) Test method and device and electronic equipment
CN111125676B (en) Joint authorization method and device
CN110099122B (en) Method and apparatus for sending network request
CN112905355A (en) Method, apparatus, and computer storage medium for information processing
CN113239300B (en) Data processing method and device and electronic equipment
CN111796802B (en) Function package generation method and device and electronic equipment
CN114706645B (en) Interface information transmission method, device, medium and electronic equipment
CN118057312A (en) Starting method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant