WO2018119630A1 - 一种交互方法和终端 - Google Patents

一种交互方法和终端 Download PDF

Info

Publication number
WO2018119630A1
WO2018119630A1 PCT/CN2016/112290 CN2016112290W WO2018119630A1 WO 2018119630 A1 WO2018119630 A1 WO 2018119630A1 CN 2016112290 W CN2016112290 W CN 2016112290W WO 2018119630 A1 WO2018119630 A1 WO 2018119630A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
function module
target function
interaction
request message
Prior art date
Application number
PCT/CN2016/112290
Other languages
English (en)
French (fr)
Inventor
李自军
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201680066307.9A priority Critical patent/CN108323236B/zh
Priority to PCT/CN2016/112290 priority patent/WO2018119630A1/zh
Publication of WO2018119630A1 publication Critical patent/WO2018119630A1/zh

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

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to an interaction method and a terminal.
  • intelligent terminals interact in many occasions, such as information interaction between a chat application on one terminal and a chat application on another terminal.
  • one of the terminals may initiate an interaction request message to other terminals (which may be referred to as an interaction acceptor), and then the two terminals run the same or associated application to Implement the interaction between the interaction initiator and the interaction acceptor.
  • the interaction initiator and the interaction acceptor can complete the interaction as long as they implement some of the functions in the same or associated application. At this point, both the interaction initiator and the interaction acceptor run the entire application that includes this part of the functionality.
  • both the interaction initiator and the interaction receiver must run a complete application including music playback, language translation, photo sharing, and the like. .
  • the traditional interaction between the terminals may result in wasted resources of the terminals participating in the interaction and reduce the interaction efficiency between the terminals.
  • the embodiment of the present invention provides an interaction method and a terminal, which can save resources of the terminal and improve the interaction efficiency of the terminal.
  • an embodiment of the present application provides an interaction method.
  • the interaction method includes: the first terminal runs a detachable application, the detachable application includes at least one independently operable function module; the first terminal receives a first operation instruction, and the first operation instruction uses And indicating a target function module for interacting with the second terminal, the target function module is a function module specified from the at least one independently operable function module; the first terminal sends an interaction request to the second terminal And the interaction request message includes the target function module data or the target function module identifier; the first terminal interacts with the target function module run by the second terminal by using the detachable application.
  • the first terminal and the second terminal may not transmit the entire application program, and only the target function module data or the target function module identifier may be transmitted, thereby implementing the first terminal and the second terminal. Interaction. Therefore, the traffic resources of the first terminal can be saved, and the transmission time between the first terminal and the second terminal can be saved, so that the interaction efficiency between the first terminal and the second terminal can be improved.
  • the interaction request message includes the target function module data
  • the interaction method further includes: the first terminal acquiring the target function from data of the detachable application Module data; the first terminal inserts the target function module data into the interaction request message.
  • the interaction request message carries the target function module identifier
  • the interaction method further includes: the first terminal receiving a module request message sent by the second terminal, where the module requests The message is used to request the target function module data; the first terminal sends the target function module data to the second terminal.
  • the interaction method further includes: the first terminal receiving an interaction response message sent by the second terminal, where the interaction response message is used to indicate that the second terminal has been configured to run the Target function module.
  • the interaction method further includes: before the first terminal receives the first operation instruction, the interaction method further includes: the first terminal displaying the detachable application An application interface, the first application interface includes information of the at least one independently operable function module; and the first terminal receiving the first operation instruction includes: the first terminal receiving a user input for the first application interface The first operational instruction.
  • the first application interface further includes information about the second terminal.
  • the interaction method further includes: the first terminal displays a second application interface of the detachable application, and the second application interface includes the first terminal and the Interaction information between the second terminals.
  • an embodiment of the present application provides an interaction method.
  • the interaction method includes: the second terminal receives an interaction request message sent by the first terminal, and the second terminal runs an execution environment for executing the independently operable function module, where the interaction request message includes target function module data or target a function module identifier, where the target function module data or the target function module corresponding to the target function module identifier is at least one of a detachable application running by the first terminal a running function module; the execution environment on the second terminal runs the target function module; the second terminal performs, by the target function module, the detachable application running by the first terminal Interaction.
  • the entire detachable application is not executed, but only the target function module is run, thereby saving computing resources of the second terminal.
  • the entire application program may not be transmitted between the first terminal and the second terminal, and only the target function module data or the target function module identifier may be transmitted. Therefore, the traffic resources of the second terminal can be saved, and the transmission time between the second terminal and the first terminal is saved, thereby improving the interaction efficiency between the first terminal and the second terminal.
  • only the target function module can be stored on the second terminal without storing the entire application, so that the storage resources of the second terminal can be saved.
  • the target function module data includes an initialization function of the target function module, where the execution environment on the second terminal runs the target function module, including: The execution environment on the second terminal invokes the initialization function.
  • the interaction request message includes the target function module identifier
  • the interaction method further includes: determining, by the second terminal, the second terminal according to the target function module identifier No target function module data; the second terminal acquires the target function module data according to the target function module identifier.
  • the acquiring, by the second terminal, the target function module data includes: sending, by the second terminal, a module request message to the first terminal, where the module request message is used to request the Target function module data; the second terminal receives the target function module data sent by the first terminal.
  • the interaction method further includes: the second terminal outputting prompt information, where the prompt information is used to indicate that the second terminal has received the target function module data.
  • the interaction method further includes: the second terminal sending an interaction response message to the first terminal, where the interaction response message is used to indicate that the second terminal has run the target functional module.
  • the interaction method further includes: the second terminal receives a first operation instruction, where the first operation instruction is used to instruct the second terminal to run the target function module;
  • the execution environment on the second terminal runs the target function module, including: the first The execution environment on the second terminal runs the target function module according to the first operation instruction.
  • the interaction method further includes: after the execution environment of the second terminal runs the target function module, displaying an application interface of the target function module, where the application interface includes Information of the first terminal.
  • the application interface further includes interaction information between the second terminal and the first terminal.
  • the second terminal stores the target function module data.
  • 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 configured to run a detachable application, the detachable application includes at least one independently operable function module, and the input unit is configured to receive a first operation instruction, where the first operation instruction is used to indicate And a target function module that interacts with the second terminal, the target function module is a function module specified from the at least one independently operable function module;
  • the communication unit is configured to send to the second terminal according to the first operation instruction Sending an interaction request message, where the interaction request message includes target function module data or target function module identifier corresponding to the target function module; the communication unit is further configured to run with the second terminal by using the detachable application
  • the target function modules interact.
  • the terminal in the embodiment of the present application does not need to transmit the entire application program with the second terminal, and can only transmit the target function module data or the target function module identifier, so that the first terminal and the second terminal can be realized. Interaction. Therefore, the traffic resource of the terminal can be saved, and the transmission time between the terminal and the second terminal can be saved, thereby improving the interaction efficiency between the terminal and the second terminal.
  • the communication unit is further configured to receive an interaction response message, where the interaction response message indicates that the second terminal has run the target function module.
  • 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 a target function module. Data; the communication unit is further configured to send the target function module data to the second terminal.
  • 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 operable function module;
  • the input unit is specifically configured to receive the first operation instruction input by the user for the first application interface.
  • the first application interface further includes information about the second terminal.
  • the display unit is further configured to display a second application interface of the detachable application, where the second application interface includes between the first terminal and the second terminal Interaction information.
  • the processor is further configured to: acquire the target function module data from data of the detachable application, and insert the target function module data into the interaction request message;
  • the interaction request message includes the target function module data.
  • 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 configured to execute an execution environment for executing the independently operable function module;
  • the communication unit is configured to receive an interaction request message sent by the first terminal, where the interaction request message includes target function module data or a target function module identifier,
  • the target function module data or the target function module corresponding to the target function module identifier is at least one of the detachable applications running by the first terminal, and the processor is configured to indicate the execution.
  • the environment runs the target function module;
  • the communication unit is further configured to run the target function module by using the execution environment to interact with the detachable application of the first terminal.
  • the terminal may not need to execute the entire detachable application, but may only run the target function module, thereby saving computing resources of the terminal.
  • the first terminal and the terminal may not transmit the entire application, but may only transmit the corresponding function module, thereby saving the traffic resources of the terminal and saving the transmission between the terminal and the first terminal. Time, thereby improving the efficiency of interaction between the first terminal and the terminal.
  • the target function module data can be stored on the terminal without storing the entire application, and the storage resources of the terminal can be saved.
  • the communication unit is further configured to send an interaction response message to the first terminal, where the interaction response message is used to indicate that the second terminal has run the target function module.
  • the interaction request message includes the target function module identifier
  • the processor is further configured to determine, according to the target function module identifier, that there is no target function module data on the second terminal.
  • the communication unit is further configured to acquire the target function module data according to the identifier of the target function module.
  • 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 used to Receiving the target function module data sent by the first terminal.
  • the display unit is further configured to output prompt information, where the prompt information is used to indicate that the second terminal has received the target function module data.
  • the input unit is configured to receive a first operation instruction, where the first operation instruction is used to instruct the second terminal to run the target function module; The first operation instruction instructs the execution environment to run the target function module.
  • the target function module data includes an initialization function of the target function module, where the processor is specifically configured to instruct the execution environment to invoke the initialization function.
  • 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 The information of the first terminal is described.
  • the application interface further includes interaction information between the second terminal and the first terminal.
  • the terminal further includes a memory, configured to store the target function module data.
  • the embodiment of the present application provides a computer readable medium, where the computer readable medium stores program code for execution by a terminal, where the program code includes any one of the first aspect or the first aspect.
  • the embodiment of the present application provides a computer readable medium storing program code for execution by a terminal, where the program code includes any of the second aspect or the second aspect.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processing unit, an input unit, a communication unit, and a display unit.
  • the processing unit is configured to run a detachable application, and the detachable application includes at least one independently operable function module.
  • the input unit is configured to receive a first operation instruction, where the first operation instruction is used to indicate a target function module for interacting with the second terminal, where the target function module is from the at least one independently operable function module The specified function module.
  • the communication unit 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 is further configured to interact with the target function module run by the second terminal by using the detachable application.
  • the terminal in the embodiment of the present application does not need to transmit the entire application program with the second terminal, and can only transmit the target function module data or the target function module identifier, so that the first terminal and the second terminal can be realized. Interaction. Therefore, the traffic resource of the terminal can be saved, and the transmission time between the terminal and the second terminal can be saved, thereby improving the interaction efficiency between the terminal and the second terminal.
  • the interaction request message includes the target function module data.
  • the processing unit is further configured to acquire the target function module data from the data of the detachable application, and insert the target function module data into the interaction request message.
  • 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.
  • the communication unit is further configured to receive an interaction response message, where the interaction response message indicates that the second terminal has run the target function module.
  • 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 operable function module.
  • the input unit is specifically configured to receive the first operation instruction input by the user for the first application interface.
  • the first application interface further includes information about the second terminal.
  • the display unit is further configured to display a second application interface of the detachable application, where the second application interface includes an interaction between the terminal and the second terminal information.
  • an embodiment of the present application provides a terminal.
  • the terminal includes a processing unit, an input unit, a communication unit, and a display unit.
  • the processing unit is configured to execute an execution environment for executing a stand-alone functional module.
  • the communication unit is configured to receive an interaction request message sent by the first terminal, where the interaction request message includes target function module data or a target function module identifier, and the target function module data or the target function module identifier corresponding to the target function module At least one of the detachable applications running for the first terminal can independently operate the functional modules.
  • the processing unit also Used to instruct the execution environment to run the target function module.
  • the communication unit is further configured to execute the target function module by using the execution environment to interact with the detachable application of the first terminal.
  • the terminal may not execute the entire detachable application, but may only run the target function module, thereby saving computing resources of the terminal.
  • the first terminal and the terminal may not transmit the entire application, but may only transmit the corresponding function module, thereby saving the traffic resources of the terminal and saving the transmission between the terminal and the first terminal. Time, thereby improving the efficiency of interaction between the first terminal and the terminal.
  • the target function module data can be stored on the terminal without storing the entire application, and the storage resources of the terminal can be saved.
  • the interaction request message includes the target function module data
  • the target function module data includes an initialization function of the target function module.
  • the processing unit is specifically configured to instruct the execution environment to invoke the initialization function.
  • the processing unit is further configured to determine, according to the target function module identifier, that there is no target function module data on the terminal.
  • the communication unit is further configured to acquire the target function module data according to the target function module identifier.
  • 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 configured to receive the target function module data sent by the first terminal.
  • the display unit is configured to output prompt information, where the prompt information is used to indicate that the terminal has received the target function module data.
  • the communication unit is further configured to send an interaction response message to the first terminal, where the interaction response message is used to indicate that the terminal has run the target function module.
  • the input unit is configured to receive a first operation instruction, where the first operation instruction is used to instruct the terminal to run the target function module.
  • the processing unit is specifically configured to instruct the execution environment to run the target function module according to the first operation instruction.
  • 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 the first terminal information.
  • the application interface further includes interaction information between the terminal and the first terminal.
  • the interaction method and the terminal in the embodiment of the present application when the second terminal interacts with the first terminal, may not execute the entire detachable application, but may only run the target function module, thereby saving the first The computing resources of the second terminal.
  • the first terminal and the second terminal may not transmit the entire application, and may only transmit the target function module data or the target function module identifier, thereby saving the traffic resources of the first terminal and the second terminal, and saving the second.
  • the transmission time between the terminal and the first terminal further improves the interaction efficiency between the first terminal and the second terminal.
  • only the target function module data can be stored on the second terminal without storing the entire application, so that the storage resources of the second terminal can be saved.
  • FIG. 1 is a schematic system architecture diagram of an interaction method to which an embodiment 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 flowchart of an interaction method of an embodiment of the present application.
  • FIG. 4 is an exemplary interface diagram of a detachable application on a terminal in an embodiment of the present application.
  • FIG. 5 is an exemplary interface diagram of a target function module on a terminal in 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 of a terminal performing information interaction according to an embodiment of the present application.
  • FIG. 8 is an exemplary interface diagram of a terminal performing 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.
  • first, second, third, etc. may be used to describe various messages, requests, and terminals in the embodiments of the present invention, these messages, requests, and terminals should not be limited to these terms. These terms are only used to distinguish messages, requests, and terminals from one another.
  • a first terminal may also be referred to as a second terminal without departing from the scope of the embodiments of the present invention.
  • the second terminal may also be referred to as a first terminal.
  • two terminals may be included.
  • the terminal that initiates the interaction request may be referred to as a first terminal
  • the terminal that accepts the interaction request may be referred to as a second terminal.
  • the first terminal and the second terminal can communicate with each other.
  • FIG. 1 may be hardware, functionally divided software, or a combination of the two.
  • an operating system is deployed and run on the first terminal, and the operating system is configured with a detachable application that can run on the operating system.
  • the functional modules in the detachable application can be downloaded, deployed, and run independently on the terminal.
  • the functional modules in the detachable application that can be independently downloaded, deployed, and run on the terminal are referred to as independently operable functional modules.
  • an execution environment in which the independently operable functional modules in the detachable application can be executed is deployed on the second terminal.
  • the execution environment may be an integral part of an operating system deployed on the second terminal, or may be a special execution environment deployed on the operating system of the second terminal, such as a sandbox.
  • the terminal in the embodiment of the present application may be a mobile phone, a wristband, a tablet computer, a notebook computer, an Ultra-Mobile Personal Computer (UMPC), a Personal Digital Assistant (PDA) device, and has a wireless communication function.
  • UMPC Ultra-Mobile Personal Computer
  • PDA Personal Digital Assistant
  • FIG. 2 An exemplary structural diagram of a terminal in the 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 constitute a limitation on the terminal in the embodiment of the present application. A terminal of an embodiment of the present application may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • the terminal shown in FIG. 2 may be the first terminal when the terminal is the interactive initiator, and may be the second terminal when the terminal shown in FIG. 2 is the interaction acceptor.
  • the terminal in the embodiment of the present application may include: a radio frequency (RF) circuit 110, a power source 120, a processor 130, a memory 140, an input unit 150, a display unit 160, a sensor 170, an audio circuit 180, And components such as the short-range communication module 190.
  • RF radio frequency
  • components or units for communicating with other devices may be collectively referred to as a communication unit.
  • the RF circuit 110 can be used to receive and transmit signals during the transmission and reception of information or during a call. Specifically, after receiving the downlink information of the base station, the processing is performed by the processor 130. In addition, the uplink data is sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • LNA Low Noise Amplifier
  • RF circuitry 110 can also communicate with the network and other devices via wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • the memory 140 can be used to store software programs and modules, and the processor 130 executes various functional applications and data processing of the terminals by running software programs and modules stored in the memory 140.
  • the memory 140 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of the terminal (such as audio data, phone book, etc.).
  • 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 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the terminal.
  • 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, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 151 or near the touch panel 151. Operation) and drive the corresponding connecting device according to a preset program.
  • the touch panel 151 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user and detects the touch
  • the signal brought by the operation transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, sends it to the processor 130, and can receive the signal from the processor 130. Command and execute it.
  • the touch panel 151 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 150 may also include other input devices 152.
  • other input devices 152 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • the display unit 160 can be used to display information input by the user or information provided to the user as well as various menus of the terminal.
  • the display unit 160 may include a display panel 161.
  • the display panel 161 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 151 can cover the display panel 161. When the touch panel 151 detects a touch operation on or near the touch panel 151, the touch panel 151 transmits to the processor 130 to determine the type of the touch event, and then the processor 130 according to the touch event. The type provides a corresponding visual output on display panel 161.
  • the touch panel 151 and the display panel 161 are two independent components to implement the input and input functions of the terminal, in some embodiments, the touch panel 151 may be integrated with the display panel 161. Realize the input and output functions of the terminal.
  • the Light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 161 according to the brightness of the ambient light, and the proximity sensor may close the display panel 161 and/or when the terminal moves to the ear. Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in all directions (usually three axes). When it is stationary, it can detect the magnitude and direction of gravity. It can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching, related Game, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping).
  • the terminal shown in FIG. 2 can also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein again.
  • sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein again.
  • the audio circuit 180, the speaker 181, and the microphone 182 can provide an audio interface between the user and the terminal.
  • the audio circuit 180 can transmit the converted electrical data of the received audio data to the speaker 181 for conversion to the sound signal output by the speaker 181; on the other hand, the microphone 182 converts the collected sound signal into an electrical signal by the audio circuit 180. After receiving, it is converted into audio data, and then the audio data is output to the RF circuit 110 for transmission to, for example, another terminal, or the audio data is output to the memory.
  • the reservoir 140 is for further processing.
  • the short-range communication module 190 is configured to implement short-range communication by short-range wireless transmission technology.
  • the short-range wireless transmission technologies mentioned here include Bluetooth, Wireless Local Area Networks (WLAN), infrared data transmission, ZigBee, ultra-wideband, Near Field Communication (NFC), and wireless fidelity ( Wireless Fidelity, WiFi) and other technologies.
  • the processor 130 is the control center of the terminal, and connects various parts of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 140, and calling data stored in the memory 140, executing The various functions of the terminal and the processing of data, thereby implementing a variety of services based on the terminal.
  • the processor 130 may include one or more processing units; the processor 130 may integrate an application processor and a modem processor, where the application processor processes an operating system, a user interface, an application, etc., and performs modulation and demodulation.
  • the processor handles wireless communication. It can be understood that the above modem processor may not be integrated into the processor 130.
  • a power source 120 (such as a battery) can be logically coupled to the processor 130 through a power management system to manage functions such as charging, discharging, and power consumption through a power management system.
  • the terminal may also include a module such as a camera, and details are not described herein again.
  • FIG. 3 a schematic flowchart of the interaction method performed by the first terminal and the second terminal is shown in FIG. 3 .
  • the user wants the detachable application on the first terminal to interact with the second terminal, the user can click on the icon of the detachable application displayed on the first terminal.
  • the application interface of the detachable application can be displayed according to the user's selection.
  • a schematic diagram of an application interface using an instant messaging application as an exemplary detachable application is shown in FIG.
  • the application interface of the instant messaging application displayed by the first terminal may include a name of the second terminal.
  • the application interface may further include a name of the independently operable function module included in the detachable application: the first function module, the second function module, the third function module, the fourth function module, and the like.
  • An example of the first function module, the second function module, the third function module, the fourth function module, and the like in the application interface shown in FIG. 4 may be a cross-language translation, a two-player game, a photo sharing, and a music playlist sharing. .
  • the first terminal may first determine an independently operable function module for interacting with the second terminal in the detachable application.
  • the determined independently operable function module can be referred to as a target function module.
  • the first terminal may receive the function module information input by the user, and determine the independently operable function module corresponding to the function module information as the 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 functional module.
  • the first terminal 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 the target function module data. .
  • the target function module data may include code or instructions included in the target function module. If the code or instruction included in the target function module is run in an execution environment of the terminal for executing the independently operable function module, the function of the target function module can be implemented.
  • the target function module data carried in the interaction request message may be obtained by the first terminal from data of the detachable application.
  • the data of the detachable application can include code or instructions of the detachable application.
  • the target function module data may include an initialization function.
  • the functions of the initialization function include: display interface control, initialization of internal variables of the function module, and the like.
  • the initialization function is called by the execution environment in which the function module can be independently executed. Once the initialization function is executed, the target function module can take over the interaction process with the user to perform the business function.
  • the second terminal may output prompt information, where the prompt information may be used to indicate that the second terminal has received the target function module data.
  • the second terminal may further receive an operation instruction input by the user.
  • the operation instruction may be used to indicate that the second terminal is running or not operating the target function module.
  • 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 may also receive an operation instruction input by the user on the application interface.
  • the second terminal may run the target function module.
  • the execution environment for executing the independently operable function module on the second terminal may run the target function module data according to an operation instruction input by the user.
  • the second terminal may issue a load command to an execution environment for executing the independently operable function module, where the load command may carry an initialization function call parameter of the target function module, for example, expressed by a URI (Uniform Resource Identifier) Entry function and parameters.
  • URI Uniform Resource Identifier
  • the execution environment for executing the independently executable function module on the second terminal may include an entry function execution module, a platform capability package, a code execution engine, and the like.
  • the entry function execution module opens an interface to the detachable application or other application, so that the detachable application or other application can load the independently operable function module; the platform capability package opens the interface to the independently operable function module.
  • some basic capabilities can be called, such as user information, payment ability, etc.; the code execution engine is used to parse and execute the code of the function module that can be run independently.
  • the browser kernel is the analysis of the web application code. And the execution engine.
  • the specific implementation manner of the execution environment execution target function module on the second terminal may include: executing a load command of the execution environment to the second terminal, and then calling an initialization function of the target function module, so that the second terminal can display the target
  • the control of the function module further enables human-computer interaction and business functions to be handled by the target function module.
  • an interaction response message may be sent to the first terminal.
  • the interactive response message can be used to indicate that the second terminal has run the target function module.
  • the first terminal may interact with the target function module running in the second terminal by using the detachable application. Specifically, the first terminal may perform information interaction with the target function module running in the second terminal through the detachable application.
  • the interaction request message sent by the first terminal to the second terminal may carry the target function module identifier.
  • the second terminal may determine whether the target function module data corresponding to the target function module identifier exists on the second terminal.
  • the second terminal determines that the target function module corresponding to the target function module identifier exists on the second terminal Block, you can execute S620, which instructs the execution environment to run the target function module.
  • the second terminal may receive an operation instruction input by the user, and then run the target function module according to the operation instruction.
  • the S630 can be executed: the second terminal sends an interaction response message to the first terminal, where the interaction response message is used to indicate that the second terminal has run the target function module.
  • the second terminal may directly run the target function module without receiving an operation instruction of the user, and execute S630.
  • the target function module can interact with the detachable application running in the first terminal.
  • the first terminal receives the interaction response message sent by the second terminal, and then may perform S640: the first terminal interacts with the target function module running in the second terminal by using the detachable application.
  • the target function module data may be acquired.
  • a specific implementation manner of the second terminal acquiring the target function module data is: the second terminal sends a module request message to the first terminal, where the module request message is used to request the target function module data.
  • the function module request message may carry the target function module identifier.
  • the first terminal may send the target function module data to the second terminal according to the module request message.
  • Another specific implementation manner of the second terminal acquiring the target function module data is: the second terminal sends a module request message to the application electronic market. If there is target function module data on the application electronic market, the second terminal can receive the target function module data sent by the application electronic market.
  • the first terminal may send a short message to the second terminal through the RF circuit, where the short message may carry the hyperlink information of the target function module.
  • the second terminal may download the target function module data from the application marketplace according to the hyperlink information.
  • the first terminal interacts with the target function module running in the second terminal by using the detachable application, and specifically, the first terminal may send the information to the target function module run by the second terminal by using the detachable application program, And/or receiving information sent by the target function module run by the second terminal; similarly, the target function module running by the second terminal receives the information sent by the first terminal through the detachable application, and/or may be available to the first terminal.
  • the split application sends the message.
  • the following is a cross-language translation function module as an example function module, combined with FIG. 7 and FIG.
  • the application interface when the information is exchanged between the first terminal and the second terminal is introduced in detail.
  • the first terminal can receive "Hello! input by the user for the application interface, and then send "Hello! to the second terminal.
  • the "cross-language translation” function module in the second terminal translates "Hello! into English "Hi!” and in the application interface of the second terminal. Display, as shown in Figure 8.
  • the second terminal receives "What can I do for you?" input by the user, and transmits "What can I do for you?" to the first terminal.
  • the "cross-language translation” function module in the detachable application on the first terminal translates “what can I do for you?" Into "What can I do for you?" and display "What can I do for you?" in the application interface.
  • the entire application program may not be executed, but only the target function module may be run, so that the computing resources of the second terminal may be saved.
  • the first terminal and the second terminal may not transmit the entire application, but may only transmit the target function module data or the target function module identifier, thereby saving traffic resources of the first terminal and the second terminal, and saving The transmission time between the first terminal and the second terminal, so that the interaction efficiency between the first terminal and the second terminal can be improved.
  • the target function module data needs to be stored on the second terminal, instead of storing the entire application, the storage resource of the second terminal can be saved.
  • the interaction method of the embodiment of the present application may be applied to any interaction scenario between the first terminal and the second terminal, such as an instant interaction scenario between the first terminal and the second terminal, that is, the first terminal and the second terminal.
  • the scene of interaction is not repeated frequently between terminals.
  • the target function module determined by the first terminal may be a plurality of independently operable function modules in the detachable application.
  • the target function module data may not be deleted, but the target function module data is saved, so that the second terminal is again associated with the first terminal or other
  • the target function module data may not be acquired, thereby saving the traffic resources of the terminal, thereby improving the interaction efficiency.
  • the first terminal will be described in detail below with reference to FIGS. 2, 3 and 6.
  • the memory of the first terminal can store a detachable application.
  • the processor of the first terminal can run a detachable application.
  • the input unit of the first terminal may receive a first operation instruction, and the first operation instruction is 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 the target function module data or the target function module identifier.
  • the processor of the first terminal can interact with the target function module running on the second terminal through the detachable application.
  • the display unit of the first terminal may display the first application interface of the detachable application.
  • the name of the second terminal and the name of the independently operable function module in the detachable application may be included in the first application interface.
  • the first operation instruction may be an operation instruction input by the user for the first application interface.
  • the first operational command may be a selection instruction input by the user through the touch screen of the first terminal. This selection command can select any of the independently operable function modules displayed in the application interface.
  • the processor of the first terminal may determine the independently operable function module selected by the user through the touch screen as the target function module.
  • the processor of the first terminal may acquire the target function module data from the data of the detachable application.
  • the interaction request message may carry the target function module data.
  • the communication unit of the first terminal may receive an interaction response message sent by the second terminal, where the interaction response message may be used to indicate that the second terminal has run the target function module.
  • 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.
  • 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 can be as shown in FIG.
  • 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 the target function module data.
  • the communication unit of the first terminal can then also send the target function module data to the second terminal.
  • 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 can include a hardware chip and a programming interface.
  • the respective programming interface receives the message or letter sent by the detachable application to the second terminal.
  • the message or information may be encapsulated into signaling that can be transmitted by the hardware chip of each module, and then the hardware chip sends the signaling obtained by the encapsulation to the second terminal.
  • the programming interface of the WiFi module or the Bluetooth module can encapsulate the message or information into a Transmission Control Protocol/Internet Protocol (TCP/IP) signaling that the hardware chip can transmit, and the programming interface of the NFC module can The message or information is encapsulated into NFC signaling that the hardware chip can send.
  • TCP/IP Transmission Control Protocol/Internet Protocol
  • the hardware chip of each module receives the message or information sent by the second terminal, because the message or signaling package can be recognized on 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 detachable application.
  • the programming interface of the WiFi module or the Bluetooth module can obtain a message or information from the TCP/IP signaling received by the hardware chip, and the programming interface of the NFC module can obtain the message or information from the NFC signaling received by the hardware chip.
  • the second terminal will be described in detail below with reference to FIGS. 2, 3 and 6.
  • An execution environment for running a stand-alone functional module 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 an interaction request message sent by the first terminal.
  • the interaction request message may carry the target function module data or the target function module identifier.
  • the processor of the second terminal may instruct the execution environment to run the target function module.
  • the communication unit of the second terminal can interact with the detachable application running on the first terminal through the target function module.
  • the communication unit of the second terminal may send an interaction response message to the first terminal, where the interaction response message may be used to indicate that the second terminal has run the target function module.
  • the processor of the second terminal may further determine whether the target function module data is in the memory of the second terminal.
  • the processor of the second terminal may instruct the execution environment to operate the target function module.
  • the communication unit of the second terminal may also acquire the target function module data.
  • the communication unit of the second terminal may send a module request message to the first terminal, where the module request message may be used to request the target function module data, and the communication unit of the second terminal may further receive the target function sent by the first terminal.
  • Module data may be used to request the target function module data.
  • the display unit of the second terminal may further output prompt information, where the prompt information may be used to indicate that the second terminal has received the target function module data.
  • the input unit of the second terminal may receive the first operation instruction, where the first operation instruction may be used to instruct the second terminal to run the target function module. Then, the processor of the second terminal may instruct the execution environment to operate the target function module according to the first operation instruction.
  • the target function module data may include an initialization function of the target function module.
  • the processor of the second terminal may specifically instruct the execution environment to call an initialization function of the target function module 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.
  • 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.
  • the memory of the second terminal may store the target function module data.
  • 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 can include a hardware chip and a programming interface.
  • the respective programming interface receives the message or information sent by the target function module to the first terminal, and then encapsulates the message or information into
  • the hardware chip of each module is capable of transmitting signaling, and then the hardware chip sends the signaling obtained by the encapsulation to the first terminal.
  • the programming interface of the WiFi module or the Bluetooth module can encapsulate the message or information into TCP/IP signaling that the hardware chip can send.
  • the programming interface of the NFC module can encapsulate the message or information into NFC signaling that the hardware chip can send.
  • the hardware chip of each module receives the message or information sent by the first terminal, because the message or signaling package can be recognized on 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 obtain a message or information from the TCP/IP signaling received by the hardware chip, and the programming interface of the NFC module can obtain the message or information from the NFC signaling received by the hardware chip.
  • FIG. 9 Another exemplary flowchart of the terminal of the embodiment of the present application is shown in FIG. It should be understood that the terminal 900 shown in FIG. 9 is only an example, and the terminal in the embodiment of the present application may further include other modules or units, or include modules similar in function to the respective modules in FIG. 9, or not included in FIG. All modules.
  • the processing unit 910 is configured to run a detachable application, and the detachable application includes at least one independently operable function 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 the second terminal, where the target function module is specified from the at least one independently operable function module Functional 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 run by the second terminal by using the detachable application.
  • the terminal in the embodiment of the present application does not need to transmit the entire application program with the second terminal, and can only transmit the target function module data or the target function module identifier, so that the first terminal and the second terminal can be realized. Interaction. Therefore, the traffic resource of the terminal can be saved, and the transmission time between the terminal and the second terminal can be saved, thereby improving the interaction efficiency between the terminal and the second terminal.
  • the interaction request message includes the target function module data.
  • the processing unit 910 is further configured to acquire the target function module from data of the detachable application. Data, inserting the target function module data into the interaction request message.
  • the interaction request message carries a target function module identifier.
  • 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.
  • the communication unit 930 is further configured to receive an interaction response message, where the interaction response message indicates that the second terminal has run the target function module.
  • 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, and the first application interface includes information of the at least one independently operable function module.
  • the input unit 920 is specifically configured to receive the first operation instruction input by the user for the first application interface.
  • the first application interface further includes information about the second terminal.
  • 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.
  • terminal in the embodiment of the present application shown in FIG. 9 may correspond to the terminal shown in FIG. 2, and the foregoing and other operations and/or functions of each unit in the terminal in the embodiment of the present application may implement FIG. 3 or FIG.
  • the corresponding process performed by the first terminal in the interaction method shown in FIG. 6 is not repeated here for brevity.
  • FIG. 10 Another exemplary flowchart of the terminal of the embodiment of the present application is shown in FIG. It should be understood that the terminal 1000 shown in FIG. 10 is only an example, and the terminal in the embodiment of the present application may further include other modules or units, or include modules similar in function to the respective modules in FIG. 10, or are not included in FIG. All modules.
  • the processing unit 1010 is configured to execute an execution environment for executing the independently operable function modules.
  • the communication unit 1030 is configured to receive an interaction request message sent by the first terminal, where the interaction request message includes target function module data or a target function module identifier, where the target function module data or the target function module identifier corresponding to the target function module is At least one of the detachable applications running by the first terminal can independently run the function module.
  • the processing unit 1010 is further configured to instruct the execution environment to run the target function module.
  • the communication unit 1030 is further configured to perform, by using the execution environment, the target function module to interact with the detachable application of the first terminal.
  • the terminal in the embodiment of the present application may interact with the first terminal. Instead of running the entire detachable application, you can run only the target function module, which saves the computing resources of the terminal.
  • the first terminal and the terminal may not transmit the entire application, but may only transmit the corresponding function module, thereby saving the traffic resources of the terminal and saving the transmission between the terminal and the first terminal. Time, thereby improving the efficiency of interaction between the first terminal and the terminal.
  • the target function module data can be stored on the terminal without storing the entire application, and the storage resources of the terminal can be saved.
  • the interaction request message includes the target function module data
  • the target function module data includes an initialization function of the target function module.
  • the processing unit 1010 is specifically configured to instruct the execution environment to invoke the initialization function.
  • the processing unit 1010 is further configured to determine, according to the target function module identifier, that there is no target function module data on the terminal.
  • the communication unit 1030 is further configured to acquire the target function module data according to the target function module identifier.
  • 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 configured to receive the target function module data sent by the first terminal.
  • the terminal 1000 may further include a display unit 1040.
  • the display unit 1040 is configured to output prompt information, where the prompt information is used to indicate that the terminal has received the target function module data.
  • the communication unit 1030 is further configured to send an interaction response message to the first terminal, where the interaction response message is used to indicate that the terminal has run the target function module.
  • the terminal 1000 may further include an input unit 1020, where the input unit 1020 is configured to receive a first operation instruction, where the first operation instruction is used to instruct the terminal to run the target function module.
  • the processing unit 1010 is specifically configured to instruct the execution environment to run the target function module according to the first operation instruction.
  • 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 the first terminal Information.
  • the application interface further includes interaction information between the terminal and the first terminal.
  • terminal in the embodiment of the present application shown in FIG. 10 may correspond to the terminal shown in FIG. 2, and the foregoing operations and/or functions of the respective units in the terminal in the embodiment of the present application may respectively
  • the corresponding processes executed by the second terminal in the interaction method shown in FIG. 3 or FIG. 6 are implemented, and are not described herein for brevity.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Stored Programmes (AREA)
  • Telephone Function (AREA)

Abstract

本申请实施例提供了一种交互方法和终端。本申请实施例的交互方法包括:第一终端运行可拆分应用程序,可拆分应用程序包括至少一个可独立运行功能模块;第一终端接收第一操作指令,第一操作指令用于指示用于与第二终端交互的目标功能模块,目标功能模块为从至少一个可独立运行功能模块中指定的功能模块;第一终端向第二终端发送交互请求消息,交互请求消息包括目标功能模块数据或目标功能模块标识;第一终端通过可拆分应用程序与第二终端运行的目标功能模块进行交互。本申请实施例的终端和交互方法,可以节省终端的资源、提高终端的交互效率。

Description

一种交互方法和终端 技术领域
本申请实施例涉及通信领域,尤其涉及一种交互方法和终端。
背景技术
随着智能终端的广泛应用,智能终端之间在很多场合会进行交互,如一个终端上的聊天应用程序与另一个终端上的聊天应用之间进行信息交互。
终端间进行交互时,可以由其中一个终端(可以称为交互发起方)向其他终端(可以称为交互接受方)发起交互请求消息,然后这两个终端运行相同或相关联的应用程序,以实现交互发起方与交互接受方之间的交互。
但多数情况下,交互发起方与交互接受方只要实现相同或相关联的应用程序中的部分功能即可以完成交互。此时,交互发起方和交互接受方均要运行包括该部分功能的整个应用程序。
如交互发起方向交互接收方发起交互请求消息,请求交互接收方进行语言翻译的信息交互时,交互发起方与交互接受方上均要运行包括音乐播放、语言翻译、照片分享等功能的完整应用程序。
上述传统的终端间的交互方式会导致参与交互的终端的资源浪费,降低终端间的交互效率。
发明内容
本申请实施例提供一种交互方法和终端,可以节省终端的资源、提高终端的交互效率。
第一方面,本申请实施例提供了一种交互方法。所述交互方法包括:第一终端运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块;所述第一终端接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块;所述第一终端向所述第二终端发送交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识;所述第一终端通过所述可拆分应用程序与所述第二终端运行的目标功能模块进行交互。
本申请实施例的交互方法中,第一终端与第二终端之间可以不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识,即可实现第一终端与第二终端之间的交互。从而可以节省第一终端的流量资源,也可以节省第一终端与第二终端间的传输时间,从而可以提高第一终端与第二终端间的交互效率。
在一种可能的实现方式中,所述交互请求消息包括所述目标功能模块数据;所述交互方法还包括:所述第一终端从所述可拆分应用程序的数据中获取所述目标功能模块数据;所述第一终端将所述目标功能模块数据插入所述交互请求消息中。
在一种可能的实现方式中,所述交互请求消息携带所述目标功能模块标识;所述交互方法还包括:所述第一终端接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据;所述第一终端向所述第二终端发送目标功能模块数据。
在一种可能的实现方式中,所述交互方法还包括:所述第一终端接收所述第二终端发送的交互应答消息,所述交互应答消息用于表示所述第二终端已运行所述目标功能模块。
在一种可能的实现方式中,所述交互方法还包括:所述第一终端接收第一操作指令之前,所述交互方法还包括:所述第一终端显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息;所述第一终端接收第一操作指令包括:所述第一终端接收用户针对所述第一应用界面输入的所述第一操作指令。
在一种可能的实现方式中,所述第一应用界面还包括所述第二终端的信息。
在一种可能的实现方式中,所述交互方法还包括:所述第一终端显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述第一终端和所述第二终端之间的交互信息。
第二方面,本申请实施例提供了一种交互方法。所述交互方法包括:第二终端接收第一终端发送的交互请求消息,所述第二终端上运行有用于执行可独立运行功能模块的执行环境,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应用程序中的至少一个可独 立运行功能模块;所述第二终端上的所述执行环境运行所述目标功能模块;所述第二终端通过所述目标功能模块与所述第一终端运行的所述可拆分应用程序进行交互。
本申请实施例的交互方法中,第二终端与第一终端进行交互时,没有执行整个可拆分应用程序,而是只运行了目标功能模块,从而节省了第二终端的计算资源。
另外,第一终端与第二终端之间可以不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识。从而可以节省第二终端的流量资源,以及节省第二终端与第一终端间的传输时间,进而提高第一终端与第二终端间的交互效率。
另一方面,第二终端上可以只存储目标功能模块,而不用存储整个应程序,从而可以节省第二终端的存储资源。
在一种可能的实现方式中,所述目标功能模块数据包括所述目标功能模块的初始化函数;其中,所述第二终端上的所述执行环境运行所述目标功能模块,包括:所述第二终端上的所述执行环境调用所述初始化函数。
在一种可能的实现方式中,所述交互请求消息包括所述目标功能模块标识;其中,所述交互方法还包括:所述第二终端根据所述目标功能模块标识确定所述第二终端上无目标功能模块数据;所述第二终端根据所述目标功能模块标识获取所述目标功能模块数据。
在一种可能的实现方式中,所述第二终端获取所述目标功能模块数据,包括:所述第二终端向所述第一终端发送模块请求消息,所述模块请求消息用于请求所述目标功能模块数据;所述第二终端接收所述第一终端发送的所述目标功能模块数据。
在一种可能的实现方式中,所述交互方法还包括:所述第二终端输出提示信息,所述提示信息用于指示所述第二终端已接收所述目标功能模块数据。
在一种可能的实现方式中,所述交互方法还包括:所述第二终端向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述第二终端已运行所述目标功能模块。
在一种可能的实现方式中,所述交互方法还包括:所述第二终端接收第一操作指令,所述第一操作指令用于指示所述第二终端运行所述目标功能模块;所述第二终端上的所述执行环境运行所述目标功能模块,包括:所述第 二终端上的所述执行环境根据所述第一操作指令,运行所述目标功能模块。
在一种可能的实现方式中,所述交互方法还包括:所述第二终端上的所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
在一种可能的实现方式中,所述应用界面还包括所述第二终端和所述第一终端之间的交互信息。
在一种可能的实现方式中,所述第二终端存储所述目标功能模块数据。
第三方面,本申请实施例提供了一种终端。所述终端包括处理器、输入单元、通信单元和显示单元。所述处理器用于运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块;所述输入单元用于接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块;所述通信单元用于根据所述第一操作指令向第二终端发送交互请求消息,所述交互请求消息包括所述目标功能模块对应的目标功能模块数据或目标功能模块标识;所述通信单元还用于通过所述可拆分应用程序与所述第二终端运行的所述目标功能模块进行交互。
本申请实施例的终端,作为第一终端,与第二终端之间不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识,即可实现第一终端与第二终端之间的交互。从而可以既节省该终端的流量资源,也节省该终端与第二终端间的传输时间,进而可以提高该终端与第二终端间的交互效率。
在一种可能的实现方式中,所述通信单元还用于接收交互应答消息,所述交互应答消息表示所述第二终端已运行所述目标功能模块。
在一种可能的实现方式中,所述交互请求消息携带目标功能模块标识;所述通信单元还用于接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据;所述通信单元还用于向所述第二终端发送所述目标功能模块数据。
在一种可能的实现方式中,所述显示单元用于显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息;其中,所述输入单元具体用于接收用户针对所述第一应用界面输入的所述第一操作指令。
在一种可能的实现方式中,所述第一应用界面还包括所述第二终端的信息。
在一种可能的实现方式中,所述显示单元还用于显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述第一终端和所述第二终端之间的交互信息。
在一种可能的实现方式中,所述处理器还用于从所述可拆分应用程序的数据中获取所述目标功能模块数据,将所述目标功能模块数据插入所述交互请求消息中;其中,所述交互请求消息包括所述目标功能模块数据。
第四方面,本申请实施例提供了一种终端。所述终端包括处理器、通信单元、显示单元和输入单元。所述处理器用于运行用于执行可独立运行功能模块的执行环境;所述通信单元用于接收第一终端发送的交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应用程序中的至少一个可独立运行功能模块;所述处理器用于指示所述执行环境运行所述目标功能模块;所述通信单元还用于通过所述执行环境运行所述目标功能模块,与所述第一终端的可拆分应用程序进行交互。
本申请实施例的终端作为第二终端,与第一终端进行交互时,可以不用执行整个可拆分应用程序,而是可以只运行目标功能模块,从而可以节省该终端的计算资源。
另外,第一终端与该终端之间可以不用传输整个应用程序,而是可以只传输对应的功能模块即可,从而可以既节省该终端的流量资源,也节省该终端与第一终端间的传输时间,进而提高第一终端与该终端间的交互效率。
另一方面,该终端上可以只存储目标功能模块数据,而不用存储整个应程序,可以节省该终端的存储资源。
在一种可能的实现方式中,所述通信单元还用于向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述第二终端已运行所述目标功能模块。
在一种可能的实现方式中,所述交互请求消息包括所述目标功能模块标识;其中,所述处理器还用于根据所述目标功能模块标识确定所述第二终端上无目标功能模块数据;所述通信单元还用于根据所述目标功能模块的标识获取所述目标功能模块数据。
在一种可能的实现方式中,所述通信单元具体用于向所述第一终端发送模块请求消息,所述模块请求消息用于请求所述目标功能模块数据;所述通信单元还具体用于接收所述第一终端发送的所述目标功能模块数据。
在一种可能的实现方式中,所述显示单元还用于输出提示信息,所述提示信息用于指示所述第二终端已接收所述目标功能模块数据。
在一种可能的实现方式中,所述输入单元用于接收第一操作指令,所述第一操作指令用于指示所述第二终端运行所述目标功能模块;所述处理器具体用于根据所述第一操作指令,指示所述执行环境运行所述目标功能模块。
在一种可能的实现方式中,所述目标功能模块数据包括所述目标功能模块的初始化函数;其中,所述处理器具体用于指示所述执行环境调用所述初始化函数。
在一种可能的实现方式中,所述显示单元还用于在所述处理器指示所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
在一种可能的实现方式中,所述应用界面还包括所述第二终端与所述第一终端之间的交互信息。
在一种可能的实现方式中,所述终端还包括存储器,用于存储所述目标功能模块数据。
第五方面,本申请实施例提供了一种计算机可读介质,所述计算机可读介质存储用于终端执行的程序代码,所述程序代码包括用于执行第一方面中或第一方面中任意一种可能的实现方式中的交互方法的指令。
第六方面,本申请实施例提供了一种计算机可读介质,所述计算机可读介质存储用于终端执行的程序代码,所述程序代码包括用于执行第二方面中或第二方面中任意一种可能的实现方式中的交互方法的指令。
第七方面,本申请实施例提供了一种终端。所述终端包括处理单元,输入单元、通信单元和显示单元。其中,处理单元用于运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块。所述输入单元用于接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块。所述通信单元用于根据所述第一操作指令向第二终端发送交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识。 所述通信单元还用于通过所述可拆分应用程序与所述第二终端运行的所述目标功能模块进行交互。
本申请实施例的终端,作为第一终端,与第二终端之间不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识,即可实现第一终端与第二终端之间的交互。从而可以既节省该终端的流量资源,也节省该终端与第二终端间的传输时间,进而可以提高该终端与第二终端间的交互效率。
在一种可能的实现方式中,所述交互请求消息包括所述目标功能模块数据。相应地,所述处理单元还用于从所述可拆分应用程序的数据中获取所述目标功能模块数据,将所述目标功能模块数据插入所述交互请求消息中。
在一种可能的实现方式中,所述交互请求消息携带目标功能模块标识。相应地,所述通信单元还用于接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据。所述通信单元还用于向所述第二终端发送所述目标功能模块数据。
在一种可能的实现方式中,所述通信单元还用于接收交互应答消息,所述交互应答消息表示所述第二终端已运行所述目标功能模块。
在一种可能的实现方式中,所述显示单元用于显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息。相应地,所述输入单元具体用于接收用户针对所述第一应用界面输入的所述第一操作指令。
在一种可能的实现方式中,所述第一应用界面还包括所述第二终端的信息。
在一种可能的实现方式中,所述显示单元还用于显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述终端和所述第二终端之间的交互信息。
第八方面,本申请实施例提供了一种终端。所述终端包括处理单元、输入单元、通信单元和显示单元。所述处理单元用于运行用于执行可独立运行功能模块的执行环境。所述通信单元用于接收第一终端发送的交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应用程序中的至少一个可独立运行功能模块。所述处理单元还 用于指示所述执行环境运行所述目标功能模块。所述通信单元还用于通过所述执行环境运行所述目标功能模块,与所述第一终端的可拆分应用程序进行交互。
本申请实施例的终端,作为第二终端,与第一终端进行交互时,可以不用执行整个可拆分应用程序,而是可以只运行目标功能模块,从而可以节省该终端的计算资源。
另外,第一终端与该终端之间可以不用传输整个应用程序,而是可以只传输对应的功能模块即可,从而可以既节省该终端的流量资源,也节省该终端与第一终端间的传输时间,进而提高第一终端与该终端间的交互效率。
另一方面,该终端上可以只存储目标功能模块数据,而不用存储整个应程序,可以节省该终端的存储资源。
在一种可能的实现方式中,所述交互请求消息包括所述目标功能模块数据,所述目标功能模块数据包括所述目标功能模块的初始化函数。相应地,所述处理单元具体用于指示所述执行环境调用所述初始化函数。
在一种可能的实现方式中,所述处理单元还用于根据所述目标功能模块标识确定所述终端上无目标功能模块数据。所述通信单元还用于根据所述目标功能模块标识获取所述目标功能模块数据。
在一种可能的实现方式中,所述通信单元具体用于向所述第一终端发送模块请求消息,所述模块请求消息用于请求所述目标功能模块数据。所述通信单元还具体用于接收所述第一终端发送的所述目标功能模块数据。
在一种可能的实现方式中,所述显示单元用于输出提示信息,所述提示信息用于指示所述终端已接收所述目标功能模块数据。
在一种可能的实现方式中,所述通信单元还用于向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述终端已运行所述目标功能模块。
在一种可能的实现方式中,所述输入单元用于接收第一操作指令,所述第一操作指令用于指示所述终端运行所述目标功能模块。相应地,所述处理单元具体用于根据所述第一操作指令,指示所述执行环境运行所述目标功能模块。
可选地,所述显示单元还用于在所述处理器指示所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
可选地,所述应用界面还包括所述终端与所述第一终端之间的交互信息。
综上所述,本申请实施例的交互方法和终端,使得第二终端与第一终端进行交互时,可以不用执行整个可拆分应用程序,而是可以只运行目标功能模块,从而可以节省第二终端的计算资源。
另外,第一终端与第二终端之间可以不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识,从而可以既节省第一终端与第二终端的流量资源,也节省第二终端与第一终端间的传输时间,进而提高第一终端与第二终端间的交互效率。
另一方面,第二终端上可以只存储目标功能模块数据,而不用存储整个应用程序,从而可以节省第二终端的存储资源。
附图说明
图1是能够应用本申请实施例的交互方法的示意性系统架构图。
图2是本申请实施例的终端的示例性结构图。
图3是本申请一个实施例的交互方法的示例性流程图。
图4是本申请实施例的终端上的可拆分应用程序的示例性界面图。
图5是本申请实施例的终端上的目标功能模块的示例性界面图。
图6是本申请另一个实施例的交互方法的示例性流程图。
图7是本申请实施例的终端进行信息交互时的示例性界面图。
图8是本申请实施例的终端进行信息交互时的示例性界面图。
图9是本申请实施例的终端的另一示例性结构图。
图10是本申请实施例的终端的另一示例性结构图
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
在本发明实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本发明。在本发明实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。本文中字符“/”,一般表示前后关联对象是 一种“或”的关系。
应当理解,尽管在本发明实施例中可能采用术语第一、第二、第三等来描述各种消息、请求和终端,但这些消息、请求和终端不应限于这些术语。这些术语仅用来将消息、请求和终端彼此区分开。例如,在不脱离本发明实施例范围的情况下,第一终端也可以被称为第二终端,类似地,第二终端也可以被称为第一终端。
如图1所示,能够应用本申请实施例的交互方法的系统中,可以包括两个终端。本申请实施例中,可以将发起交互请求的终端称为第一终端,将接受交互请求的终端称为第二终端。第一终端与第二终端之间可以相互通信。
应理解,本申请的实施例并不限于图1所示的系统架构中。此外,图1中的装置可以是硬件,也可以是从功能上划分的软件或者以上二者的结合。
其中,作为交互请求的发起方,第一终端上部署和运行有操作系统,该操作系统上配置有可运行在操作系统上的可拆分应用程序。
可拆分应用程序中的部分或全部功能模块可以独立下载、部署和运行在终端上。为了后面描述方便,将可拆分应用程序中可以独立下载、部署和运行在终端上的功能模块称为可独立运行功能模块。
作为交互请求的接收方,第二终端上部署有可以执行可拆分应用程序中的可独立运行功能模块的执行环境。该执行环境可以是部署在第二终端上的操作系统的组成部分,也可以是部署在第二终端的操作系统上的特殊执行环境,如沙箱(sandbox)。
本申请实施例中的终端可以是手机、手环、平板电脑、笔记本电脑、超级移动个人计算机(Ultra-Mobile Personal Computer,UMPC)、个人数字助理(Personal Digital Assistant,PDA)设备、具有无线通信功能的手持设备、计算设备或连接到无线调制解调器的其它处理设备、车载设备、可穿戴设备等以及未来5G网络中的终端设备等设备中的任意一种。
本申请实施例的终端的一种示例性结构图如图2所示。需要说明的是,图2所示的终端的结构仅为本申请实施例的终端的一种举例,并不构成对本申请实施例中的终端的限定。本申请实施例的终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
图2所示的终端作为交互发起方时,可为第一终端;图2所示的终端作为交互接受方时,可为第二终端。
如图2所示,本申请实施例的终端可以包括:射频(Radio Frequency,RF)电路110、电源120、处理器130、存储器140、输入单元150、显示单元160、传感器170、音频电路180、以及近距离通信模块190等部件。
其中,RF电路110和近距离通信模块190等用于与其他设备通信的部件或单元可以统称为通信单元。
RF电路110可用于在收发信息或通话过程中,进行信号的接收和发送,特别地,将基站的下行信息接收后,给处理器130处理;另外,将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路110还可以通过无线通信与网络和其他设备通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。
存储器140可用于存储软件程序以及模块,处理器130通过运行存储在存储器140的软件程序以及模块,从而执行终端的各种功能应用以及数据处理。存储器140可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图象播放功能等)等;存储数据区可存储根据终端的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器140还可以包括高速随机存取存储器,或还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
输入单元150可用于接收输入的数字或字符信息,以及产生与终端的用户设置以及功能控制有关的键信号输入。具体地,输入单元150可包括触控面板151以及其他输入设备152。触控面板151,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板151上或在触控面板151附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,触控面板151可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸 操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器130,并能接收处理器130发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板151。除了触控面板151,输入单元150还可以包括其他输入设备152。具体地,其他输入设备152可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
显示单元160可用于显示由用户输入的信息或提供给用户的信息以及终端的各种菜单。显示单元160可包括显示面板161,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机电激光显示(Organic Light-Emitting Diode,OLED)等形式来配置显示面板161。进一步的,触控面板151可覆盖显示面板161,当触控面板151检测到在其上或附近的触摸操作后,传送给处理器130以确定触摸事件的类型,随后处理器130根据触摸事件的类型在显示面板161上提供相应的视觉输出。虽然在图2中,触控面板151与显示面板161是作为两个独立的部件来实现终端的输入和输入功能,但是在某些实施例中,可以将触控面板151与显示面板161集成而实现终端的输入和输出功能。
传感器170可以是光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板161的亮度,接近传感器可在终端移动到耳边时,关闭显示面板161和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等。
图2所示的终端还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。
音频电路180、扬声器181,麦克风182可提供用户与终端之间的音频接口。音频电路180可将接收到的音频数据转换后的电信号,传输到扬声器181,由扬声器181转换为声音信号输出;另一方面,麦克风182将收集的声音信号转换为电信号,由音频电路180接收后转换为音频数据,再将音频数据输出至RF电路110以发送给比如另一终端,或者将音频数据输出至存 储器140以便进一步处理。
近距离通信模块190用于通过短距离无线传输技术实现近距离通信。此处所说的短距离无线传输技术包括蓝牙(Bluetooth)、无线局域网(Wireless Local Area Networks,WLAN)、红外数据传输、ZigBee、超宽频、近场通信(Near Field Communication,NFC)、无线保真(Wireless Fidelity,WiFi)等技术。
处理器130是终端的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器140内的软件程序和/或模块,以及调用存储在存储器140内的数据,执行终端的各种功能和处理数据,从而实现基于终端的多种业务。可选的,处理器130可包括一个或多个处理单元;处理器130可集成应用处理器和调制解调处理器,其中,应用处理器处理操作系统、用户界面和应用程序等,调制解调处理器处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器130中。
电源120(比如电池),可以通过电源管理系统与处理器130逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
尽管未示出,终端还可以包括摄像头等模块,在此不再赘述。
本申请实施例中,第一终端与第二终端进行交互时,第一终端和第二终端执行的交互方法的示意性流程图如图3所示。
应理解,图3示出的本申请实施例的交互方法的步骤(也可以称为操作)仅是示例,本申请实施例还可以执行其他步骤或者图3中的各个步骤的变形。
在第一终端与第二终端执行图3所示的交互方法之前,第一终端与第二终端之间已经建立了通信连接,相互之间可以进行通信。
若用户希望第一终端上的可拆分应用程序与第二终端进行交互,用户可以点击第一终端上显示的可拆分应用程序的图标。
第一终端运行可拆分应用程序后,可以根据用户的选择显示可拆分应用程序的应用界面。以即时通信应用作为示例性可拆分应用程序的应用界面示意图如图4所示。
如图4所示,第一终端显示的所述即时通信应用的应用界面中,可以包括第二终端的名称。该应用界面中还可以包括可拆分应用程序所包括的可独立运行功能模块的名称:第一功能模块、第二功能模块、第三功能模块、第四功能模块等。
图4所示的应用界面中的第一功能模块、第二功能模块、第三功能模块、第四功能模块等的一种示例可以为跨语言翻译、双人游戏、照片分享和音乐播放列表分享等。
第一终端与第二终端进行交互之前,第一终端可以先确定可拆分应用程序中,用于与第二终端交互的可独立运行功能模块。可以将该确定的可独立运行功能模块称为目标功能模块。
具体而言,第一终端可以接收用户输入的功能模块信息,并将该功能模块信息对应的可独立运行功能模块确定为目标功能模块。如用户可以选择图4所示的应用界面上的第一功能模块,则第一终端将第一功能模块确定为目标功能模块。跨语言翻译功能模块为第一功能模块的一种示例。
第一终端确定目标功能模块后,如图3中的S310所示,第一终端向第二终端发送交互请求消息,该交互请求消息可以携带目标功能模块数据。。
可选地,目标功能模块数据可以包括该目标功能模块所包括的代码或指令。若该目标功能模块所包括的代码或指令在终端中用于执行可独立运行功能模块的执行环境中运行,则可以实现该目标功能模块的功能。
本申请实施例中,可选地,交互请求消息中携带的目标功能模块数据可以是第一终端从可拆分应用程序的数据中获取的。可拆分应用程序的数据可以包括可拆分应用程序的代码或指令。
可选地,目标功能模块数据可以包括初始化函数。其中,初始化函数的功能包括:显示界面控件、功能模块内部变量的初始化等等。初始化函数由执行可独立运行功能模块的执行环境调用,一旦初始化函数执行完毕,则该目标功能模块可以接管与用户的交互流程,以执行业务功能。
第二终端接收到第一终端发送的目标功能模块数据后,可选地,第二终端可以输出提示信息,该提示信息可以用于表示第二终端已接收到目标功能模块数据。
可选地,第二终端接收到第一终端发送的目标功能模块数据后,还可以接收用户输入的操作指令。该操作指令可以用于指示第二终端运行或不运行目标功能模块。
如图5所示,第二终端的应用界面上可以显示当前连接的第一终端的名称,还可以显示已接收的目标功能模块的名称。第二终端还可以在该应用界面上接收用户输入的操作指令。
若用户输入的操作指令用于指示第二终端运行目标功能模块,则第二终端可以运行该目标功能模块。具体而言,第二终端上用于执行可独立运行功能模块的执行环境可以根据用户输入的操作指令运行目标功能模块数据。
更具体地,第二终端可以向用于执行可独立运行功能模块的执行环境发出加载命令,该加载命令可以携带目标功能模块的初始化函数调用参数,例如,以URI(Uniform Resource Identifier)方式表达的入口函数和参数。
本申请实施例中,第二终端上用于执行可独立运行功能模块的执行环境可以包括入口函数执行模块、平台能力封装、代码执行引擎等模块。
其中,入口函数执行模块向可拆分应用程序或其他应用程序开放接口,以便于可拆分应用程序或其他应用程序可以加载可独立运行功能模块;平台能力封装向可独立运行功能模块开放接口,以便于可独立运行功能模块可以调用一些基础性的能力,例如用户信息、支付能力等;代码执行引擎用于解析和执行可独立运行功能模块的代码,例如,浏览器内核就是Web应用代码的解析和执行引擎。
可选地,第二终端上的执行环境执行目标功能模块的具体实施方式可以包括:执行环境接到第二终端的加载命令,然后调用目标功能模块的初始化函数,使得第二终端可以显示这些目标功能模块的控件,进一步使得人机交互和业务功能可以由目标功能模块处理。
第二终端运行目标功能模块后,如S320所示,可以向第一终端发送交互应答消息。该交互应答消息可以用于指示第二终端已运行目标功能模块。
第一终端接收第二终端发送的交互应答消息后,如S330所示,第一终端可以通过可拆分应用程序与第二终端中运行的目标功能模块进行交互。具体而言,第一终端可以通过可拆分应用程序与第二终端中运行的目标功能模块进行信息交互。
本申请实施例中,可选地,第一终端确定目标功能模块后,如图6中的S610所示,第一终端向第二终端发送的交互请求消息中可以携带目标功能模块标识。
若交互请求请求消息携带目标功能模块标识,则第二终端接收第一终端发送的交互请求消息后,可以确定第二终端上是否存在目标功能模块标识对应的目标功能模块数据。
若第二终端确定第二终端上存在目标功能模块标识对应的目标功能模 块,则可以执行S620,即指示执行环境运行该目标功能模块。
可选地,第二终端可以接收用户输入的操作指令,然后根据该操作指令运行目标功能模块。
第二终端根据用户输入的操作指令运行目标功能模块后,可以执行S630:第二终端向第一终端发送交互应答消息,该交互应答消息用于表示第二终端已运行目标功能模块。
可选地,第二终端确定第二终端上存在目标功能模块数据后,可以不用接收用户的操作指令,而可以直接运行该目标功能模块,并执行S630。
第二终端向第一终端发送交互应答消息后,可以通过目标功能模块与第一终端中运行的可拆分应用程序进行交互。
第一终端接收第二终端发送的交互应答消息,然后可以执行S640:第一终端通过可拆分应用程序与第二终端中运行的目标功能模块进行交互。
若第二终端确定第二终端中不存在目标功能模块数据,则可以获取目标功能模块数据。
第二终端获取目标功能模块数据的一种具体实施方式为:第二终端向第一终端发送模块请求消息,该模块请求消息用于请求目标功能模块数据。
可选地,该功能模块请求消息可以携带目标功能模块标识。
第一终端接收第二终端发送的模块请求消息后,可以根据该模块请求消息向第二终端发送目标功能模块数据。
第二终端获取目标功能模块数据的另一种具体实施方式为:第二终端向应用程序电子市场发送模块请求消息。若应用程序电子市场上有目标功能模块数据,则第二终端可以接收应用程序电子市场发送的目标功能模块数据。
如第一终端可以通过RF电路向第二终端发送短消息,该短消息中可以携带目标功能模块的超链接信息。第二终端可以根据该超链接信息从应用程序市场下载目标功能模块数据。
第一终端通过可拆分应用程序与第二终端中运行的目标功能模块进行交互,具体而言,可以包括:第一终端通过可拆分应用程序向第二终端运行的目标功能模块发送信息,和/或接收第二终端运行的目标功能模块发送的信息;同理,第二终端运行的目标功能模块接收第一终端通过可拆分应用程序发送的信息,和/或向第一终端的可拆分应用程序发送信息。
下面以跨语言翻译功能模块为目标功能模块为例,结合图7和图8,详 细介绍第一终端与第二终端间进行信息交互时的应用界面。
如图7所示,第一终端可以接收用户针对应用界面输入的“你好!”,然后向第二终端发送“你好!”。
第二终端接收第一终端发送的“你好!”后,第二终端中“跨语言翻译”功能模块将“你好!”翻译成英文“Hi!”,并在第二终端的应用界面中显示,如图8所示。
第二终端接收用户输入的“What can I do for you?”,并向第一终端发送“What can I do for you?”。
第一终端接收第二终端发送的“what can I do for you?”后,第一终端上的可拆分应用程序中的“跨语言翻译”功能模块将“what can I do for you?”翻译成“我能为你做什么吗?”,并在应用界面中显示“我能为你做什么吗?”。
由上述内容可知,第二终端与第一终端进行交互时,可以不执行整个应用程序,而是可以只运行目标功能模块,从而可以节省第二终端的计算资源。
另外,第一终端与第二终端之间可以不用传输整个应用程序,而是可以只传输目标功能模块数据或目标功能模块标识,从而可以节省第一终端与第二终端的流量资源,也可以节省第一终端与第二终端间的传输时间,从而可以提高第一终端与第二终端间的交互效率。
另一方面,第二终端上只需存储目标功能模块数据,而不用存储整个应用程序,可以节省第二终端的存储资源。
本申请实施例的交互方法可以应用在第一终端与第二终端之间进行的任意交互场景,如在第一终端与第二终端之间进行的即时性交互场景,即第一终端与第二终端之间不会频繁地重复进行交互的场景。
本申请实施例中,可选地,第一终端确定的目标功能模块可以是可拆分应用程序中的多个可独立运行功能模块。
本申请的实施例中,可选地,第二终端与第一终端完成交互后,可以不删除目标功能模块数据,而是保存目标功能模块数据,以便于第二终端再次与第一终端或其他终端进行交互时,可以不用再获取该目标功能模块数据,从而可以节省终端的流量资源,从而提高交互效率。
下面结合图2、图3和图6对第一终端进行详细的介绍。
第一终端的存储器可以存储可拆分应用程序。第一终端的处理器可以运行可拆分应用程序。
第一终端的输入单元可以接收第一操作指令,第一操作指令用于确定目标功能模块。
第一终端的处理器可以根据第一操作指令确定目标功能模块。
第一终端的通信单元可以向第二终端发送交互请求消息,该交互请求消息可以携带目标功能模块数据或目标功能模块标识。
第一终端的处理器可以通过可拆分应用程序与第二终端上运行的目标功能模块进行交互。
可选地,第一终端的显示单元可以显示可拆分应用程序的第一应用界面。如图4所示,该第一应用界面中可以包括第二终端的名称、可拆分应用程序中的可独立运行功能模块的名称。
此时,第一操作指令可以是用户针对第一应用界面输入的操作指令。如,第一操作指令可以是用户通过第一终端的触摸屏输入的选择指令。该选择指令可以选择应用界面中显示的任意可独立运行功能模块。然后,第一终端的处理器可以将用户通过触摸屏选择的可独立运行功能模块确定为目标功能模块。
可选地,第一终端的处理器可以从可拆分应用程序的数据中获取目标功能模块数据。此时,交互请求消息可以携带目标功能模块数据。
可选地,第一终端的通信单元可以接收第二终端发送的交互应答消息,该交互应答消息可以用于表示第二终端已运行目标功能模块。
可选地,第一终端的显示单元还可以显示可拆分应用程序的应用界面,该应用界面可以包括交互应答消息。可选地,第一终端的显示单元还可以显示可拆分应用程序的第二应用界面,第二应用界面上可以包括第一终端和第二终端之间的交互信息。第二应用界面可以如图7所示。
可选地,若交互请求消息携带目标功能模块标识,则第一终端的通信单元还可以接收第二终端发送的模块请求消息,该模块请求消息用于请求目标功能模块数据。然后第一终端的通信单元还可以向第二终端发送目标功能模块数据。
可选地,第一终端的通信单元可以为WiFi模块或蓝牙模块或NFC模块。WiFi模块或蓝牙模块或NFC可以包括硬件芯片和编程接口。
其中,若WiFi模块或蓝牙模块或NFC模块用于向第二终端发送消息或信息,则各自的编程接口接收到可拆分应用程序向第二终端发送的消息或信 息后,可以将该消息或信息封装成各个模块的硬件芯片能够传输的信令,然后硬件芯片向第二终端发送该封装所得的信令。
如WiFi模块或蓝牙模块的编程接口可以将消息或信息封装成硬件芯片能够发送的传输控制协议/因特网互联协议(Transmission Control Protocol/Internet Protocol,TCP/IP)信令,NFC模块的编程接口可以将消息或信息封装成硬件芯片能够发送的NFC信令。
若WiFi模块或蓝牙模块或NFC模块用于接收第二终端发送的消息或信息,则各个模块的硬件芯片接收第二终端发送的消息或信息后,由于该消息或信令封装在硬件芯片能够识别的信令中,因此各个模块的编程接口从该信令中获取该信令中封装的消息或信息,并将获取到的消息或信息传输给可拆分应用程序。
如WiFi模块或蓝牙模块的编程接口可以从硬件芯片接收的TCP/IP信令中获取消息或信息,NFC模块的编程接口可以从硬件芯片接收的NFC信令中获取消息或信息。
应理解,第一终端的上述单元或模块以及图2中所示的其他单元或模块,分别用于执行图3或图6所示的交互方法中相应或相似的功能,为了简洁,此处不再赘述。
下面结合图2、图3和图6对第二终端进行详细的介绍。
第二终端的处理器中可以部署用于运行可独立运行功能模块的执行环境。该执行环境可以是部署在第二终端的处理器中的操作系统,也可以是特殊的执行环境,如沙箱。
第二终端的通信单元可以接收第一终端发送的交互请求消息。该交互请求消息可以携带目标功能模块数据或目标功能模块标识。
第二终端的处理器可以指示所述执行环境运行目标功能模块。
第二终端的通信单元可以通过目标功能模块与第一终端上运行的可拆分应用程序进行交互。
可选地,第二终端的通信单元可以向第一终端发送交互应答消息,交互应答消息可以用于表示第二终端已运行目标功能模块。
可选地,若交互请求消息包括目标功能模块标识,则第二终端的处理器还可以确定第二终端的存储器中有无目标功能模块数据。
若第二终端的处理器确定第二终端的存储器中存在目标功能模块数据, 则第二终端的处理器可以指示执行环境运行目标功能模块。
若第二终端的处理器确定第二终端上无目标功能模块数据,则第二终端的通信单元还可以获取目标功能模块数据。
可选地,第二终端的通信单元具体可以向第一终端发送模块请求消息,模块请求消息可以用于请求目标功能模块数据;第二终端的通信单元具体还可以接收第一终端发送的目标功能模块数据。
可选地,第二终端的通信单元接收目标功能模块数据后,第二终端的显示单元还可以输出提示信息,该提示信息可以用于指示第二终端已接收目标功能模块数据。
可选地,第二终端的输入单元可以接收第一操作指令,第一操作指令可以用于指示第二终端运行目标功能模块。然后,第二终端的处理器可以根据第一操作指令,指示执行环境运行目标功能模块。
可选地,目标功能模块数据可以包括目标功能模块的初始化函数。此时,第二终端的处理器具体可以指示执行环境调用目标功能模块的初始化函数,以运行目标功能模块。
可选地,第二终端的处理器指示执行环境运行目标功能模块后,第二终端的显示单元可以显示目标功能模块的应用界面,该应用界面可以包括第一终端的信息。
可选地,第二终端的显示单元显示的应用界面还可以包括第二终端与第一终端之间的交互信息。
可选地,第二终端的通信单元从第一终端或其他设备获取目标功能模块数据后,第二终端的存储器可以存储该目标功能模块数据。
可选地,第二终端的通信单元可以为WiFi模块或蓝牙模块或NFC模块。WiFi模块或蓝牙模块或NFC可以包括硬件芯片和编程接口。
其中,若WiFi模块或蓝牙模块或NFC模块用于向第一终端发送消息或信息,则各自的编程接口接收到目标功能模块向第一终端发送的消息或信息后,将该消息或信息封装成各个模块的硬件芯片能够传输的信令,然后硬件芯片向第一终端发送该封装所得的信令。
如WiFi模块或蓝牙模块的编程接口可以将消息或信息封装成硬件芯片能够发送的TCP/IP信令,NFC模块的编程接口可以将消息或信息封装成硬件芯片能够发送的NFC信令。
若WiFi模块或蓝牙模块或NFC模块用于接收第一终端发送的消息或信息,则各个模块的硬件芯片接收第一终端发送的消息或信息后,由于该消息或信令封装在硬件芯片能够识别的信令中,因此各个模块的编程接口从该信令中获取该信令中封装的消息或信息,并将获取到的消息或信息传输给目标功能模块。
如WiFi模块或蓝牙模块的编程接口可以从硬件芯片接收的TCP/IP信令中获取消息或信息,NFC模块的编程接口可以从硬件芯片接收的NFC信令中获取消息或信息。
应理解,第二终端的上述单元或模块以及图2中所示的其他单元或模块,分别用于执行图3或图6所示的交互方法中相应或相似的功能,为了简洁,此处不再赘述。
本申请实施例的终端的另一个示例性流程图如图9所示。应理解,图9示出的终端900仅是示例,本申请实施例的终端还可包括其他模块或单元,或者包括与图9中的各个模块的功能相似的模块,或者并非要包括图9中的所有模块。
处理单元910用于运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块。
输入单元920用于接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块。
通信单元930用于根据所述第一操作指令向第二终端发送交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识。
所述通信单元930还用于通过所述可拆分应用程序与所述第二终端运行的所述目标功能模块进行交互。
本申请实施例的终端,作为第一终端,与第二终端之间不用传输整个应用程序,可以只传输目标功能模块数据或目标功能模块标识,即可实现第一终端与第二终端之间的交互。从而可以既节省该终端的流量资源,也节省该终端与第二终端间的传输时间,进而可以提高该终端与第二终端间的交互效率。
可选地,所述交互请求消息包括所述目标功能模块数据。相应地,所述处理单元910还用于从所述可拆分应用程序的数据中获取所述目标功能模块 数据,将所述目标功能模块数据插入所述交互请求消息中。
可选地,所述交互请求消息携带目标功能模块标识。相应地,所述通信单元930还用于接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据。所述通信单元930还用于向所述第二终端发送所述目标功能模块数据。
可选地,所述通信单元930还用于接收交互应答消息,所述交互应答消息表示所述第二终端已运行所述目标功能模块。
可选地,终端900还可以包括显示单元940。显示单元940用于显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息。相应地,所述输入单元920具体用于接收用户针对所述第一应用界面输入的所述第一操作指令。
可选地,所述第一应用界面还包括所述第二终端的信息。
可选地,所述显示单元940还用于显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述终端和所述第二终端之间的交互信息。
应理解,图9所示本申请实施例的终端可对应于图2所示的终端,并且本申请实施例的终端中的各个单元的上述和其它操作和/或功能分别可以实现图3或图6所示的交互方法中由第一终端执行的相应流程,为了简洁,在此不再赘述。
本申请实施例的终端的另一个示例性流程图如图10所示。应理解,图10示出的终端1000仅是示例,本申请实施例的终端还可包括其他模块或单元,或者包括与图10中的各个模块的功能相似的模块,或者并非要包括图10中的所有模块。
处理单元1010用于运行用于执行可独立运行功能模块的执行环境。
通信单元1030用于接收第一终端发送的交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应用程序中的至少一个可独立运行功能模块。
所述处理单元1010还用于指示所述执行环境运行所述目标功能模块。
所述通信单元1030还用于通过所述执行环境运行所述目标功能模块,与所述第一终端的可拆分应用程序进行交互。
本申请实施例的终端,作为第二终端,与第一终端进行交互时,可以不 用执行整个可拆分应用程序,而是可以只运行目标功能模块,从而可以节省该终端的计算资源。
另外,第一终端与该终端之间可以不用传输整个应用程序,而是可以只传输对应的功能模块即可,从而可以既节省该终端的流量资源,也节省该终端与第一终端间的传输时间,进而提高第一终端与该终端间的交互效率。
另一方面,该终端上可以只存储目标功能模块数据,而不用存储整个应程序,可以节省该终端的存储资源。
可选地,所述交互请求消息包括所述目标功能模块数据,所述目标功能模块数据包括所述目标功能模块的初始化函数。相应地,所述处理单元1010具体用于指示所述执行环境调用所述初始化函数。
可选地,所述处理单元1010还用于根据所述目标功能模块标识确定所述终端上无目标功能模块数据。所述通信单元1030还用于根据所述目标功能模块标识获取所述目标功能模块数据。
可选地,所述通信单元1030具体用于向所述第一终端发送模块请求消息,所述模块请求消息用于请求所述目标功能模块数据。所述通信单元1030还具体用于接收所述第一终端发送的所述目标功能模块数据。
可选地,终端1000还可以包括显示单元1040。所述显示单元1040用于输出提示信息,所述提示信息用于指示所述终端已接收所述目标功能模块数据。
可选地,所述通信单元1030还用于向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述终端已运行所述目标功能模块。
可选地,终端1000还可以包括输入单元1020,所述输入单元1020用于接收第一操作指令,所述第一操作指令用于指示所述终端运行所述目标功能模块。相应地,所述处理单元1010具体用于根据所述第一操作指令,指示所述执行环境运行所述目标功能模块。
可选地,所述显示单元1040还用于在所述处理器指示所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
可选地,所述应用界面还包括所述终端与所述第一终端之间的交互信息。
应理解,图10所示本申请实施例的终端可对应于图2所示的终端,并且本申请实施例的终端中的各个单元的上述和其它操作和/或功能分别可以 实现图3或图6所示的交互方法中由第二终端执行的相应流程,为了简洁,在此不再赘述。
应理解,本申请实施例的不同附图中,相同的附图表示相同的含义。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前 述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。

Claims (32)

  1. 一种交互方法,其特征在于,包括:
    第一终端运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块;
    所述第一终端接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块;
    所述第一终端向所述第二终端发送交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识;所述第一终端通过所述可拆分应用程序与所述第二终端运行的目标功能模块进行交互。
  2. 根据权利要求1所述的交互方法,其特征在于,所述交互请求消息包括所述目标功能模块数据;
    所述交互方法还包括:
    所述第一终端从所述可拆分应用程序的数据中获取所述目标功能模块数据;
    所述第一终端将所述目标功能模块数据插入所述交互请求消息中。
  3. 根据权利要求1所述的交互方法,其特征在于,所述交互请求消息包括所述目标功能模块标识;
    所述交互方法还包括:
    所述第一终端接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据;
    所述第一终端向所述第二终端发送所述目标功能模块数据。
  4. 根据权利要求1至3中任一项所述的交互方法,其特征在于,所述交互方法还包括:
    所述第一终端接收所述第二终端发送的交互应答消息,所述交互应答消息用于表示所述第二终端已运行所述目标功能模块。
  5. 根据权利要求1至4中任一项所述的交互方法,其特征在于,所述第一终端接收第一操作指令之前,所述交互方法还包括:
    所述第一终端显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息;
    所述第一终端接收第一操作指令包括:
    所述第一终端接收用户针对所述第一应用界面输入的所述第一操作指令。
  6. 根据权利要求5所述的交互方法,其特征在于,所述第一应用界面还包括所述第二终端的信息。
  7. 根据权利要求1至6中任一项所述的交互方法,其特征在于,所述交互方法还包括:
    所述第一终端显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述第一终端和所述第二终端之间的交互信息。
  8. 一种交互方法,其特征在于,包括:
    第二终端接收第一终端发送的交互请求消息,所述第二终端上运行有用于执行可独立运行功能模块的执行环境,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应用程序中的至少一个可独立运行功能模块;
    所述第二终端上的所述执行环境运行所述目标功能模块;所述第二终端通过所述目标功能模块与所述第一终端运行的所述可拆分应用程序进行交互。
  9. 根据权利要求8所述的交互方法,其特征在于,所述交互请求消息包括所述目标功能模块数据,所述目标功能模块数据包括所述目标功能模块的初始化函数;
    其中,所述第二终端上的所述执行环境运行所述目标功能模块,包括:
    所述第二终端上的所述执行环境调用所述初始化函数。
  10. 根据权利要求8所述的交互方法,其特征在于,所述交互请求消息包括所述目标功能模块标识;
    所述交互方法还包括:
    所述第二终端根据所述目标功能模块标识确定所述第二终端上无目标功能模块数据;
    所述第二终端根据所述目标功能模块标识获取所述目标功能模块数据。
  11. 根据权利要求10所述的交互方法,其特征在于,所述第二终端获取所述目标功能模块数据,包括:
    所述第二终端向所述第一终端发送模块请求消息,所述模块请求消息用 于请求所述目标功能模块数据;
    所述第二终端接收所述第一终端发送的所述目标功能模块数据。
  12. 根据权利要求11所述的交互方法,其特征在于,所述交互方法还包括:
    所述第二终端输出提示信息,所述提示信息用于指示所述第二终端已接收所述目标功能模块数据。
  13. 根据权利要求8至12中任一项所述的交互方法,其特征在于,所述交互方法还包括:
    所述第二终端向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述第二终端已运行所述目标功能模块。
  14. 根据权利要求8至13中任一项所述的交互方法,其特征在于,所述交互方法还包括:
    所述第二终端接收第一操作指令,所述第一操作指令用于指示所述第二终端运行所述目标功能模块;
    所述第二终端上的所述执行环境运行所述目标功能模块,包括:
    所述第二终端上的所述执行环境根据所述第一操作指令,运行所述目标功能模块。
  15. 根据权利要求8至14中任一项所述的交互方法,其特征在于,所述交互方法还包括:
    所述第二终端上的所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
  16. 根据权利要求15所述的交互方法,其特征在于,所述应用界面还包括所述第二终端和所述第一终端之间的交互信息。
  17. 一种终端,其特征在于,包括处理器、输入单元、通信单元和显示单元;
    所述处理器用于运行可拆分应用程序,所述可拆分应用程序包括至少一个可独立运行功能模块;
    所述输入单元用于接收第一操作指令,所述第一操作指令用于指示用于与第二终端交互的目标功能模块,所述目标功能模块为从所述至少一个可独立运行功能模块中指定的功能模块;
    所述通信单元用于根据所述第一操作指令向第二终端发送交互请求消 息,所述交互请求消息包括目标功能模块数据或目标功能模块标识;
    所述通信单元还用于通过所述可拆分应用程序与所述第二终端运行的所述目标功能模块进行交互。
  18. 根据权利要求17所述的终端,其特征在于,所述交互请求消息包括所述目标功能模块数据;
    所述处理器还用于从所述可拆分应用程序的数据中获取所述目标功能模块数据,将所述目标功能模块数据插入所述交互请求消息中。
  19. 根据权利要求17所述的终端,其特征在于,所述交互请求消息携带目标功能模块标识;
    所述通信单元还用于接收所述第二终端发送的模块请求消息,所述模块请求消息用于请求目标功能模块数据;
    所述通信单元还用于向所述第二终端发送所述目标功能模块数据。
  20. 根据权利要求17至19中任一项所述的终端,其特征在于,所述通信单元还用于接收交互应答消息,所述交互应答消息表示所述第二终端已运行所述目标功能模块。
  21. 根据权利要求17至20中任一项所述的终端,其特征在于,所述显示单元用于显示所述可拆分应用程序的第一应用界面,所述第一应用界面包括所述至少一个可独立运行功能模块的信息;
    所述输入单元具体用于接收用户针对所述第一应用界面输入的所述第一操作指令。
  22. 根据权利要求21所述的终端,其特征在于,所述第一应用界面还包括所述第二终端的信息。
  23. 根据权利要求17至22中任一项所述的终端,其特征在于,所述显示单元还用于显示所述可拆分应用程序的第二应用界面,所述第二应用界面包括所述终端和所述第二终端之间的交互信息。
  24. 一种终端,其特征在于,包括处理器、通信单元、显示单元和输入单元;
    所述处理器用于运行用于执行可独立运行功能模块的执行环境;
    所述通信单元用于接收第一终端发送的交互请求消息,所述交互请求消息包括目标功能模块数据或目标功能模块标识,所述目标功能模块数据或所述目标功能模块标识对应的目标功能模块为所述第一终端运行的可拆分应 用程序中的至少一个可独立运行功能模块;
    所述处理器用于指示所述执行环境运行所述目标功能模块;
    所述通信单元还用于通过所述执行环境运行所述目标功能模块,与所述第一终端的可拆分应用程序进行交互。
  25. 根据权利要求24所述的终端,其特征在于,所述交互请求消息包括所述目标功能模块数据,所述目标功能模块数据包括所述目标功能模块的初始化函数;
    所述处理器具体用于指示所述执行环境调用所述初始化函数。
  26. 根据权利要求24所述的终端,其特征在于,所述交互请求消息包括所述目标功能模块标识;
    所述处理器还用于根据所述目标功能模块标识确定所述终端上无目标功能模块数据;
    所述通信单元还用于根据所述目标功能模块标识获取所述目标功能模块数据。
  27. 根据权利要求26所述的终端,其特征在于,所述通信单元具体用于向所述第一终端发送模块请求消息,所述模块请求消息用于请求所述目标功能模块数据;
    所述通信单元还具体用于接收所述第一终端发送的所述目标功能模块数据。
  28. 根据权利要求27所述的终端,其特征在于,所述显示单元还用于输出提示信息,所述提示信息用于指示所述终端已接收所述目标功能模块数据。
  29. 根据权利要求24至28中任一项所述的终端,其特征在于,所述通信单元还用于向所述第一终端发送交互应答消息,所述交互应答消息用于表示所述终端已运行所述目标功能模块。
  30. 根据权利要求24至29中任一项所述的终端,其特征在于,所述输入单元用于接收第一操作指令,所述第一操作指令用于指示所述终端运行所述目标功能模块;
    所述处理器具体用于根据所述第一操作指令,指示所述执行环境运行所述目标功能模块。
  31. 根据权利要求24至30中任一项所述的终端,其特征在于,所述显 示单元还用于在所述处理器指示所述执行环境运行所述目标功能模块后,显示所述目标功能模块的应用界面,所述应用界面包括所述第一终端的信息。
  32. 根据权利要求31所述的终端,其特征在于,所述应用界面还包括所述终端与所述第一终端之间的交互信息。
PCT/CN2016/112290 2016-12-27 2016-12-27 一种交互方法和终端 WO2018119630A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201680066307.9A CN108323236B (zh) 2016-12-27 2016-12-27 一种交互方法和终端
PCT/CN2016/112290 WO2018119630A1 (zh) 2016-12-27 2016-12-27 一种交互方法和终端

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2016/112290 WO2018119630A1 (zh) 2016-12-27 2016-12-27 一种交互方法和终端

Publications (1)

Publication Number Publication Date
WO2018119630A1 true WO2018119630A1 (zh) 2018-07-05

Family

ID=62706591

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112290 WO2018119630A1 (zh) 2016-12-27 2016-12-27 一种交互方法和终端

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343618A (zh) * 2020-02-13 2020-06-26 维沃移动通信有限公司 一种显示方法及电子设备
CN113179445A (zh) * 2021-04-15 2021-07-27 腾讯科技(深圳)有限公司 基于互动物品的视频分享方法、互动物品

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515748B (zh) * 2019-08-28 2022-02-01 腾讯科技(深圳)有限公司 一种消息处理的方法及相关装置
CN113129202B (zh) * 2020-01-10 2023-05-09 华为技术有限公司 数据传输方法、装置及数据处理系统、存储介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103246533A (zh) * 2013-04-11 2013-08-14 北京小米科技有限责任公司 一种在通讯录中添加插件的方法、装置和设备
CN104133669A (zh) * 2014-06-11 2014-11-05 腾讯科技(深圳)有限公司 一种桌面应用的控制方法及终端设备
CN104298417A (zh) * 2013-07-19 2015-01-21 北京三星通信技术研究有限公司 移动终端管理应用程序的视图的方法及装置
WO2015105499A1 (en) * 2014-01-10 2015-07-16 Citrix Systems, Inc. Providing mobile application management functionalities
CN105183547A (zh) * 2015-08-13 2015-12-23 青岛海信移动通信技术股份有限公司 一种用户界面的任务调度方法和装置
US9239713B1 (en) * 2013-03-06 2016-01-19 MobileForce Software, Inc. Platform independent rendering for native mobile applications

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179622B (zh) * 2006-11-07 2010-06-16 中兴通讯股份有限公司 通讯系统中一种多命令的处理设备及其处理方法
JP5845351B2 (ja) * 2012-07-06 2016-01-20 ▲華▼▲為▼終端有限公司Huawei Device Co., Ltd. リソース割当方法及び装置
CN103902440B (zh) * 2012-12-25 2018-07-20 腾讯科技(深圳)有限公司 应用程序中的文字检测方法和装置
US9106757B2 (en) * 2013-03-26 2015-08-11 Lg Uplus Corp. Terminal, server, and method for actively providing information based on communication contents
CN105487886A (zh) * 2015-11-24 2016-04-13 小米科技有限责任公司 加载插件的方法及装置
CN105528225A (zh) * 2015-11-30 2016-04-27 用友优普信息技术有限公司 应用程序的加载方法及加载装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9239713B1 (en) * 2013-03-06 2016-01-19 MobileForce Software, Inc. Platform independent rendering for native mobile applications
CN103246533A (zh) * 2013-04-11 2013-08-14 北京小米科技有限责任公司 一种在通讯录中添加插件的方法、装置和设备
CN104298417A (zh) * 2013-07-19 2015-01-21 北京三星通信技术研究有限公司 移动终端管理应用程序的视图的方法及装置
WO2015105499A1 (en) * 2014-01-10 2015-07-16 Citrix Systems, Inc. Providing mobile application management functionalities
CN104133669A (zh) * 2014-06-11 2014-11-05 腾讯科技(深圳)有限公司 一种桌面应用的控制方法及终端设备
CN105183547A (zh) * 2015-08-13 2015-12-23 青岛海信移动通信技术股份有限公司 一种用户界面的任务调度方法和装置

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111343618A (zh) * 2020-02-13 2020-06-26 维沃移动通信有限公司 一种显示方法及电子设备
CN111343618B (zh) * 2020-02-13 2023-11-10 维沃移动通信有限公司 一种显示方法及电子设备
CN113179445A (zh) * 2021-04-15 2021-07-27 腾讯科技(深圳)有限公司 基于互动物品的视频分享方法、互动物品

Also Published As

Publication number Publication date
CN108323236A (zh) 2018-07-24
CN108323236B (zh) 2021-02-12

Similar Documents

Publication Publication Date Title
US10649720B2 (en) Sound effect configuration method and system and related device
WO2016150331A1 (zh) 一种运行游戏客户端的方法和装置
CN109889348B (zh) 一种图像分享方法及装置
CN107102904B (zh) 基于混合应用程序的交互方法及装置
WO2016127795A1 (zh) 业务处理方法、服务器及终端
CN106973330B (zh) 一种屏幕直播方法、装置和系统
US10678942B2 (en) Information processing method and related products
WO2018161353A1 (zh) 一种分享照片的方法和装置
TW201839594A (zh) 行動終端、指紋識別控制方法及裝置
WO2018077041A1 (zh) 应用运行的方法及装置
WO2018049886A1 (zh) 建立热点的方法及终端设备
WO2018196588A1 (zh) 一种信息分享方法、装置和系统
WO2019174541A1 (zh) 移动终端的操作方法及移动终端
JP2018523176A (ja) 車載インフォテインメントとデータを交換するための方法、サーバ、モバイル端末、及び装置
CN106371964B (zh) 一种进行消息提示的方法和装置
WO2018107941A1 (zh) 一种ar场景下的多屏联动方法和系统
WO2016197697A1 (zh) 手势控制方法、装置及系统
WO2018119630A1 (zh) 一种交互方法和终端
CN106406924B (zh) 应用程序启动和退出画面的控制方法、装置及移动终端
WO2017193496A1 (zh) 应用数据的处理方法、装置和终端设备
WO2021078215A1 (zh) 一种云游戏跨终端切换的方法和相关装置
WO2018049885A1 (zh) 一种数据迁移方法及装置
WO2017215661A1 (zh) 一种场景音效的控制方法、及电子设备
WO2019007414A1 (zh) 实现应用程序支持多语言的方法、存储设备及移动终端
CN106708530A (zh) 一种信息处理方法、及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16925710

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16925710

Country of ref document: EP

Kind code of ref document: A1