CN108323236B - Interaction method and terminal - Google Patents

Interaction method and terminal Download PDF

Info

Publication number
CN108323236B
CN108323236B CN201680066307.9A CN201680066307A CN108323236B CN 108323236 B CN108323236 B CN 108323236B CN 201680066307 A CN201680066307 A CN 201680066307A CN 108323236 B CN108323236 B CN 108323236B
Authority
CN
China
Prior art keywords
terminal
function module
target function
request message
interaction
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
CN201680066307.9A
Other languages
Chinese (zh)
Other versions
CN108323236A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN108323236A publication Critical patent/CN108323236A/en
Application granted granted Critical
Publication of CN108323236B publication Critical patent/CN108323236B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72412User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories using two-way short-range wireless interfaces
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72469User interfaces specially adapted for cordless or mobile telephones for operating the device by selecting functions from two or more displayed items, e.g. menus or icons
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor

Abstract

The embodiment of the application provides an interaction method and a terminal. The interaction method of the embodiment of the application comprises the following steps: the first terminal runs a detachable application program, and the detachable application program comprises at least one functional module capable of independently running; the method comprises the steps that a first terminal receives a first operation instruction, the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by at least one independently-operated function module; the first terminal sends an interaction request message to the second terminal, wherein the interaction request message comprises target function module data or a target function module identifier; and the first terminal interacts with a target function module operated by the second terminal through the detachable application program. The terminal and the interaction method of the embodiment of the application can save the resources of the terminal and improve the interaction efficiency of the terminal.

Description

Interaction method and terminal
Technical Field
The embodiment of the application relates to the field of communication, in particular to an interaction method and a terminal.
Background
With the wide application of intelligent terminals, the intelligent terminals can interact with each other in many occasions, such as information interaction between a chat application program on one terminal and a chat application on another terminal.
When the terminals interact with each other, one of the terminals (which may be referred to as an interaction initiator) may initiate an interaction request message to the other terminal (which may be referred to as an interaction receiver), and then the two terminals run the same or associated application programs to implement the interaction between the interaction initiator and the interaction receiver.
However, in most cases, the interaction initiator and the interaction receiver can complete the interaction by only realizing part of functions in the same or related application programs. At this time, the interaction initiator and the interaction receiver both need to run the whole application program including the part of the functions.
If the interaction initiator initiates an interaction request message to the interaction receiver and requests the interaction receiver to perform information interaction of language translation, the interaction initiator and the interaction receiver both need to run a complete application program with the functions of music playing, language translation, photo sharing and the like.
The above-mentioned traditional interaction mode between terminals can cause the resource waste of the terminals participating in the interaction, and reduce the interaction efficiency between the terminals.
Disclosure of Invention
The embodiment of the application provides an interaction method and a terminal, which can save terminal resources and improve interaction efficiency of the terminal.
In a first aspect, an embodiment of the present application provides an interaction method. The interaction method comprises the following steps: the method comprises the steps that a first terminal runs a detachable application program, wherein the detachable application program comprises at least one functional module capable of independently running; the first terminal receives a first operation instruction, wherein the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by the at least one independently-operated function module; the first terminal sends an interaction request message to the second terminal, wherein the interaction request message comprises target function module data or a target function module identifier; and the first terminal interacts with a target function module operated by the second terminal through the detachable application program.
In the interaction method of the embodiment of the application, the first terminal and the second terminal can only transmit the data of the target function module or the identification of the target function module without transmitting the whole application program, and the interaction between the first terminal and the second terminal can be realized. Therefore, the flow resource of the first terminal can be saved, the transmission time between the first terminal and the second terminal can also be saved, and the interaction efficiency between the first terminal and the second terminal can be improved.
In one possible implementation, the interaction request message includes the target function module data; the interaction method further comprises the following steps: the first terminal acquires the target function module data from the data of the detachable application program; and the first terminal inserts the target function module data into the interaction request message.
In a possible implementation manner, the interaction request message carries the target function module identifier; the interaction method further comprises the following steps: the first terminal receives a module request message sent by the second terminal, wherein the module request message is used for requesting target function module data; and the first terminal sends the target function module data to the second terminal.
In one possible implementation, the interaction method further includes: and the first terminal receives an interactive response message sent by the second terminal, wherein the interactive response message is used for indicating that the target function module is operated by the second terminal.
In one possible implementation, the interaction method further includes: before the first terminal receives the first operation instruction, the interaction method further includes: the first terminal displays a first application interface of the detachable application program, wherein the first application interface comprises information of the at least one independently operable functional module; the first terminal receiving the first operation instruction comprises: the first terminal receives the first operation instruction input by a user aiming at the first application interface.
In a possible implementation manner, the first application interface further includes information of the second terminal.
In one possible implementation, the interaction method further includes: and the first terminal displays a second application interface of the detachable application program, wherein the second application interface comprises interactive information between the first terminal and the second terminal.
In a second aspect, an embodiment of the present application provides an interaction method. The interaction method comprises the following steps: the method comprises the steps that a second terminal receives an interaction request message sent by a first terminal, an execution environment for executing functional modules capable of running independently is operated on the second terminal, the interaction request message comprises target functional module data or a target functional module identification, and a target functional module corresponding to the target functional module data or the target functional module identification is at least one functional module capable of running independently in a detachable application program operated by the first terminal; the execution environment on the second terminal runs the target function module; and the second terminal interacts with the detachable application program operated by the first terminal through the target function module.
In the interaction method of the embodiment of the application, when the second terminal interacts with the first terminal, the whole detachable application program is not executed, but only the target function module is operated, so that the computing resource of the second terminal is saved.
In addition, the whole application program does not need to be transmitted between the first terminal and the second terminal, and only the target function module data or the target function module identification can be transmitted. Therefore, the flow resource of the second terminal can be saved, the transmission time between the second terminal and the first terminal can be saved, and the interaction efficiency between the first terminal and the second terminal can be further improved.
On the other hand, only the target function module can be stored on the second terminal, and the whole application program does not need to be stored, so that the storage resource of the second terminal can be saved.
In one possible implementation, the target function module data includes an initialization function of the target function module; wherein the executing environment on the second terminal runs the target function module, including: the execution environment on the second terminal calls the initialization function.
In one possible implementation, the interaction request message includes the target function module identifier; wherein, the interaction method further comprises: the second terminal determines that no target function module data exists on the second terminal according to the target function module identification; and the second terminal acquires the target function module data according to the target function module identification.
In a possible implementation manner, the acquiring, by the second terminal, the target function module data includes: the second terminal sends a module request message to the first terminal, wherein the module request message is used for requesting the target function module data; and the second terminal receives the target function module data sent by the first terminal.
In one possible implementation, the interaction method further includes: and the second terminal outputs prompt information, wherein the prompt information is used for indicating that the second terminal has received the target function module data.
In one possible implementation, the interaction method further includes: and the second terminal sends an interactive response message to the first terminal, wherein the interactive response message is used for indicating that the target function module is operated by the second terminal.
In one possible implementation, the interaction method further includes: the second terminal receives a first operation instruction, wherein the first operation instruction is used for indicating the second terminal to operate the target function module; the executing environment on the second terminal runs the target function module, and the executing environment comprises: and the execution environment on the second terminal operates the target function module according to the first operation instruction.
In one possible implementation, the interaction method further includes: and after the execution environment on the second terminal runs the target function module, displaying an application interface of the target function module, wherein the application interface comprises the information of the first terminal.
In a possible implementation manner, the application interface further includes interaction information between the second terminal and the first terminal.
In one possible implementation, the second terminal stores the target function module data.
In a third aspect, an embodiment of the present application provides a terminal. The terminal includes a processor, an input unit, a communication unit, and a display unit. The processor is used for running a detachable application program, and the detachable application program comprises at least one independently-running functional module; the input unit is used for receiving a first operation instruction, the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by the at least one independently-operated function module; the communication unit is used for sending an interaction request message to a second terminal according to the first operation instruction, wherein the interaction request message comprises target function module data or a target function module identifier corresponding to the target function module; the communication unit is further configured to interact with the target function module operated by the second terminal through the detachable application program.
The terminal of the embodiment of the application, as a first terminal, does not need to transmit the whole application program with a second terminal, and can only transmit the data of the target function module or the identification of the target function module, so that the interaction between the first terminal and the second terminal can be realized. Therefore, the traffic resource of the terminal can be saved, the transmission time between the terminal and the second terminal can be saved, and the interaction efficiency between the terminal and the second terminal can be improved.
In a possible implementation manner, the communication unit is further configured to receive an interactive response message, where the interactive response message indicates that the target function module is executed by the second terminal.
In a possible implementation manner, the interaction request message carries a target function module identifier; the communication unit is further configured to receive a module request message sent by the second terminal, where the module request message is used to request target function module data; the communication unit is further configured to send the target function module data to the second terminal.
In a possible implementation manner, the display unit is configured to display a first application interface of the detachable application, where the first application interface includes information of the at least one independently executable function module; the input unit is specifically configured to receive the first operation instruction input by a user for the first application interface.
In a possible implementation manner, the first application interface further includes information of the second terminal.
In a possible implementation manner, the display unit is further configured to display a second application interface of the detachable application, where the second application interface includes interaction information between the first terminal and the second terminal.
In a possible implementation manner, the processor is further configured to obtain the target function module data from the data of the detachable application program, and insert the target function module data into the interaction request message; wherein the interaction request message includes the target function module data.
In a fourth aspect, an embodiment of the present application provides a terminal. The terminal includes a processor, a communication unit, a display unit, and an input unit. The processor is used for running an execution environment for executing the independently runnable functional module; the communication unit is used for receiving an interaction request message sent by a first terminal, wherein the interaction request message comprises target function module data or a target function module identifier, and a target function module corresponding to the target function module data or the target function module identifier is at least one independently operable function module in a detachable application program operated by the first terminal; the processor is used for instructing the execution environment to run the target function module; the communication unit is further configured to run the target function module through the execution environment to interact with a detachable application program of the first terminal.
The terminal of the embodiment of the application is used as the second terminal, and when the terminal is interacted with the first terminal, the whole detachable application program does not need to be executed, but only the target function module can be operated, so that the computing resources of the terminal can be saved.
In addition, the whole application program does not need to be transmitted between the first terminal and the terminal, but only the corresponding functional module needs to be transmitted, so that the flow resource of the terminal can be saved, the transmission time between the terminal and the first terminal can be saved, and the interaction efficiency between the first terminal and the terminal can be improved.
On the other hand, the terminal can only store the target function module data, and does not need to store the whole application program, so that the storage resource of the terminal can be saved.
In a possible implementation manner, the communication unit is further configured to send an interactive response message to the first terminal, where the interactive response message is used to indicate that the target function module is executed by the second terminal.
In one possible implementation, the interaction request message includes the target function module identifier; the processor is further configured to determine that there is no target function module data on the second terminal according to the target function module identifier; the communication unit is further configured to obtain the target function module data according to the identifier of the target function module.
In a possible implementation manner, the communication unit is specifically configured to send a module request message to the first terminal, where the module request message is used to request the target function module data; the communication unit is further specifically configured to receive the target function module data sent by the first terminal.
In a possible implementation manner, the display unit is further configured to output a prompt message, where the prompt message is used to indicate that the second terminal has received the target function module data.
In a possible implementation manner, the input unit is configured to receive a first operation instruction, where the first operation instruction is used to instruct the second terminal to operate the target function module; the processor is specifically configured to instruct the execution environment to execute the target function module according to the first operation instruction.
In one possible implementation, the target function module data includes an initialization function of the target function module; wherein the processor is specifically configured to instruct the execution environment to invoke the initialization function.
In a possible implementation manner, the display unit is further configured to display an application interface of the target function module after the processor instructs the execution environment to run the target function module, where the application interface includes information of the first terminal.
In a possible implementation manner, the application interface further includes interaction information between the second terminal and the first terminal.
In a possible implementation manner, the terminal further includes a memory for storing the target function module data.
In a fifth aspect, an embodiment of the present application provides a computer-readable medium storing program code for execution by a terminal, where the program code includes instructions for executing the interaction method in the first aspect or any one of the possible implementation manners in the first aspect.
In a sixth aspect, the present application provides a computer-readable medium storing program code for execution by a terminal, where the program code includes instructions for executing the interaction method in the second aspect or any one of the possible implementation manners in the second aspect.
In a seventh aspect, an embodiment of the present application provides a terminal. The terminal comprises a processing unit, an input unit, a communication unit and a display unit. The processing unit is used for running a detachable application program, and the detachable application program comprises at least one functional module capable of independently running. The input unit is used for receiving a first operation instruction, the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by the at least one independently-operated function module. And the communication unit is used for sending an interaction request message to the second terminal according to the first operation instruction, wherein the interaction request message comprises target function module data or a target function module identifier. The communication unit is further configured to interact with the target function module operated by the second terminal through the detachable application program.
The terminal of the embodiment of the application, as a first terminal, does not need to transmit the whole application program with a second terminal, and can only transmit the data of the target function module or the identification of the target function module, so that the interaction between the first terminal and the second terminal can be realized. Therefore, the traffic resource of the terminal can be saved, the transmission time between the terminal and the second terminal can be saved, and the interaction efficiency between the terminal and the second terminal can be improved.
In one possible implementation, the interaction request message includes the target function module data. Correspondingly, the processing unit is further configured to obtain the target function module data from the data of the detachable application program, and insert the target function module data into the interaction request message.
In a possible implementation manner, the interaction request message carries a target function module identifier. Correspondingly, the communication unit is further configured to receive a module request message sent by the second terminal, where the module request message is used to request target function module data. The communication unit is further configured to send the target function module data to the second terminal.
In a possible implementation manner, the communication unit is further configured to receive an interactive response message, where the interactive response message indicates that the target function module is executed by the second terminal.
In a possible implementation manner, the display unit is configured to display a first application interface of the detachable application, where the first application interface includes information of the at least one independently executable function module. Correspondingly, the input unit is specifically configured to receive the first operation instruction input by the user for the first application interface.
In a possible implementation manner, the first application interface further includes information of the second terminal.
In a possible implementation manner, the display unit is further configured to display a second application interface of the detachable application, where the second application interface includes interaction information between the terminal and the second terminal.
In an eighth aspect, an embodiment of the present application provides a terminal. The terminal comprises a processing unit, an input unit, a communication unit and a display unit. The processing unit is configured to run an execution environment for executing the independently runnable functional modules. The communication unit is configured to receive an interaction request message sent by a first terminal, where the interaction request message includes target function module data or a target function module identifier, and a target function module corresponding to the target function module data or the target function module identifier is at least one independently operable function module in a detachable application program that is operable by the first terminal. The processing unit is further configured to instruct the execution environment to run the target function module. The communication unit is further configured to run the target function module through the execution environment to interact with a detachable application program of the first terminal.
The terminal of the embodiment of the application, as a second terminal, may operate only the target function module without executing the whole detachable application program when interacting with the first terminal, so as to save the computing resources of the terminal.
In addition, the whole application program does not need to be transmitted between the first terminal and the terminal, but only the corresponding functional module needs to be transmitted, so that the flow resource of the terminal can be saved, the transmission time between the terminal and the first terminal can be saved, and the interaction efficiency between the first terminal and the terminal can be improved.
On the other hand, the terminal can only store the target function module data, and does not need to store the whole application program, so that the storage resource of the terminal can be saved.
In one possible implementation manner, the interaction request message includes the target function module data, and the target function module data includes an initialization function of the target function module. Correspondingly, the processing unit is specifically configured to instruct the execution environment to call the initialization function.
In a possible implementation manner, the processing unit is further configured to determine that there is no target function module data on the terminal according to the target function module identifier. The communication unit is further configured to obtain the target function module data according to the target function module identifier.
In a possible implementation manner, the communication unit is specifically configured to send a module request message to the first terminal, where the module request message is used to request the target function module data. The communication unit is further specifically configured to receive the target function module data sent by the first terminal.
In a possible implementation manner, the display unit is configured to output a prompt message, where the prompt message is used to indicate that the terminal has received the target function module data.
In a possible implementation manner, the communication unit is further configured to send an interactive response message to the first terminal, where the interactive response message is used to indicate that the target function module is operated by the terminal.
In a possible implementation manner, the input unit is configured to receive a first operation instruction, where the first operation instruction is used to instruct the terminal to execute the target function module. Correspondingly, the processing unit is specifically configured to instruct the execution environment to execute the target function module according to the first operation instruction.
Optionally, the display unit is further configured to display an application interface of the target function module after the processor instructs the execution environment to run the target function module, where the application interface includes information of the first terminal.
Optionally, the application interface further includes interaction information between the terminal and the first terminal.
In summary, according to the interaction method and the terminal in the embodiments of the present application, when the second terminal interacts with the first terminal, the whole detachable application program does not need to be executed, but only the target function module may be run, so that the computing resource of the second terminal may be saved.
In addition, the whole application program does not need to be transmitted between the first terminal and the second terminal, and only the target function module data or the target function module identification can be transmitted, so that the flow resource of the first terminal and the second terminal can be saved, the transmission time between the second terminal and the first terminal can be saved, and the interaction efficiency between the first terminal and the second terminal can be improved.
On the other hand, only the target function module data can be stored on the second terminal, and the whole application program does not need to be stored, so that the storage resource of the second terminal can be saved.
Drawings
Fig. 1 is a schematic system architecture diagram of an interaction method to which embodiments of the present application can be applied.
Fig. 2 is an exemplary structural diagram of a terminal according to an embodiment of the present application.
FIG. 3 is an exemplary flow chart of an interaction method of one embodiment of the present application.
Fig. 4 is an exemplary interface diagram of a detachable application on a terminal according to an embodiment of the present application.
Fig. 5 is an exemplary interface diagram of a target function module on a terminal according to an embodiment of the present application.
Fig. 6 is an exemplary flowchart of an interaction method of another embodiment of the present application.
Fig. 7 is an exemplary interface diagram when a terminal performs information interaction according to an embodiment of the present application.
Fig. 8 is an exemplary interface diagram when a terminal performs information interaction according to an embodiment of the present application.
Fig. 9 is another exemplary structural diagram of a terminal according to an embodiment of the present application.
Fig. 10 is another exemplary structural diagram of a terminal according to an embodiment of the present application
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used to describe various messages, requests, and terminals in embodiments of the present invention, these messages, requests, and terminals should not be limited by these terms. These terms are only used to distinguish messages, requests and terminals from one another. For example, a first terminal may also be referred to as a second terminal, and similarly, a second terminal may also be referred to as a first terminal, without departing from the scope of embodiments of the present invention.
As shown in fig. 1, a system to which the interaction method of the embodiment of the present application can be applied may include two terminals. In the embodiment of the present application, a terminal that initiates an interaction request may be referred to as a first terminal, and a terminal that receives the interaction request may be referred to as a second terminal. The first terminal and the second terminal can communicate with each other.
It should be understood that embodiments of the present application are not limited to the system architecture shown in fig. 1. The apparatus in fig. 1 may be hardware, software functionally divided, or a combination of the two.
The first terminal is used as an initiator of the interactive request, an operating system is deployed and operated on the first terminal, and a detachable application program capable of being operated on the operating system is configured on the operating system.
And part or all of the functional modules in the detachable application program can be independently downloaded, deployed and operated on the terminal. For convenience of the following description, the functional modules that can be independently downloaded, deployed and run on the terminal in the detachable application are referred to as independently runnable functional modules.
As a receiver of the interactive request, an execution environment capable of executing the independently operable functional modules in the detachable application program is deployed on the second terminal. The execution environment may be a component of the operating system deployed on the second terminal, or may be a special execution environment, such as a sandbox (sandbox), deployed on the operating system of the second terminal.
The terminal in the embodiment of the present application may be any one of a Mobile phone, a bracelet, a tablet Computer, a notebook Computer, an Ultra-Mobile Personal Computer (UMPC), a Personal Digital Assistant (PDA) device, a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, an in-vehicle device, a wearable device, and the like, and a terminal device in a future 5G network and the like.
An exemplary structure diagram of a terminal according to an embodiment of the present application is shown in fig. 2. It should be noted that the structure of the terminal shown in fig. 2 is only an example of the terminal in the embodiment of the present application, and does not limit the terminal in the embodiment of the present application. The terminals of the embodiments of the application may include more or fewer components than illustrated, or some components may be combined, or a different arrangement of components.
The terminal shown in fig. 2 may be a first terminal when serving as an interaction initiator; the terminal shown in fig. 2 may be the second terminal when it is the interaction recipient.
As shown in fig. 2, the terminal according to the embodiment of the present application may include: a Radio Frequency (RF) circuit 110, a power supply 120, a processor 130, a memory 140, an input unit 150, a display unit 160, a sensor 170, an audio circuit 180, and a near field communication module 190.
Among them, components or units used for communication with other devices, such as the RF circuit 110 and the short range communication module 190, may be collectively referred to as a communication unit.
The RF circuit 110 may be configured to receive and transmit signals during information transmission and reception or during a call, and in particular, receive downlink information of a base station and then process the received downlink information to the processor 130; in addition, the uplink data is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 110 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 140 may be used to store software programs and modules, and the processor 130 executes various functional applications and data processing of the terminal by operating the software programs and modules stored in the memory 140. The memory 140 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (e.g., a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the terminal, etc. Further, the memory 140 may also include high speed random access memory, or may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 150 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the input unit 150 may include a touch panel 151 and other input devices 152. The touch panel 151, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 151 (e.g., an operation performed by the user on or near the touch panel 151 using any suitable object or accessory such as a finger or a stylus), and drive a corresponding connection device according to a preset program. Alternatively, the touch panel 151 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 130, and can receive and execute commands sent by the processor 130. In addition, the touch panel 151 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 150 may include other input devices 152 in addition to the touch panel 151. In particular, other input devices 152 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 160 may be used to display information input by a user or information provided to the user and various menus of the terminal. The Display unit 160 may include a Display panel 161, and optionally, the Display panel 161 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Display (OLED), or the like. Further, the touch panel 151 may cover the display panel 161, and when the touch panel 151 detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 130 to determine the type of the touch event, and then the processor 130 provides a corresponding visual output on the display panel 161 according to the type of the touch event. Although the touch panel 151 and the display panel 161 are shown in fig. 2 as two separate components to implement the input and output functions of the terminal, in some embodiments, the touch panel 151 and the display panel 161 may be integrated to implement the input and output functions of the terminal.
The sensor 170 may be a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel 161 according to the brightness of ambient light, and a proximity sensor that may turn off the display panel 161 and/or the backlight when the terminal is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), and the like.
The terminal shown in fig. 2 may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
The audio circuit 180, speaker 181, microphone 182 may provide an audio interface between a user and the terminal. The audio circuit 180 may transmit the electrical signal converted from the received audio data to the speaker 181, and the electrical signal is converted into a sound signal by the speaker 181 and output; on the other hand, the microphone 182 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 180, and then outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal or outputs the audio data to the memory 140 for further processing.
The short-range communication module 190 is used to implement short-range communication through a short-range wireless transmission technology. The short-range Wireless transmission technology includes Bluetooth (Bluetooth), Wireless Local Area Network (WLAN), infrared data transmission, ZigBee, ultra wide band (uwb), Near Field Communication (NFC), Wireless Fidelity (WiFi), and the like.
The processor 130 is a control center of the terminal, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 140 and calling data stored in the memory 140, thereby implementing various services based on the terminal. Optionally, processor 130 may include one or more processing units; processor 130 may integrate an application processor that handles operating systems, user interfaces, applications, etc. and a modem processor that handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 130.
A power supply 120, such as a battery, may be logically coupled to the processor 130 via a power management system, such that functions of managing charging, discharging, and power consumption are performed via the power management system.
Although not shown, the terminal may further include a module such as a camera, which is not described herein.
In the embodiment of the present application, when a first terminal interacts with a second terminal, a schematic flowchart of an interaction method executed by the first terminal and the second terminal is shown in fig. 3.
It should be understood that the steps (which may also be referred to as operations) of the interaction method of the embodiment of the present application shown in fig. 3 are only examples, and the embodiment of the present application may also perform other steps or variations of the respective steps in fig. 3.
Before the first terminal and the second terminal execute the interaction method shown in fig. 3, a communication connection is already established between the first terminal and the second terminal, and communication can be performed between the first terminal and the second terminal.
If the user wants the detachable application program on the first terminal to interact with the second terminal, the user can click the icon of the detachable application program displayed on the first terminal.
After the first terminal runs the detachable application program, the application interface of the detachable application program can be displayed according to the selection of the user. An application interface diagram of an instant messaging application as an exemplary detachable application is shown in fig. 4.
As shown in fig. 4, the application interface of the instant messaging application displayed by the first terminal may include a name of the second terminal. The application interface can also comprise names of functional modules which can be independently run and are included in the detachable application program: a first functional module, a second functional module, a third functional module, a fourth functional module, etc.
An example of the first functional module, the second functional module, the third functional module, the fourth functional module, and the like in the application interface shown in fig. 4 may be cross-language translation, double game, photo sharing, music playlist sharing, and the like.
Before the first terminal interacts with the second terminal, the first terminal may determine an independently operable functional module for interacting with the second terminal in the detachable application program. The determined independently executable function module may be referred to as a target function module.
Specifically, the first terminal may receive function module information input by a user, and determine an independently operable function module corresponding to the function module information as a target function module. If the user can select the first function module on the application interface shown in fig. 4, the first terminal determines the first function module as the target function module. The cross-language translation function module is an example of the first function module.
After the first terminal determines the target function module, as shown in S310 in fig. 3, the first terminal sends an interaction request message to the second terminal, where the interaction request message may carry data of the target function module. .
Alternatively, the target function module data may include code or instructions included with the target function module. If the code or the instruction included in the target function module is executed in an execution environment in which the terminal is used to execute the independently executable function module, the function of the target function module can be realized.
In this embodiment of the application, optionally, the target function module data carried in the interaction request message may be acquired by the first terminal from data of the detachable application program. The data of the detachable application may include code or instructions of the detachable application.
Optionally, the target function module data may include an initialization function. Wherein the function of initializing the function comprises: display interface controls, initialization of internal variables of the function module, and the like. The initialization function is called by an execution environment executing the independently operable functional module, and once the initialization function is executed, the target functional module can take over an interactive process with a user to execute a business function.
After the second terminal receives the target function module data sent by the first terminal, optionally, the second terminal may output a prompt message, where the prompt message may be used to indicate that the second terminal has received the target function module data.
Optionally, after receiving the target function module data sent by the first terminal, the second terminal may also receive an operation instruction input by the user. The operation instruction may be used to instruct the second terminal to operate or not to operate the target function module.
As shown in fig. 5, the application interface of the second terminal may display the name of the currently connected first terminal, and may also display the name of the received target function module. The second terminal can also receive an operation instruction input by a user on the application interface.
If the operation instruction input by the user is used for indicating the second terminal to operate the target function module, the second terminal can operate the target function module. Specifically, the execution environment on the second terminal for executing the independently executable function module may execute the target function module data according to an operation instruction input by the user.
More specifically, the second terminal may issue a load command to an execution environment for executing the independently executable function module, where the load command may carry initialization function call parameters of the target function module, for example, an entry function and parameters expressed in a uri (uniform Resource identifier) manner.
In this embodiment, the execution environment on the second terminal for executing the independently executable function module may include modules such as an entry function execution module, a platform capability package, and a code execution engine.
The entrance function execution module opens an interface to the detachable application program or other application programs, so that the detachable application program or other application programs can load the functional module capable of independently running; the platform capability encapsulation opens an interface to the independently operable functional module so that the independently operable functional module can call some basic capabilities, such as user information, payment capability, and the like; the code execution engine is used for parsing and executing code of the functional module which can run independently, for example, a browser kernel is the parsing and execution engine of the Web application code.
Optionally, the specific implementation manner of the execution environment on the second terminal executing the target function module may include: and the execution environment receives the loading command of the second terminal and then calls the initialization function of the target function module, so that the second terminal can display the controls of the target function modules, and further the man-machine interaction and business functions can be processed by the target function modules.
After the second terminal runs the target function module, as shown in S320, an interactive response message may be sent to the first terminal. The interactive response message may be used to indicate that the second terminal has operated the target function module.
After the first terminal receives the interactive response message sent by the second terminal, as shown in S330, the first terminal may interact with the target function module running in the second terminal through the detachable application program. Specifically, the first terminal may perform information interaction with a target function module running in the second terminal through the detachable application.
In this embodiment of the application, optionally, after the first terminal determines the target function module, as shown in S610 in fig. 6, the interaction request message sent by the first terminal to the second terminal may carry the target function module identifier.
If the interactive request message carries the target function module identifier, the second terminal can determine whether the target function module data corresponding to the target function module identifier exists on the second terminal after receiving the interactive request message sent by the first terminal.
If the second terminal determines that the target function module corresponding to the target function module identifier exists on the second terminal, S620 may be executed, that is, the execution environment is instructed to run the target function module.
Alternatively, the second terminal may receive an operation instruction input by the user and then execute the target function module according to the operation instruction.
After the second terminal runs the target function module according to the operation instruction input by the user, S630: and the second terminal sends an interactive response message to the first terminal, wherein the interactive response message is used for indicating that the second terminal runs the target function module.
Alternatively, after the second terminal determines that the target function module data exists on the second terminal, the second terminal may directly run the target function module without receiving an operation instruction of the user, and execute S630.
And after the second terminal sends the interactive response message to the first terminal, the second terminal can interact with the detachable application program running in the first terminal through the target function module.
The first terminal receives the interactive response message sent by the second terminal, and then may perform S640: the first terminal interacts with a target function module running in the second terminal through the detachable application program.
If the second terminal determines that the target function module data does not exist in the second terminal, the target function module data can be acquired.
One specific implementation way for the second terminal to acquire the target function module data is as follows: and the second terminal sends a module request message to the first terminal, wherein the module request message is used for requesting the data of the target function module.
Optionally, the function module request message may carry a target function module identifier.
After receiving the module request message sent by the second terminal, the first terminal may send target function module data to the second terminal according to the module request message.
Another specific implementation way for the second terminal to obtain the data of the target function module is as follows: the second terminal sends a module request message to the application electronic marketplace. If the target function module data exists in the electronic market of the application program, the second terminal can receive the target function module data sent by the electronic market of the application program.
For example, the first terminal may send a short message to the second terminal via the RF circuit, where the short message may carry hyperlink information of the target function module. The second terminal may download the target function module data from the application market according to the hyperlink information.
The method for enabling the first terminal to interact with the target function module running in the second terminal through the detachable application program specifically includes: the first terminal sends information to a target function module operated by the second terminal through the detachable application program and/or receives information sent by the target function module operated by the second terminal; similarly, the target function module operated by the second terminal receives information sent by the first terminal through the detachable application program and/or sends information to the detachable application program of the first terminal.
Taking the cross-language translation function module as an example, and referring to fig. 7 and 8, an application interface when information interaction is performed between the first terminal and the second terminal is described in detail below.
As shown in FIG. 7, the first terminal may receive a user input of "hello! ", and then sends" hello!to the second terminal! ".
The second terminal receives the' hello!sent by the first terminal! "after, the" Cross-language translation "function in the second terminal will" hello! "translate to English" Hi! ", and displayed in the application interface of the second terminal, as shown in fig. 8.
The second terminal receives the user input of "What can I do for you? ", and send" What can I do for you? ".
The first terminal receives the "what can I do for you? "then," what can be said I do for you "is the" cross-language translation "function module in the detachable application on the first terminal? "translate to" can i do what for you? "and display in the application interface" can i do what for you? ".
As can be seen from the above, when the second terminal interacts with the first terminal, the whole application program may not be executed, but only the target function module may be run, so that the computing resource of the second terminal may be saved.
In addition, the whole application program does not need to be transmitted between the first terminal and the second terminal, but only the target function module data or the target function module identification can be transmitted, so that the flow resource of the first terminal and the second terminal can be saved, the transmission time between the first terminal and the second terminal can also be saved, and the interaction efficiency between the first terminal and the second terminal can be improved.
On the other hand, the second terminal only needs to store the target function module data, and does not need to store the whole application program, so that the storage resource of the second terminal can be saved.
The interaction method of the embodiment of the application can be applied to any interaction scene carried out between the first terminal and the second terminal, such as an instant interaction scene carried out between the first terminal and the second terminal, namely a scene that interaction between the first terminal and the second terminal is not frequently repeated.
In this embodiment of the application, optionally, the target function module determined by the first terminal may be a plurality of independently executable function modules in a detachable application.
In the embodiment of the application, optionally, after the second terminal and the first terminal complete the interaction, the target function module data may not be deleted, but the target function module data may be stored, so that when the second terminal interacts with the first terminal or another terminal again, the target function module data does not need to be obtained, and thus, the traffic resource of the terminal may be saved, and the interaction efficiency may be improved.
The first terminal will be described in detail with reference to fig. 2, 3 and 6.
The memory of the first terminal may store a detachable application. The processor of the first terminal may run a detachable application.
The input unit of the first terminal may receive a first operation instruction, the first operation instruction being used to determine the target function module.
The processor of the first terminal may determine the target function module according to the first operation instruction.
The communication unit of the first terminal may send an interaction request message to the second terminal, where the interaction request message may carry target function module data or a target function module identifier.
The processor of the first terminal may interact with the target function module running on the second terminal through the detachable application.
Alternatively, the display unit of the first terminal may display the first application interface of the detachable application. As shown in fig. 4, the first application interface may include a name of the second terminal, and a name of the independently executable function module in the detachable application.
At this time, the first operation instruction may be an operation instruction input by the user with respect to the first application interface. For example, the first operation instruction may be a selection instruction input by a user through a touch screen of the first terminal. The selection instruction can select any independently executable function module displayed in the application interface. Then, the processor of the first terminal may determine the independently executable function module selected by the user through the touch screen as the target function module.
Alternatively, the processor of the first terminal may obtain the target function module data from the data of the detachable application. At this time, the interaction request message may carry target function module data.
Optionally, the communication unit of the first terminal may receive an interactive response message sent by the second terminal, where the interactive response message may be used to indicate that the target function module has been executed by the second terminal.
Optionally, the display unit of the first terminal may further display an application interface of the detachable application, and the application interface may include an interactive response message. Optionally, the display unit of the first terminal may further display a second application interface of the detachable application, and the second application interface may include interaction information between the first terminal and the second terminal. The second application interface may be as shown in fig. 7.
Optionally, if the interaction request message carries the target function module identifier, the communication unit of the first terminal may further receive a module request message sent by the second terminal, where the module request message is used to request data of the target function module. The communication unit of the first terminal may then also transmit the target function module data to the second terminal.
Optionally, the communication unit of the first terminal may be a WiFi module or a bluetooth module or an NFC module. The WiFi module or bluetooth module or NFC may include a hardware chip and a programming interface.
If the WiFi module, the bluetooth module, or the NFC module is configured to send a message or information to the second terminal, after receiving the message or information sent by the detachable application to the second terminal, the respective programming interfaces may encapsulate the message or information into a signaling that can be transmitted by a hardware chip of each module, and then the hardware chip sends the encapsulated signaling to the second terminal.
For example, the programming interface of the WiFi module or the bluetooth module may encapsulate the message or the information into a Transmission Control Protocol/Internet Protocol (TCP/IP) signaling that can be sent by the hardware chip, and the programming interface of the NFC module may encapsulate the message or the information into an NFC signaling that can be sent by the hardware chip.
If the WiFi module, the bluetooth module, or the NFC module is configured to receive a message or information sent by the second terminal, after the hardware chip of each module receives the message or information sent by the second terminal, because the message or the signaling is encapsulated in a signaling that can be identified by the hardware chip, the programming interface of each module obtains the message or the information encapsulated in the signaling from the signaling, and transmits the obtained message or information to the detachable application program.
The programming interface of the WiFi module or the Bluetooth module can acquire messages or information from TCP/IP signaling received by the hardware chip, and the programming interface of the NFC module can acquire messages or information from NFC signaling received by the hardware chip.
It should be understood that the above-mentioned units or modules of the first terminal and the other units or modules shown in fig. 2 are respectively used for executing corresponding or similar functions in the interaction method shown in fig. 3 or fig. 6, and are not described herein again for brevity.
The second terminal will be described in detail with reference to fig. 2, 3 and 6.
An execution environment for running the independently runnable functional modules can be deployed in the processor of the second terminal. The execution environment may be an operating system deployed in a processor of the second terminal or may be a special execution environment, such as a sandbox.
The communication unit of the second terminal may receive the interactive request message transmitted by the first terminal. The interaction request message may carry target function module data or a target function module identifier.
The processor of the second terminal may instruct the execution environment to execute the target function module.
The communication unit of the second terminal can interact with the detachable application program running on the first terminal through the target function module.
Optionally, the communication unit of the second terminal may send an interactive response message to the first terminal, where the interactive response message may be used to indicate that the target function module has been executed by the second terminal.
Optionally, if the interactive request message includes the target function module identifier, the processor of the second terminal may further determine whether there is target function module data in the memory of the second terminal.
If the processor of the second terminal determines that the target function module data exists in the memory of the second terminal, the processor of the second terminal may instruct the execution environment to execute the target function module.
If the processor of the second terminal determines that the second terminal does not have the target function module data, the communication unit of the second terminal may further obtain the target function module data.
Optionally, the communication unit of the second terminal may specifically send a module request message to the first terminal, where the module request message may be used to request target function module data; the communication unit of the second terminal may specifically receive the target function module data sent by the first terminal.
Optionally, after the communication unit of the second terminal receives the target function module data, the display unit of the second terminal may further output a prompt message, where the prompt message may be used to indicate that the second terminal has received the target function module data.
Optionally, the input unit of the second terminal may receive a first operation instruction, and the first operation instruction may be used to instruct the second terminal to operate the target function module. Then, the processor of the second terminal may instruct the execution environment to execute the target function module according to the first operation instruction.
Alternatively, the target function module data may include an initialization function of the target function module. At this time, the processor of the second terminal may specifically instruct the execution environment to call the initialization function of the target function module to run the target function module.
Optionally, after the processor of the second terminal instructs the execution environment to run the target function module, the display unit of the second terminal may display an application interface of the target function module, where the application interface may include information of the first terminal.
Optionally, the application interface displayed by the display unit of the second terminal may further include interaction information between the second terminal and the first terminal.
Alternatively, after the communication unit of the second terminal acquires the target function module data from the first terminal or other devices, the memory of the second terminal may store the target function module data.
Optionally, the communication unit of the second terminal may be a WiFi module or a bluetooth module or an NFC module. The WiFi module or bluetooth module or NFC may include a hardware chip and a programming interface.
If the WiFi module, the bluetooth module, or the NFC module is configured to send a message or information to the first terminal, after receiving the message or information sent by the target function module to the first terminal, the respective programming interfaces encapsulate the message or information into a signaling that can be transmitted by a hardware chip of each module, and then the hardware chip sends the encapsulated signaling to the first terminal.
The programming interface of the WiFi module or the Bluetooth module can package the message or the information into TCP/IP signaling which can be sent by a hardware chip, and the programming interface of the NFC module can package the message or the information into NFC signaling which can be sent by the hardware chip.
If the WiFi module, the bluetooth module, or the NFC module is used to receive a message or information sent by the first terminal, after the hardware chip of each module receives the message or information sent by the first terminal, because the message or signaling is encapsulated in a signaling that can be identified by the hardware chip, the programming interface of each module obtains the message or information encapsulated in the signaling from the signaling, and transmits the obtained message or information to the target function module.
The programming interface of the WiFi module or the Bluetooth module can acquire messages or information from TCP/IP signaling received by the hardware chip, and the programming interface of the NFC module can acquire messages or information from NFC signaling received by the hardware chip.
It should be understood that the above-mentioned units or modules of the second terminal and the other units or modules shown in fig. 2 are respectively used for executing corresponding or similar functions in the interaction method shown in fig. 3 or fig. 6, and are not described herein again for brevity.
Another exemplary flowchart of the terminal of the embodiment of the present application is shown in fig. 9. It should be understood that the terminal 900 shown in fig. 9 is only an example, and the terminal of the embodiment of the present application may further include other modules or units, or include modules having functions similar to those of the respective modules in fig. 9, or may not include all the modules in fig. 9.
The processing unit 910 is configured to run a detachable application, which includes at least one independently runnable functional module.
The input unit 920 is configured to receive a first operation instruction, where the first operation instruction is used to indicate a target function module for interacting with a second terminal, and the target function module is a function module designated from the at least one independently executable function module.
The communication unit 930 is configured to send an interaction request message to the second terminal according to the first operation instruction, where the interaction request message includes target function module data or a target function module identifier.
The communication unit 930 is further configured to interact with the target function module operated by the second terminal through the detachable application.
The terminal of the embodiment of the application, as a first terminal, does not need to transmit the whole application program with a second terminal, and can only transmit the data of the target function module or the identification of the target function module, so that the interaction between the first terminal and the second terminal can be realized. Therefore, the traffic resource of the terminal can be saved, the transmission time between the terminal and the second terminal can be saved, and the interaction efficiency between the terminal and the second terminal can be improved.
Optionally, the interaction request message includes the target function module data. Correspondingly, the processing unit 910 is further configured to obtain the target function module data from the data of the detachable application, and insert the target function module data into the interaction request message.
Optionally, the interaction request message carries a target function module identifier. Correspondingly, the communication unit 930 is further configured to receive a module request message sent by the second terminal, where the module request message is used to request target function module data. The communication unit 930 is further configured to send the target function module data to the second terminal.
Optionally, the communication unit 930 is further configured to receive an interactive response message, where the interactive response message indicates that the target function module is executed by the second terminal.
Optionally, the terminal 900 may further include a display unit 940. The display unit 940 is configured to display a first application interface of the detachable application, where the first application interface includes information of the at least one independently executable function module. Correspondingly, the input unit 920 is specifically configured to receive the first operation instruction input by the user for the first application interface.
Optionally, the first application interface further includes information of the second terminal.
Optionally, the display unit 940 is further configured to display a second application interface of the detachable application, where the second application interface includes interaction information between the terminal and the second terminal.
It should be understood that the terminal in the embodiment of the present application shown in fig. 9 may correspond to the terminal shown in fig. 2, and the above and other operations and/or functions of each unit in the terminal in the embodiment of the present application may respectively implement the corresponding process executed by the first terminal in the interaction method shown in fig. 3 or fig. 6, which is not described herein again for brevity.
Another exemplary flowchart of the terminal of the embodiment of the present application is shown in fig. 10. It should be understood that the terminal 1000 shown in fig. 10 is only an example, and the terminal of the embodiment of the present application may further include other modules or units, or include modules having functions similar to those of the respective modules in fig. 10, or may not include all the modules in fig. 10.
The processing unit 1010 is used to run an execution environment for executing independently runnable functional modules.
The communication unit 1030 is configured to receive an interaction request message sent by a first terminal, where the interaction request message includes target function module data or a target function module identifier, and a target function module corresponding to the target function module data or the target function module identifier is at least one independently executable function module in a detachable application program executed by the first terminal.
The processing unit 1010 is further configured to instruct the execution environment to execute the target function module.
The communication unit 1030 is further configured to run the target function module through the execution environment to interact with a detachable application of the first terminal.
The terminal of the embodiment of the application, as a second terminal, may operate only the target function module without executing the whole detachable application program when interacting with the first terminal, so as to save the computing resources of the terminal.
In addition, the whole application program does not need to be transmitted between the first terminal and the terminal, but only the corresponding functional module needs to be transmitted, so that the flow resource of the terminal can be saved, the transmission time between the terminal and the first terminal can be saved, and the interaction efficiency between the first terminal and the terminal can be improved.
On the other hand, the terminal can only store the target function module data, and does not need to store the whole application program, so that the storage resource of the terminal can be saved.
Optionally, the interaction request message includes the target function module data, and the target function module data includes an initialization function of the target function module. Accordingly, the processing unit 1010 is specifically configured to instruct the execution environment to call the initialization function.
Optionally, the processing unit 1010 is further configured to determine that there is no target function module data on the terminal according to the target function module identifier. The communication unit 1030 is further configured to obtain the target function module data according to the target function module identifier.
Optionally, the communication unit 1030 is specifically configured to send a module request message to the first terminal, where the module request message is used to request the target function module data. The communication unit 1030 is further specifically configured to receive the target function module data sent by the first terminal.
Optionally, terminal 1000 can also include display unit 1040. The display unit 1040 is configured to output a prompt message, where the prompt message is used to indicate that the terminal has received the target function module data.
Optionally, the communication unit 1030 is further configured to send an interactive response message to the first terminal, where the interactive response message is used to indicate that the target function module is executed by the terminal.
Optionally, the terminal 1000 can further include an input unit 1020, where the input unit 1020 is configured to receive a first operation instruction, and the first operation instruction is used to instruct the terminal to execute the target function module. Correspondingly, the processing unit 1010 is specifically configured to instruct the execution environment to execute the target function module according to the first operation instruction.
Optionally, the display unit 1040 is further configured to display an application interface of the target function module after the processor instructs the execution environment to run the target function module, where the application interface includes information of the first terminal.
Optionally, the application interface further includes interaction information between the terminal and the first terminal.
It should be understood that the terminal in the embodiment of the present application shown in fig. 10 may correspond to the terminal shown in fig. 2, and the above and other operations and/or functions of each unit in the terminal in the embodiment of the present application may respectively implement the corresponding process executed by the second terminal in the interaction method shown in fig. 3 or fig. 6, which is not described herein again for brevity.
It is to be understood that the same figures represent the same meaning in different drawings of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (27)

1. An interaction method, comprising:
the method comprises the steps that a first terminal runs a detachable application program, wherein the detachable application program comprises at least one functional module capable of independently running;
the first terminal receives a first operation instruction, wherein the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by the at least one independently-operated function module;
the first terminal sends an interaction request message to the second terminal, wherein the interaction request message comprises target function module data or a target function module identifier;
the first terminal interacts with a target function module operated by the second terminal through the detachable application program,
wherein the content of the first and second substances,
when the interaction request message includes the target function module data, the interaction method further includes:
the first terminal acquires the target function module data from the data of the detachable application program;
the first terminal inserts the target function module data into the interaction request message;
when the interaction request message includes the target function module identifier, the interaction method further includes:
the first terminal receives a module request message sent by the second terminal, wherein the module request message is used for requesting target function module data;
and the first terminal sends the target function module data to the second terminal.
2. The interaction method according to claim 1, further comprising:
and the first terminal receives an interactive response message sent by the second terminal, wherein the interactive response message is used for indicating that the target function module is operated by the second terminal.
3. The interaction method according to claim 1, wherein before the first terminal receives the first operation instruction, the interaction method further comprises:
the first terminal displays a first application interface of the detachable application program, wherein the first application interface comprises information of the at least one independently operable functional module;
the first terminal receiving the first operation instruction comprises:
the first terminal receives the first operation instruction input by a user aiming at the first application interface.
4. The interaction method according to claim 3, wherein the first application interface further comprises information of the second terminal.
5. The interaction method according to any one of claims 1 to 4, further comprising:
and the first terminal displays a second application interface of the detachable application program, wherein the second application interface comprises interactive information between the first terminal and the second terminal.
6. An interaction method, comprising:
the method comprises the steps that a second terminal receives an interaction request message sent by a first terminal, an execution environment for executing functional modules capable of running independently is operated on the second terminal, the interaction request message comprises target functional module data or a target functional module identification, and a target functional module corresponding to the target functional module data or the target functional module identification is at least one functional module capable of running independently in a detachable application program operated by the first terminal;
the execution environment on the second terminal runs the target function module;
the second terminal interacts with the detachable application program operated by the first terminal through the target function module,
wherein the content of the first and second substances,
when the interworking request message includes the target function module data,
the target function module data is the target function module data acquired by the first terminal from the data of the detachable application program;
when the interaction request message includes the target function module identifier, the second terminal obtains the target function module data according to the target function module identifier, including:
the second terminal sends a module request message to the first terminal, wherein the module request message is used for requesting the target function module data;
and the second terminal receives the target function module data sent by the first terminal.
7. The interaction method according to claim 6, wherein the interaction request message includes the target function module data, the target function module data including an initialization function of the target function module;
wherein the executing environment on the second terminal runs the target function module, including:
the execution environment on the second terminal calls the initialization function.
8. The interaction method according to claim 6, wherein the interaction request message includes the target function module identification;
the interaction method further comprises the following steps:
and the second terminal determines that no target function module data exists on the second terminal according to the target function module identification.
9. The interaction method according to claim 6, further comprising:
and the second terminal outputs prompt information, wherein the prompt information is used for indicating that the second terminal has received the target function module data.
10. The interaction method according to claim 6, further comprising:
and the second terminal sends an interactive response message to the first terminal, wherein the interactive response message is used for indicating that the target function module is operated by the second terminal.
11. The interaction method according to claim 6, further comprising:
the second terminal receives a first operation instruction, wherein the first operation instruction is used for indicating the second terminal to operate the target function module;
the executing environment on the second terminal runs the target function module, and the executing environment comprises:
and the execution environment on the second terminal operates the target function module according to the first operation instruction.
12. The interaction method according to any one of claims 6 to 11, characterized in that the interaction method further comprises:
and after the execution environment on the second terminal runs the target function module, displaying an application interface of the target function module, wherein the application interface comprises the information of the first terminal.
13. The interaction method according to claim 12, wherein the application interface further comprises interaction information between the second terminal and the first terminal.
14. A terminal comprising a processor, an input unit, a communication unit and a display unit;
the processor is used for running a detachable application program, and the detachable application program comprises at least one independently-running functional module;
the input unit is used for receiving a first operation instruction, the first operation instruction is used for indicating a target function module used for interacting with a second terminal, and the target function module is a function module appointed by the at least one independently-operated function module;
the communication unit is used for sending an interaction request message to a second terminal according to the first operation instruction, wherein the interaction request message comprises target function module data or a target function module identifier;
the communication unit is further configured to interact with the target function module operated by the second terminal through the detachable application,
wherein the content of the first and second substances,
when the interworking request message includes the target function module data,
the processor is further configured to obtain the target function module data from the data of the detachable application program, and insert the target function module data into the interaction request message;
when the interaction request message includes the target function module identification,
the communication unit is further configured to receive a module request message sent by the second terminal, where the module request message is used to request target function module data;
the communication unit is further configured to send the target function module data to the second terminal.
15. The terminal of claim 14, wherein the communication unit is further configured to receive an interactive response message, and wherein the interactive response message indicates that the target function module is executed by the second terminal.
16. The terminal according to claim 14, wherein the display unit is configured to display a first application interface of the detachable application, and the first application interface includes information of the at least one independently executable function module;
the input unit is specifically configured to receive the first operation instruction input by a user for the first application interface.
17. The terminal of claim 16, wherein the first application interface further comprises information of the second terminal.
18. The terminal according to any of claims 14 to 17, wherein the display unit is further configured to display a second application interface of the detachable application, and the second application interface includes interaction information between the terminal and the second terminal.
19. A terminal comprising a processor, a communication unit, a display unit and an input unit;
the processor is used for running an execution environment for executing the independently runnable functional module;
the communication unit is used for receiving an interaction request message sent by a first terminal, wherein the interaction request message comprises target function module data or a target function module identifier, and a target function module corresponding to the target function module data or the target function module identifier is at least one independently operable function module in a detachable application program operated by the first terminal;
the processor is used for instructing the execution environment to run the target function module;
the communication unit is further configured to run the target function module through the execution environment to interact with a detachable application of the first terminal,
wherein the content of the first and second substances,
when the interworking request message includes the target function module data,
the target function module data is the target function module data acquired by the first terminal from the data of the detachable application program;
when the interaction request message includes the target function module identification,
the communication unit is specifically configured to send a module request message to the first terminal, where the module request message is used to request the target function module data, and is specifically used to receive the target function module data sent by the first terminal.
20. The terminal of claim 19, wherein the interactive request message includes the target function module data, and wherein the target function module data includes an initialization function of the target function module;
the processor is specifically configured to instruct the execution environment to invoke the initialization function.
21. The terminal of claim 19, wherein the interaction request message includes the target function module identifier;
and the processor is also used for determining that no target function module data exists on the terminal according to the target function module identification.
22. The terminal of claim 19, wherein the display unit is further configured to output a prompt indicating that the terminal has received the target function module data.
23. The terminal of claim 19, wherein the communication unit is further configured to send an interactive response message to the first terminal, and wherein the interactive response message is used to indicate that the target function module is executed by the terminal.
24. The terminal of claim 19, wherein the input unit is configured to receive a first operation instruction, and the first operation instruction is configured to instruct the terminal to execute the target function module;
the processor is specifically configured to instruct the execution environment to execute the target function module according to the first operation instruction.
25. The terminal according to any one of claims 19 to 24, wherein the display unit is further configured to display an application interface of the target function module after the processor instructs the execution environment to execute the target function module, where the application interface includes information of the first terminal.
26. The terminal of claim 25, wherein the application interface further comprises interaction information between the terminal and the first terminal.
27. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any of claims 1 to 5.
CN201680066307.9A 2016-12-27 2016-12-27 Interaction method and terminal Active CN108323236B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112290 WO2018119630A1 (en) 2016-12-27 2016-12-27 Interaction method, and terminal

Publications (2)

Publication Number Publication Date
CN108323236A CN108323236A (en) 2018-07-24
CN108323236B true CN108323236B (en) 2021-02-12

Family

ID=62706591

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201680066307.9A Active CN108323236B (en) 2016-12-27 2016-12-27 Interaction method and terminal

Country Status (2)

Country Link
CN (1) CN108323236B (en)
WO (1) WO2018119630A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515748B (en) * 2019-08-28 2022-02-01 腾讯科技(深圳)有限公司 Message processing method and related device
CN113129202B (en) * 2020-01-10 2023-05-09 华为技术有限公司 Data transmission method and device, data processing system and storage medium
CN111343618B (en) * 2020-02-13 2023-11-10 维沃移动通信有限公司 Display method and electronic equipment
CN113179445B (en) * 2021-04-15 2023-07-14 腾讯科技(深圳)有限公司 Video sharing method based on interactive object and interactive object

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246533A (en) * 2013-04-11 2013-08-14 北京小米科技有限责任公司 Method, device and equipment for adding plug-ins into address book

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179622B (en) * 2006-11-07 2010-06-16 中兴通讯股份有限公司 Multi-order processing arrangement in communication system and processing method thereof
WO2014005328A1 (en) * 2012-07-06 2014-01-09 华为终端有限公司 Method and device for allocating resource
CN103902440B (en) * 2012-12-25 2018-07-20 腾讯科技(深圳)有限公司 Character detecting method in application program and device
US9239713B1 (en) * 2013-03-06 2016-01-19 MobileForce Software, Inc. Platform independent rendering for native mobile applications
US9106757B2 (en) * 2013-03-26 2015-08-11 Lg Uplus Corp. Terminal, server, and method for actively providing information based on communication contents
CN104298417A (en) * 2013-07-19 2015-01-21 北京三星通信技术研究有限公司 Application program view management method and device by mobile terminal
WO2015105499A1 (en) * 2014-01-10 2015-07-16 Citrix Systems, Inc. Providing mobile application management functionalities
CN104133669B (en) * 2014-06-11 2019-01-29 腾讯科技(深圳)有限公司 A kind of control method and terminal device of desktop application
CN105183547B (en) * 2015-08-13 2019-09-20 青岛海信移动通信技术股份有限公司 A kind of method for scheduling task and device of user interface
CN105487886A (en) * 2015-11-24 2016-04-13 小米科技有限责任公司 Method and device for loading plugin
CN105528225A (en) * 2015-11-30 2016-04-27 用友优普信息技术有限公司 Application loading method and loading apparatus

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246533A (en) * 2013-04-11 2013-08-14 北京小米科技有限责任公司 Method, device and equipment for adding plug-ins into address book

Also Published As

Publication number Publication date
CN108323236A (en) 2018-07-24
WO2018119630A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN107943489B (en) Data sharing method and mobile terminal
CN107102904B (en) Interaction method and device based on hybrid application program
CN108323236B (en) Interaction method and terminal
CN108834132B (en) Data transmission method and equipment and related medium product
CN110795949A (en) Card swiping method and device, electronic equipment and medium
CN105653220B (en) Screen data display method and device in remote control
CN107193435B (en) Processing method and device for task window and mobile terminal
CN108762829B (en) Method, client and terminal for beautifying image
CN108009031B (en) Application program control method and mobile terminal
CN110705497A (en) Image frame processing method and device, terminal equipment and computer readable storage medium
CN107357651B (en) Application acceleration method and device and terminal
CN110098845B (en) Message processing method, wearable device, mobile terminal and readable storage medium
CN106020945B (en) Shortcut item adding method and device
CN112691363A (en) Cross-terminal switching method and related device for cloud games
CN109189538A (en) A kind of method and apparatus sending orientation red packet
CN106934003B (en) File processing method and mobile terminal
CN109947617B (en) Method, terminal and readable storage medium for monitoring display content of application interface
CN111210496B (en) Picture decoding method, device and equipment
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN111026454A (en) Function starting method and terminal equipment
CN110708673A (en) Position determination method and portable multifunctional equipment
CN106709856B (en) Graph rendering method and related equipment
CN106921792B (en) Data acquisition method and device and mobile terminal
WO2018103440A1 (en) Network positioning method and terminal device
CN115113950A (en) Method and device for outputting prompt information of application product

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