WO2021104285A1 - Application control method and electronic device - Google Patents

Application control method and electronic device Download PDF

Info

Publication number
WO2021104285A1
WO2021104285A1 PCT/CN2020/131342 CN2020131342W WO2021104285A1 WO 2021104285 A1 WO2021104285 A1 WO 2021104285A1 CN 2020131342 W CN2020131342 W CN 2020131342W WO 2021104285 A1 WO2021104285 A1 WO 2021104285A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
user
input
running interface
target
Prior art date
Application number
PCT/CN2020/131342
Other languages
French (fr)
Chinese (zh)
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 维沃移动通信有限公司
Publication of WO2021104285A1 publication Critical patent/WO2021104285A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4482Procedural

Definitions

  • the embodiments of the present invention relate to the field of communication technologies, and in particular, to an application program control method and electronic equipment.
  • Cooperative application that is, the application of user A's device A can share the application to user B's device B in some way, so that device B can cooperate to operate, not limited to two users, but can also be different between multiple users
  • the cooperation of devices can also be the cooperation between multiple devices of a user.
  • the embodiments of the present invention provide an application control method and electronic device to solve the problem of how the same shared application interacts on two devices to avoid conflicts.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides an application control method applied to a first electronic device, including:
  • the target event includes one of the following:
  • an embodiment of the present invention also provides an application program control method applied to a second electronic device, including:
  • the second user is an operator of the second electronic device
  • the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  • an embodiment of the present invention also provides an electronic device.
  • the electronic device is a first electronic device and includes:
  • the first sending module is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device;
  • the first receiving module receives the first input
  • the first control module is configured to execute a target event in response to the first input
  • the target event includes one of the following:
  • an embodiment of the present invention also provides an electronic device, where the electronic device is a second electronic device and includes:
  • a fourth receiving module configured to receive and display the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device;
  • the third sending module is configured to send the instruction corresponding to the operation of the second user on the running interface to the first electronic device; or,
  • a fifth receiving module configured to receive the first control instruction sent by the first electronic device
  • the second user is an operator of the second electronic device
  • the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  • an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor.
  • the steps of the application program control method as described above are realized during execution.
  • an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the application program control method described above is implemented A step of.
  • embodiments of the present invention also provide a computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the above-mentioned Application control method.
  • an embodiment of the present invention also provides an electronic device configured to execute the application control method described above.
  • the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device Input and execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is the first target operation 2.
  • FIG. 1 is one of the schematic flowcharts of an application control method provided by an embodiment of the present invention
  • FIG. 2 is a second schematic flowchart of an application control method provided by an embodiment of the present invention.
  • FIG. 3 is one of the schematic diagrams of the interactive operation flow between the first electronic device and the second electronic device applying the application control method to share applications between devices according to an embodiment of the present invention
  • FIG. 4 is a second schematic diagram of an interactive operation flow between the first electronic device and the second electronic device applying the application control method to share applications between devices according to an embodiment of the present invention
  • FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 6 is the second structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 it is a schematic flowchart of an application control method provided by an embodiment of the present invention, and the method is applied to a first electronic device.
  • Step 101 When the first electronic device is connected to the second electronic device, send the running interface of the target application to the second electronic device;
  • the first electronic device can be connected to the second electronic device through Bluetooth, WiFi, data communication, etc., and the specific connection method is not limited.
  • the first electronic device is connected to the second electronic device, and the running interface of the target application is sent to the second electronic device, indicating that the first electronic device shares the target application with the second electronic device. It can also be understood that the first electronic device shares the target application with the second electronic device.
  • the first electronic device is the master device, that is, the initiator of application sharing;
  • the second electronic device is the auxiliary device, that is, the receiver that shares the target application with the master device.
  • the running interface of the target application specifically refers to the foreground running interface of the target application, which can generally be understood as a human-computer interaction interface.
  • Step 102 Receive a first input.
  • the first input is a preset input
  • the first input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input.
  • the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
  • this step may specifically include:
  • a first input to a first preset element on the first electronic device is received, where the first preset element is a first preset physical button or a first distance sensor.
  • the first preset physical key may be a single physical key or a combination of two or more physical keys.
  • the first input is a pressing input or a dial input.
  • the first preset element is the first preset physical button and the first preset physical button is a left-right toggle button, if it is detected that the first preset physical button is moved to the left, it is determined This input is the first input; it can also be defined that the dialing input of dialing the first preset physical button to the right is the first input.
  • turning left is 1 and turning right is 0; for example, if "1" is received through the first preset physical button, it is determined that the input to the first preset physical button is First input; or, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is the first input.
  • the first preset element is a first preset physical button and the first preset physical button is an up and down push button, if it is detected that the number of times the first preset physical button is pressed is an odd number of times, it is determined This input is the first input; it can also be defined that the number of times the first preset physical button is pressed is an even number of pressing input as the first input.
  • pressing an odd number of times is 1 and pressing an even number of times is 0; for example, if a "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is First input; or, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is the first input.
  • the first preset element is the first preset physical button and the first preset physical button is a combined button, taking the combined button as two physical buttons as an example, if it is detected that the two physical buttons are pressed at the same time, It is determined that the input is the first input; it is also possible to define the input in which one physical key is pressed and the other physical key is not pressed as the first input, which is set according to the situation here and is not specifically limited.
  • buttons are pressed at the same time as 1, and two physical buttons are pressed at the same time as 0, etc. It can be freely combined and defined.
  • the first input is an input that is close to the first distance sensor, so that the distance between the user and the first electronic device is smaller than the first preset value.
  • Step 103 In response to the first input, execute a target event
  • the target event includes one of the following:
  • the first electronic device when there is a conflict in the interaction of the shared target application on the two electronic devices, by executing the above target event, the first electronic device is prohibited from responding to the second user's operation on the target application, or the second electronic device is controlled.
  • the device shields the operation of the second user on the target application, that is, only allows the first electronic device to respond to the operation of the target application by the first user (the first user is the operator of the first electronic device). In this way, it can avoid Conflict, enhance the user experience.
  • the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device One input is to execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is Operation of the running interface by the second user; sending a first control instruction to the second electronic device, the first control instruction being used to instruct the second electronic device to shield the operation of the running interface by the second user
  • the second user is the operator of the second electronic device.
  • the method of the present invention may further include:
  • the second input is the input of the pre-device, and the second input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input.
  • the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
  • this step may specifically include:
  • the first preset element is the first preset physical button or the first distance sensor.
  • the second input is a pressing input or a dial input that is different from the first input.
  • a preset physical key is determined to be the second input; it is also possible to define a dial input of the first preset physical key to the left as the second input.
  • the second input is different from the first input.
  • turning left is 1 and turning right is 0; for example, if "0" is received through the first preset physical button, it is determined that the input to the first preset physical button is Second input; or, if "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is the second input.
  • the first preset element is the first preset physical button and the first preset physical button is an up and down push button, if it is detected that the number of times the first preset physical button is pressed is an even number of times, it is determined This input is the second input; it can also be defined that the number of times the first preset physical button is pressed is an odd number of pressing input as the second input.
  • pressing an odd number of times is 1 and pressing an even number of times is 0; for example, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is Second input; or, if "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is the second input.
  • the first preset element is the first preset physical button and the first preset physical button is a combined button
  • the combined button as two physical buttons as an example, if it is detected that a physical button is pressed, The input in which another physical key is not pressed is the second input; it is also possible to define two physical keys to be pressed at the same time as the second input, which is set according to the situation and is not specifically limited.
  • buttons are pressed at the same time as 1, and two physical buttons are pressed at the same time as 0, etc. It can be freely combined and defined.
  • the second input is an input that is far away from the first distance sensor so that the distance between the user and the first electronic device is greater than the second preset value.
  • the method of the present invention may further include:
  • the second electronic device has the ability to request the first electronic device to respond to the second user's operation of the target application.
  • step 102 may specifically include:
  • the first input is received within a first preset time after receiving the first request message.
  • the step of receiving the second input may specifically include:
  • the second input is received within a second preset time after receiving the second request message.
  • the first electronic device After that, the first electronic device performs corresponding processing based on the received first input or second input. For details, refer to the above-mentioned embodiment. In this way, when there is a conflict between the shared target application on the two electronic devices, it can be Avoid conflicts and improve user experience.
  • the method of the present invention may further include:
  • Send a second control instruction to the second electronic device where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the second electronic device to send a virtual control to the first electronic device.
  • the electronic device requests a response to the operation of the running interface by the second user.
  • this implementation is mainly for the second electronic device that cannot actively request the first electronic device to respond to the second user's operation of the target application, that is, it does not have the ability to request the first electronic device
  • the second electronic device with the ability of the first electronic device to respond to the operation of the target application by the second user gives the second electronic device the right to initiate a request to the first electronic device, and the first electronic device receives it according to The first request message determines whether to allow the first electronic device to respond to the second user of the second electronic device to operate the target application.
  • the virtual control may be a virtual button or a dialog box, which is used to prompt the user on the second electronic device side to initiate a request to the first electronic device through the virtual control.
  • the method of the present invention may further include:
  • the first input is received within a third preset time after receiving the second request message; or,
  • the second input is received within a fourth preset time after receiving the second request message.
  • the first electronic device After that, the first electronic device performs corresponding processing based on the received first input or second input. For details, refer to the above-mentioned embodiment. In this way, when there is a conflict between the shared target application on the two electronic devices, it can be Avoid conflicts and improve user experience.
  • the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device One input is to execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is Operation of the second user on the running interface; sending a first control instruction to the second electronic device, the first control instruction being used to instruct the second electronic device to shield the operation of the running interface by the second user
  • the second user is the operator of the second electronic device.
  • FIG. 2 it is a schematic flowchart of an application program control method provided by an embodiment of the present invention, and the method is applied to a second electronic device.
  • Step 201 When the second electronic device is connected to the first electronic device, receive and display the running interface of the target application sent by the first electronic device;
  • the second electronic device can be connected to the first electronic device through Bluetooth, WiFi, data communication, etc., and the specific connection method is not limited.
  • the second electronic device is connected to the first electronic device, receives and displays the running interface of the target application sent by the first electronic device, indicating that the first electronic device is the master device, that is, the initiator of application sharing;
  • the device is a secondary device, that is, the receiver that shares the target application with the main device.
  • Step 202 Send an instruction corresponding to the operation of the second user on the running interface to the first electronic device;
  • the instruction corresponding to the operation of the second user on the running interface is sent to the first electronic device, and the first electronic device prohibits or allows the first electronic device to respond to the operation.
  • Step 203 Receive a first control instruction sent by the first electronic device; wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device The operation of the second user on the running interface is shielded.
  • the The first electronic device controls whether to allow the first electronic device to respond to the operation, and when it is prohibited, or, receives a first control instruction sent by the first electronic device, and the first control instruction is used to instruct the second
  • the electronic device shields the second user's operation on the target application's running interface, that is, only allows the first electronic device to respond to its first user's operation on the target application; and when it is allowed, only allows the second electronic device In response to the operation of the target application by the second user, the simple and convenient interaction between the two electronic devices can avoid conflicts and improve the user experience.
  • the first electronic device when the first electronic device is connected to the second electronic device, receiving and displaying the running interface of the target application sent by the first electronic device; and directing the second user to the The instruction corresponding to the operation of the running interface is sent to the first electronic device; or, the first control instruction sent by the first electronic device is received; wherein, the second user is an operator of the second electronic device, The first control instruction is used to instruct the second electronic device to shield the operation of the second user on the running interface.
  • the same shared target application can be The two electronic devices are convenient to interact with each other, and conflicts can be avoided during the interaction, and the user experience is improved.
  • the method may further include:
  • the third input is the input of the pre-device.
  • the third input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input.
  • the third input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
  • this step may specifically include:
  • a third input to a second preset element on the second electronic device is received, where the second preset element is a second preset physical button or a second distance sensor.
  • the second preset physical button the second distance sensor, and the third input
  • the first preset physical button the first distance sensor, and the first input (or the second input) in the above embodiments. Go into details again.
  • a first request message is sent to the first electronic device, where the first request message is used to request the first electronic device to respond to the operation of the running interface by the second user.
  • the second electronic device has the ability to request from the first electronic device that the first electronic device responds to the operation of the target application by the second user.
  • the operating user of the second electronic device ie, the second user
  • the first request message can be sent to the first electronic device through the second electronic device, and the first electronic device determines whether to allow the first electronic device to respond to the second electronic device according to the received first request message
  • the second user operates the target application.
  • the method may further include:
  • the virtual control may be a virtual button or a dialog box, which is used to prompt the user on the second electronic device side to initiate a request to the first electronic device through the virtual control.
  • the virtual control when the fourth input of the user to the virtual control is received, the virtual control is triggered and sends to the first electronic device a request in response to the operation of the second user on the running interface.
  • An electronic device determines whether to allow the first electronic device to respond to the second user of the second electronic device to operate the target application according to the received request.
  • this implementation is for a second electronic device that cannot actively request the first electronic device to respond to the second user's operation of the target application, that is, it does not have the ability to request the first electronic device for the first electronic device.
  • the first electronic device when the first electronic device is connected to the second electronic device, receiving and displaying the running interface of the target application sent by the first electronic device; and directing the second user to the The instruction corresponding to the operation of the running interface is sent to the first electronic device; or, the first control instruction sent by the first electronic device is received; wherein, the second user is an operator of the second electronic device, The first control instruction is used to instruct the second electronic device to shield the operation of the second user on the running interface.
  • the same shared target application can be The two electronic devices are convenient to interact with each other, and conflicts can be avoided during the interaction, and the user experience is improved.
  • Step S1 Connect the first electronic device and the second electronic device through Bluetooth, WiFi, data communication, etc., and the first electronic device sends the running interface of the target application to the second electronic device;
  • Step S2 the first electronic device receives the first input of the first user to the first preset physical key
  • Step S3 the first electronic device executes the target event in response to the first input
  • the target event includes one of the following:
  • Step S4 The first electronic device sends a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the second user on the running interface;
  • Step S5 in the case that the second electronic device receives the second user's click input on the virtual control, sending to the first electronic device a request in response to the second user's operation on the running interface;
  • Step S6 the first electronic device receives the second input of the first user to the first preset physical key
  • Step S7 In response to the second input, the first electronic device prohibits the first electronic device from responding to the operation of the first user on the operating interface, and allows the first electronic device to respond to the operation through the second electronic device.
  • the received second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
  • Step S11 connecting the first electronic device and the second electronic device through Bluetooth, WiFi, data communication, etc., the first electronic device sends the running interface of the target application to the second electronic device;
  • Step S12 the first electronic device receives the first input of the first user to the first distance sensor
  • the first distance sensor is an infrared distance measuring sensor.
  • the first input is an input that is close to the first distance sensor, so that the distance between the user and the first electronic device is smaller than the first preset value.
  • Step S13 when it is detected by the first distance sensor that the distance between the user and the first electronic device is less than the first preset value, execute the target event;
  • the target event includes one of the following:
  • Step S14 The first electronic device sends a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the second user on the running interface;
  • Step S15 in the case that the second electronic device receives the second user's click input on the virtual control, sending to the first electronic device a request in response to the second user's operation on the running interface;
  • Step S16 the first electronic device receives the second input of the first user to the first distance sensor
  • Step S17 When it is detected through the first distance sensor that the distance between the user and the first electronic device is greater than a second preset value, prohibit the first electronic device from responding to the first user's operation on the running interface, and The first electronic device is allowed to respond to a second target operation received through the second electronic device, where the second target operation is an operation of the second user on the running interface, and the first user is The operator of the first electronic device.
  • an embodiment of the present invention provides an electronic device for implementing the above method.
  • FIG. 5 it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • An embodiment of the present invention provides an electronic device 500.
  • the electronic device 500 is a first electronic device.
  • the electronic device 500 may include:
  • the first sending module 501 is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device;
  • the first receiving module 502 receives the first input
  • the first control module 503 is configured to execute a target event in response to the first input
  • the target event includes one of the following:
  • the electronic device 500 may further include:
  • the second receiving module is used to receive the second input
  • the second control module is configured to, in response to the second input, prohibit the first electronic device from responding to the operation of the first user on the operating interface, and allow the first electronic device to respond through the second electronic device
  • the received second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
  • the electronic device 500 may further include:
  • a third receiving module configured to receive a first request message sent by the second electronic device, the first request message being used to request the first electronic device to respond to the second user's operation on the running interface;
  • the first receiving module 502 includes:
  • the first receiving unit is configured to receive a first input within a first preset time after receiving the first request message.
  • the electronic device 500 may further include:
  • the second sending module is configured to send a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the
  • the second electronic device requests the first electronic device to respond to the operation of the running interface by the second user.
  • the first receiving module 502 includes:
  • the second receiving unit is configured to receive a first input to a first preset element on the first electronic device, where the first preset element is a first preset physical button or a first distance sensor.
  • the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment in FIG.
  • the first sending module sends the running interface of the target application to the second electronic device; the first receiving module receives the first electronic device. Input; the first control module executes a target event in response to the first input; wherein the target event includes one of the following: prohibiting the first electronic device from responding to the first electronic device received through the second electronic device A target operation, the first target operation is an operation of a second user on the running interface; a first control instruction is sent to the second electronic device, and the first control instruction is used to instruct the second electronic device
  • the operation of the running interface by the second user is shielded, and the second user is the operator of the second electronic device. In this way, based on a simple input operation, the same shared target application can be used on the two electronic devices. The upper interaction is convenient, and conflicts can be avoided during the interaction, and the user experience can be improved.
  • FIG. 6 it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • An embodiment of the present invention provides an electronic device 600.
  • the electronic device 600 is a second electronic device.
  • the electronic device 600 may include:
  • the fourth receiving module 601 is configured to receive and display the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device;
  • the third sending module 602 is configured to send an instruction corresponding to the operation of the second user on the running interface to the first electronic device; or,
  • the fifth receiving module 603 is configured to receive the first control instruction sent by the first electronic device
  • the second user is an operator of the second electronic device
  • the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  • the electronic device 600 may further include:
  • a sixth receiving module configured to receive a second control instruction sent by the first electronic device
  • a display module configured to display a virtual control on the second electronic device according to the second control instruction
  • the fourth sending module is configured to send to the first electronic device a request in response to the second user's operation on the running interface when the virtual control is triggered.
  • the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of FIG. 2, and to avoid repetition, details are not described herein again.
  • the fourth receiving module receives and displays the running interface of the target application sent by the first electronic device; the third sending module The instruction corresponding to the operation of the second user on the running interface is sent to the first electronic device; or the fifth receiving module receives the first control instruction sent by the first electronic device; wherein, the second user For the operator of the second electronic device, the first control instruction is used to instruct the second electronic device to block the operation of the second user on the running interface.
  • the first electronic device can simply communicate with the first electronic device. The interaction can facilitate the interaction of the same shared target application on the two electronic devices, avoid conflicts during the interaction, and improve the user experience.
  • FIG. 7 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention.
  • the electronic device 700 is a first electronic device or a second electronic device, including but not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, and an interface
  • the electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
  • the processor 710 when the electronic device is the first electronic device, the processor 710 is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device Receiving a first input; in response to the first input, executing a target event; wherein the target event includes one of the following:
  • the processor 710 is configured to receive the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device, and Display; send the instruction corresponding to the operation of the running interface by the second user to the first electronic device; or receive the first control instruction sent by the first electronic device; wherein, the second user is For the operator of the second electronic device, the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  • the radio frequency unit 701 can be used for receiving and sending signals during the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 710; Uplink data is sent to the base station.
  • the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 703 can convert the audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output it as sound. Moreover, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 704 is used to receive audio or video signals.
  • the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042.
  • the graphics processor 7041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 706.
  • the image frame processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or sent via the radio frequency unit 701 or the network module 702.
  • the microphone 7042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 701 for output in the case of a telephone call mode.
  • the electronic device 700 further includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light.
  • the proximity sensor can turn off the display panel 7061 and the display panel 7061 when the electronic device 700 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile electronic devices (such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers , Infrared sensors, etc., I won’t repeat them here.
  • the display unit 706 is used to display information input by the user or information provided to the user.
  • the display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 707 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile electronic device.
  • the user input unit 707 includes a touch panel 7071 and other input devices 7072.
  • the touch panel 7071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 7071 or near the touch panel 7071. operating).
  • the touch panel 7071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 710, the command sent by the processor 710 is received and executed.
  • the touch panel 7071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 707 may also include other input devices 7072.
  • other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 7071 can be overlaid on the display panel 7061.
  • the touch panel 7071 detects a touch operation on or near it, it is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 7061.
  • the touch panel 7071 and the display panel 7061 are used as two independent components to implement the input and output functions of the mobile electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 can be combined. Integrate to realize the input and output functions of mobile electronic devices, and the specifics are not limited here.
  • the interface unit 708 is an interface for connecting an external device and the electronic device 700.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 708 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 700 or can be used to connect the electronic device 700 to an external device. Transfer data between devices.
  • the memory 709 can be used to store software programs and various data.
  • the memory 709 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc.
  • the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 710 is the control center of the mobile electronic device. It uses various interfaces and lines to connect the various parts of the entire mobile electronic device, runs or executes the software programs and/or modules stored in the memory 709, and calls the storage in the memory 709. Data, perform various functions of mobile electronic devices and process data, so as to monitor the mobile electronic devices as a whole.
  • the processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs.
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710.
  • the electronic device 700 may also include a power source 711 (such as a battery) for supplying power to various components.
  • a power source 711 such as a battery
  • the power source 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 700 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 710, a memory 709, and a computer program stored in the memory 709 and running on the processor 710.
  • a processor 710 When the computer program is executed by the processor 710, the foregoing
  • the computer program When the computer program is executed by the processor 710, the foregoing
  • Each process of the embodiment of the application program control method can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned application control method embodiment is realized, and the same The technical effect, in order to avoid repetition, will not be repeated here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.

Landscapes

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

Abstract

The present invention provides an application control method and an electronic device. The method comprises: when a first electronic device and a second electronic device are connected, sending a running interface of a target application to the second electronic device; receiving a first input; and in response to the first input, executing a target event, wherein the target event comprises one of the following: forbidding the first electronic device from responding to a first target operation received by the second electronic device, the first target operation being an operation of a second user on the running interface; and sending a first control instruction to the second electronic device, the first control instruction being used for instructing the second electronic device to shield the operation of the second user on the running interface, and the second user being an operator of the second electronic device.

Description

应用程序控制方法及电子设备Application program control method and electronic equipment
相关申请的交叉引用Cross-references to related applications
本申请主张在2019年11月29日在中国提交的中国专利申请号No.201911198759.4的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201911198759.4 filed in China on November 29, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本发明实施例涉及通信技术领域,尤其涉及一种应用程序控制方法及电子设备。The embodiments of the present invention relate to the field of communication technologies, and in particular, to an application program control method and electronic equipment.
背景技术Background technique
随着科技的发展和人们生活水平的提高,多个用户的不同设备(如手机,平板电脑,智能手环,笔记本电脑)之间或者同一用户的多个不同设备之间都存在共享或者协作的需求,基于此,目前形成一种协助应用的新的交互方式。With the development of technology and the improvement of people’s living standards, there is sharing or collaboration between different devices of multiple users (such as mobile phones, tablets, smart bracelets, laptops) or between multiple different devices of the same user Demands, based on this, currently form a new interactive way to assist applications.
协作应用,即用户A的设备A的应用可以通过某种方式把应用共享到用户B的设备B中,以便设备B可以协作进行操作,不限于两个用户,也可以是多个用户之间不同设备的协作,也可以是一个用户多个设备之间的协作。Cooperative application, that is, the application of user A's device A can share the application to user B's device B in some way, so that device B can cooperate to operate, not limited to two users, but can also be different between multiple users The cooperation of devices can also be the cooperation between multiple devices of a user.
这样在同一应用在同一时间段可能会存在操作冲突的情况,举个例子,如视频类的应用,用户A在设备A上,需要暂停播放,用户B在设备B上需要快进,这样在同一时间段,应用就会无法响应这两个用户的需求,造成应用卡顿,奔溃等问题,影响用户的体验。再比如,对于编辑器之类的应用,两个人同时编辑的时候也会发生错乱等问题。还比如,游戏类的操作控制以及画面切换等更是在两个人的操作下发生异常,影响用户的体验。In this way, there may be operational conflicts in the same application at the same time period. For example, for video applications, user A needs to pause playback on device A, and user B needs to fast forward on device B. During the time period, the application will not be able to respond to the needs of these two users, causing problems such as application freezes and crashes, affecting the user experience. For another example, for applications such as editors, problems such as confusion may also occur when two people are editing at the same time. For example, the operation control and screen switching of games are abnormal under the operation of two people, which affects the user experience.
所以,同一个共享应用在两个设备上如何交互,避免冲突,成为亟需解决的问题。Therefore, how to interact with the same shared application on two devices and avoid conflicts has become an urgent problem to be solved.
发明内容Summary of the invention
本发明实施例提供一种应用程序控制方法及电子设备,以解决现有同一 个共享应用在两个设备上如何交互以避免冲突的问题。The embodiments of the present invention provide an application control method and electronic device to solve the problem of how the same shared application interacts on two devices to avoid conflicts.
为了解决上述技术问题,本发明是这样实现的:In order to solve the above technical problems, the present invention is implemented as follows:
第一方面,本发明的实施例提供了一种应用程序控制方法,应用于第一电子设备,包括:In the first aspect, an embodiment of the present invention provides an application control method applied to a first electronic device, including:
在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;When the first electronic device is connected to the second electronic device, sending the running interface of the target application to the second electronic device;
接收第一输入;Receive the first input;
响应于所述第一输入,执行目标事件;In response to the first input, execute a target event;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
第二方面,本发明的实施例还提供了一种应用程序控制方法,应用于第二电子设备,包括:In the second aspect, an embodiment of the present invention also provides an application program control method applied to a second electronic device, including:
在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;When the second electronic device is connected to the first electronic device, receiving and displaying the running interface of the target application sent by the first electronic device;
将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,接收所述第一电子设备发送的第一控制指令;Sending an instruction corresponding to the operation of the running interface by the second user to the first electronic device; or receiving a first control instruction sent by the first electronic device;
其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
第三方面,本发明实施例还提供了一种电子设备,所述电子设备为第一电子设备,包括:In a third aspect, an embodiment of the present invention also provides an electronic device. The electronic device is a first electronic device and includes:
第一发送模块,用于在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;The first sending module is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device;
第一接收模块,接收第一输入;The first receiving module receives the first input;
第一控制模块,用于响应于所述第一输入,执行目标事件;The first control module is configured to execute a target event in response to the first input;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
第四方面,本发明实施例还提供了一种电子设备,所述电子设备为第二电子设备,包括:In a fourth aspect, an embodiment of the present invention also provides an electronic device, where the electronic device is a second electronic device and includes:
第四接收模块,用于在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;A fourth receiving module, configured to receive and display the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device;
第三发送模块,用于将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,The third sending module is configured to send the instruction corresponding to the operation of the second user on the running interface to the first electronic device; or,
第五接收模块,用于接收所述第一电子设备发送的第一控制指令;A fifth receiving module, configured to receive the first control instruction sent by the first electronic device;
其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
第五方面,本发明实施例还提供了一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述的应用程序控制方法的步骤。In a fifth aspect, an embodiment of the present invention also provides an electronic device, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. The steps of the application program control method as described above are realized during execution.
第六方面,本发明实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的应用程序控制方法的步骤。In a sixth aspect, an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the application program control method described above is implemented A step of.
第七方面,本发明实施例还提供了一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如上所述的应用程序控制方法。In a seventh aspect, embodiments of the present invention also provide a computer program product, the computer program product is stored in a non-volatile storage medium, and the computer program product is executed by at least one processor to implement the above-mentioned Application control method.
第八方面,本发明实施例还提供了一种电子设备,所述电子设备被配置成用于执行如上所述的应用程序控制方法。In an eighth aspect, an embodiment of the present invention also provides an electronic device configured to execute the application control method described above.
本发明实施例的上述方案中,在第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;接收第一输入;响应于所述第一输入,执行目标事件;其中,所述目标事件包括以下中的一种:禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操 作,所述第一目标操作为第二用户对所述运行界面的操作;向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者,如此,基于简单地输入操作,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the above solution of the embodiment of the present invention, when the first electronic device is connected to the second electronic device, the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device Input and execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is the first target operation 2. A user's operation on the running interface; sending a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield the second user's operation on the running interface, The second user is the operator of the second electronic device. In this way, based on a simple input operation, the same shared target application can be easily interacted on the two electronic devices, and conflicts can be avoided during the interaction, Improve the user experience.
附图说明Description of the drawings
为了更清楚地说明本公开实施例的技术方案,下面将对本公开实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present disclosure more clearly, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1为本发明实施例提供的应用程序控制方法的流程示意图之一;FIG. 1 is one of the schematic flowcharts of an application control method provided by an embodiment of the present invention;
图2为本发明实施例提供的应用程序控制方法的流程示意图之二;2 is a second schematic flowchart of an application control method provided by an embodiment of the present invention;
图3为本发明实施例第一电子设备与第二电子设备应用该应用程序控制方法进行设备之间共享应用的交互操作流程示意图之一;FIG. 3 is one of the schematic diagrams of the interactive operation flow between the first electronic device and the second electronic device applying the application control method to share applications between devices according to an embodiment of the present invention;
图4为本发明实施例第一电子设备与第二电子设备应用该应用程序控制方法进行设备之间共享应用的交互操作流程示意图之二;FIG. 4 is a second schematic diagram of an interactive operation flow between the first electronic device and the second electronic device applying the application control method to share applications between devices according to an embodiment of the present invention;
图5为本发明实施例提供的电子设备的结构示意图之一;FIG. 5 is one of the schematic structural diagrams of an electronic device provided by an embodiment of the present invention;
图6为本发明实施例提供的电子设备的结构示意图之二;FIG. 6 is the second structural diagram of an electronic device provided by an embodiment of the present invention;
图7为本发明实施例提供的电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
如图1所示,为本发明实施例提供的应用程序控制方法的流程示意图,该方法应用于第一电子设备。As shown in FIG. 1, it is a schematic flowchart of an application control method provided by an embodiment of the present invention, and the method is applied to a first electronic device.
下面具体说明本发明方法的实施过程,具体包括:The following specifically describes the implementation process of the method of the present invention, which specifically includes:
步骤101,在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;Step 101: When the first electronic device is connected to the second electronic device, send the running interface of the target application to the second electronic device;
这里,第一电子设备可通过蓝牙、WiFi、数据通信等方式连接第二电子设备,具体连接方式不限。Here, the first electronic device can be connected to the second electronic device through Bluetooth, WiFi, data communication, etc., and the specific connection method is not limited.
本步骤中,第一电子设备与第二电子设备连接,发送目标应用程序的运行界面至所述第二电子设备,说明第一电子设备分享目标应用程序至第二电子设备。也可以理解为,第一电子设备与第二电子设备共享目标应用程序。In this step, the first electronic device is connected to the second electronic device, and the running interface of the target application is sent to the second electronic device, indicating that the first electronic device shares the target application with the second electronic device. It can also be understood that the first electronic device shares the target application with the second electronic device.
需要说明的是,第一电子设备为主设备,即应用共享的发起方;第二电子设备为辅设备,即为主设备将目标应用程序共享出去的接收方。It should be noted that the first electronic device is the master device, that is, the initiator of application sharing; the second electronic device is the auxiliary device, that is, the receiver that shares the target application with the master device.
这里,目标应用程序的运行界面具体是指目标应用程序的前台运行界面,一般可以理解为人机交互界面。Here, the running interface of the target application specifically refers to the foreground running interface of the target application, which can generally be understood as a human-computer interaction interface.
步骤102,接收第一输入。Step 102: Receive a first input.
这里,第一输入为预先设置的输入,该第一输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。Here, the first input is a preset input, and the first input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input. In other words, the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
可选地,本步骤可具体包括:Optionally, this step may specifically include:
接收对所述第一电子设备上第一预设元件的第一输入,所述第一预设元件为第一预设实体按键或者第一距离传感器。A first input to a first preset element on the first electronic device is received, where the first preset element is a first preset physical button or a first distance sensor.
需要说明的是,第一预设实体按键可以为单一的实体按键,也可以为两个或者多个实体按键组合。It should be noted that the first preset physical key may be a single physical key or a combination of two or more physical keys.
较优地,在第一预设元件为第一预设实体按键的情况下,第一输入为按压输入或者拨动输入。Preferably, when the first preset element is a first preset physical button, the first input is a pressing input or a dial input.
举例说明,第一预设元件为第一预设实体按键且第一预设实体按键为左右拨动式按键的情况下,若检测到向左拨动所述第一预设实体按键,则确定该输入为第一输入;也可以定义向右拨动所述第一预设实体按键的拨动输入为第一输入。For example, in a case where the first preset element is the first preset physical button and the first preset physical button is a left-right toggle button, if it is detected that the first preset physical button is moved to the left, it is determined This input is the first input; it can also be defined that the dialing input of dialing the first preset physical button to the right is the first input.
另外,还可通过软件定义,向左拨动为1,向右拨动为0;比如,若通过第一预设实体按键接收到“1”,则确定对第一预设实体按键的输入为第一输 入;或者,通过第一预设实体按键接收到“0”,则确定对第一预设实体按键的输入为第一输入。In addition, it can also be defined by software, turning left is 1 and turning right is 0; for example, if "1" is received through the first preset physical button, it is determined that the input to the first preset physical button is First input; or, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is the first input.
在第一预设元件为第一预设实体按键且第一预设实体按键为上下按压式按键的情况下,若检测到按下所述第一预设实体按键的次数为奇数次,则确定该输入为第一输入;也可以定义按下所述第一预设实体按键的次数为偶数次按压输入为第一输入。In the case where the first preset element is a first preset physical button and the first preset physical button is an up and down push button, if it is detected that the number of times the first preset physical button is pressed is an odd number of times, it is determined This input is the first input; it can also be defined that the number of times the first preset physical button is pressed is an even number of pressing input as the first input.
另外,还可通过软件定义,按下奇数次为1,按下偶数次为0;比如,若通过第一预设实体按键接收到“1”,则确定对第一预设实体按键的输入为第一输入;或者,通过第一预设实体按键接收到“0”,则确定对第一预设实体按键的输入为第一输入。In addition, it can also be defined by software. Pressing an odd number of times is 1 and pressing an even number of times is 0; for example, if a "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is First input; or, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is the first input.
第一预设元件为第一预设实体按键且第一预设实体按键为组合式按键的情况下,以组合式按键为两个实体按键为例,若检测到两个实体按键同时按下,则确定该输入为第一输入;也可定义一个实体按键被按下,另一个实体按键没被按下的输入为第一输入,这里视情况而设定,不做具体限定。In the case where the first preset element is the first preset physical button and the first preset physical button is a combined button, taking the combined button as two physical buttons as an example, if it is detected that the two physical buttons are pressed at the same time, It is determined that the input is the first input; it is also possible to define the input in which one physical key is pressed and the other physical key is not pressed as the first input, which is set according to the situation here and is not specifically limited.
还有,也可通过软件定义,两个实体按键同时按下为1,两个实体按键同时按下为0等可以自由组合定义。In addition, it can also be defined by software, two physical buttons are pressed at the same time as 1, and two physical buttons are pressed at the same time as 0, etc. It can be freely combined and defined.
在第一预设元件为第一距离传感器的情况下,第一输入为靠近所述第一距离传感器,使用户与所述第一电子设备之间的距离小于第一预设值的输入。In a case where the first preset element is a first distance sensor, the first input is an input that is close to the first distance sensor, so that the distance between the user and the first electronic device is smaller than the first preset value.
步骤103,响应于所述第一输入,执行目标事件;Step 103: In response to the first input, execute a target event;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
本步骤中,在共享的目标应用程序在该两个电子设备上交互存在冲突时,通过执行上述目标事件,禁止第一电子设备响应第二用户对目标应用程序的操作,或者,控制第二电子设备屏蔽第二用户对目标应用程序的操作,也就是,仅允许第一电子设备响应第一用户(该第一用户为第一电子设备的操作 者)对目标应用程序的操作,如此,能够避免冲突,提升用户的使用体验。In this step, when there is a conflict in the interaction of the shared target application on the two electronic devices, by executing the above target event, the first electronic device is prohibited from responding to the second user's operation on the target application, or the second electronic device is controlled. The device shields the operation of the second user on the target application, that is, only allows the first electronic device to respond to the operation of the target application by the first user (the first user is the operator of the first electronic device). In this way, it can avoid Conflict, enhance the user experience.
本发明实施例的应用程序控制方法,在第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;接收第一输入;响应于所述第一输入,执行目标事件;其中,所述目标事件包括以下中的一种:禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者,如此,基于简单地输入操作,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the application control method of the embodiment of the present invention, when the first electronic device is connected to the second electronic device, the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device One input is to execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is Operation of the running interface by the second user; sending a first control instruction to the second electronic device, the first control instruction being used to instruct the second electronic device to shield the operation of the running interface by the second user The second user is the operator of the second electronic device. In this way, based on a simple input operation, the same shared target application can be easily interacted on the two electronic devices, and conflicts can be avoided during the interaction , To enhance the user experience.
基于图1所示的实施例,作为可选的实现方式,本发明方法在步骤101之后,还可包括:Based on the embodiment shown in FIG. 1, as an optional implementation manner, after step 101, the method of the present invention may further include:
接收第二输入;Receive the second input;
这里,第二输入为预先设备的输入,该第二输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第一输入可以为上述输入中的其中一种,或者也可以为其中两种或以上输入的组合输入。Here, the second input is the input of the pre-device, and the second input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input. In other words, the first input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
可选地,本步骤可具体包括:Optionally, this step may specifically include:
接收对所述第一电子设备上所述第一预设元件的第二输入,所述第一预设元件为所述第一预设实体按键或者所述第一距离传感器。Receiving a second input to the first preset element on the first electronic device, where the first preset element is the first preset physical button or the first distance sensor.
较优地,在所述第一预设元件为所述第一预设实体按键的情况下,第二输入为不同于第一输入的按压输入或者拨动输入。Preferably, in a case where the first preset element is the first preset physical key, the second input is a pressing input or a dial input that is different from the first input.
仍以上述实施例中的例子说明,第一预设元件为第一预设实体按键且第一预设实体按键为左右拨动式按键的情况下,若检测到向右拨动所述第一预设实体按键,则确定该输入为第二输入;也可以定义向左拨动所述第一预设实体按键的拨动输入为第二输入。原则上是第二输入与第一输入不同。Still taking the example in the above-mentioned embodiment to illustrate, in the case where the first preset element is the first preset physical button and the first preset physical button is the left-right toggle button, if it is detected that the first preset element is moved to the right, A preset physical key is determined to be the second input; it is also possible to define a dial input of the first preset physical key to the left as the second input. In principle, the second input is different from the first input.
另外,还可通过软件定义,向左拨动为1,向右拨动为0;比如,若通过第一预设实体按键接收到“0”,则确定对第一预设实体按键的输入为第二输 入;或者,通过第一预设实体按键接收到“1”,则确定对第一预设实体按键的输入为第二输入。In addition, it can also be defined by software, turning left is 1 and turning right is 0; for example, if "0" is received through the first preset physical button, it is determined that the input to the first preset physical button is Second input; or, if "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is the second input.
在第一预设元件为第一预设实体按键且第一预设实体按键为上下按压式按键的情况下,若检测到按下所述第一预设实体按键的次数为偶数次,则确定该输入为第二输入;也可以定义按下所述第一预设实体按键的次数为奇数次按压输入为第二输入。In the case that the first preset element is the first preset physical button and the first preset physical button is an up and down push button, if it is detected that the number of times the first preset physical button is pressed is an even number of times, it is determined This input is the second input; it can also be defined that the number of times the first preset physical button is pressed is an odd number of pressing input as the second input.
另外,还可通过软件定义,按下奇数次为1,按下偶数次为0;比如,若通过第一预设实体按键接收到“0”,则确定对第一预设实体按键的输入为第二输入;或者,通过第一预设实体按键接收到“1”,则确定对第一预设实体按键的输入为第二输入。In addition, it can also be defined by software. Pressing an odd number of times is 1 and pressing an even number of times is 0; for example, if "0" is received through the first preset physical key, it is determined that the input to the first preset physical key is Second input; or, if "1" is received through the first preset physical key, it is determined that the input to the first preset physical key is the second input.
在第一预设元件为第一预设实体按键且第一预设实体按键为组合式按键的情况下,以组合式按键为两个实体按键为例,若检测到一个实体按键被按下,另一个实体按键没被按下的输入为第二输入;也可以定义两个实体按键同时按下为第二输入,这里视情况而设定,不做具体限定。In the case where the first preset element is the first preset physical button and the first preset physical button is a combined button, taking the combined button as two physical buttons as an example, if it is detected that a physical button is pressed, The input in which another physical key is not pressed is the second input; it is also possible to define two physical keys to be pressed at the same time as the second input, which is set according to the situation and is not specifically limited.
还有,也可通过软件定义,两个实体按键同时按下为1,两个实体按键同时按下为0等可以自由组合定义。In addition, it can also be defined by software, two physical buttons are pressed at the same time as 1, and two physical buttons are pressed at the same time as 0, etc. It can be freely combined and defined.
在第一预设元件为第一距离传感器的情况下,第二输入为远离所述第一距离传感器,使用户与所述第一电子设备之间的距离大于第二预设值的输入。In the case where the first preset element is a first distance sensor, the second input is an input that is far away from the first distance sensor so that the distance between the user and the first electronic device is greater than the second preset value.
响应于所述第二输入,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所述运行界面的操作,所述第一用户为所述第一电子设备的操作者。In response to the second input, prohibit the first electronic device from responding to the operation of the first user on the running interface, and allow the first electronic device to respond to the second target operation received through the second electronic device , The second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
本步骤中,在共享的目标应用程序在该两个电子设备上交互存在冲突时,通过第一电子设备的控制,控制自身禁止响应第一用户对目标应用程序的操作,并允许第一电子设备响应第二用户对目标应用程序的操作,也就是,仅允许第一电子设备响应第二用户对目标应用程序的操作,如此,能够避免冲突,提升用户的使用体验。In this step, when there is a conflict in the interaction of the shared target application on the two electronic devices, through the control of the first electronic device, the control itself prohibits responding to the operation of the target application by the first user, and allows the first electronic device Respond to the operation of the target application by the second user, that is, only allow the first electronic device to respond to the operation of the target application by the second user. In this way, conflicts can be avoided and the user experience can be improved.
基于图1所示的实施例,作为一可选的实现方式,在步骤101之后,本发明方法还可包括:Based on the embodiment shown in FIG. 1, as an optional implementation, after step 101, the method of the present invention may further include:
接收所述第二电子设备发送的第一请求消息,所述第一请求消息用于请求所述第一电子设备响应所述第二用户对所述运行界面的操作;Receiving a first request message sent by the second electronic device, where the first request message is used to request the first electronic device to respond to the second user's operation on the running interface;
需要说明的是,第二电子设备具备向第一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的能力。It should be noted that the second electronic device has the ability to request the first electronic device to respond to the second user's operation of the target application.
相应地,步骤102可具体包括:Correspondingly, step 102 may specifically include:
在接收到所述第一请求消息后的第一预设时间内接收到第一输入。The first input is received within a first preset time after receiving the first request message.
或者,相应地,接收第二输入的步骤可具体包括:Or, correspondingly, the step of receiving the second input may specifically include:
在接收到所述第二请求消息后的第二预设时间内接收到第二输入。The second input is received within a second preset time after receiving the second request message.
之后,第一电子设备基于接收到的第一输入或者第二输入,执行相应地处理,具体参见上述实施例,如此,在共享的目标应用程序在该两个电子设备上交互存在冲突时,能够避免冲突,提升用户的使用体验。After that, the first electronic device performs corresponding processing based on the received first input or second input. For details, refer to the above-mentioned embodiment. In this way, when there is a conflict between the shared target application on the two electronic devices, it can be Avoid conflicts and improve user experience.
基于图1所示的实施例,作为一可选的实现方式,在步骤103之后,本发明的方法还可包括:Based on the embodiment shown in FIG. 1, as an optional implementation, after step 103, the method of the present invention may further include:
向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作。Send a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the second electronic device to send a virtual control to the first electronic device. The electronic device requests a response to the operation of the running interface by the second user.
这里,本实现方式主要是针对不能够主动向第一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的第二电子设备而言,即不具备向第一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的能力的第二电子设备,通过本实现方式,给予第二电子设备向第一电子设备发起请求的权利,由第一电子设备根据接收到的第一请求消息决定是否允许该第一电子设备自身响应第二电子设备的第二用户操作目标应用程序。Here, this implementation is mainly for the second electronic device that cannot actively request the first electronic device to respond to the second user's operation of the target application, that is, it does not have the ability to request the first electronic device The second electronic device with the ability of the first electronic device to respond to the operation of the target application by the second user, through this implementation, gives the second electronic device the right to initiate a request to the first electronic device, and the first electronic device receives it according to The first request message determines whether to allow the first electronic device to respond to the second user of the second electronic device to operate the target application.
这里,虚拟控件可以是虚拟按钮或者对话框,用于提示第二电子设备侧的用户可通过此虚拟控件向第一电子设备发起请求。Here, the virtual control may be a virtual button or a dialog box, which is used to prompt the user on the second electronic device side to initiate a request to the first electronic device through the virtual control.
基于此,向所述第二电子设备发送第二控制指令之后,本发明的方法还可包括:Based on this, after sending the second control instruction to the second electronic device, the method of the present invention may further include:
接收所述第二电子设备通过所述虚拟控件发送的第二请求消息,所述第二请求消息于请求所述第一电子设备响应所述第二用户对所述运行界面的操作;Receiving a second request message sent by the second electronic device through the virtual control, the second request message requesting the first electronic device to respond to the operation of the running interface by the second user;
在接收到所述第二请求消息后的第三预设时间内接收到第一输入;或者,The first input is received within a third preset time after receiving the second request message; or,
在接收到所述第二请求消息后的第四预设时间内接收到第二输入。The second input is received within a fourth preset time after receiving the second request message.
之后,第一电子设备基于接收到的第一输入或者第二输入,执行相应地处理,具体参见上述实施例,如此,在共享的目标应用程序在该两个电子设备上交互存在冲突时,能够避免冲突,提升用户的使用体验。After that, the first electronic device performs corresponding processing based on the received first input or second input. For details, refer to the above-mentioned embodiment. In this way, when there is a conflict between the shared target application on the two electronic devices, it can be Avoid conflicts and improve user experience.
本发明实施例的应用程序控制方法,在第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;接收第一输入;响应于所述第一输入,执行目标事件;其中,所述目标事件包括以下中的一种:禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者,如此,基于简单地输入操作,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the application control method of the embodiment of the present invention, when the first electronic device is connected to the second electronic device, the running interface of the target application is sent to the second electronic device; the first input is received; in response to the first electronic device One input is to execute a target event; wherein, the target event includes one of the following: prohibiting the first electronic device from responding to the first target operation received through the second electronic device, and the first target operation is Operation of the second user on the running interface; sending a first control instruction to the second electronic device, the first control instruction being used to instruct the second electronic device to shield the operation of the running interface by the second user The second user is the operator of the second electronic device. In this way, based on a simple input operation, the same shared target application can be easily interacted on the two electronic devices, and conflicts can be avoided during the interaction , To enhance the user experience.
如图2所示,为本发明实施例提供的应用程序控制方法的流程示意图,该方法应用于第二电子设备。As shown in FIG. 2, it is a schematic flowchart of an application program control method provided by an embodiment of the present invention, and the method is applied to a second electronic device.
下面具体说明本发明方法的实施过程,具体包括:The following specifically describes the implementation process of the method of the present invention, which specifically includes:
步骤201,在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;Step 201: When the second electronic device is connected to the first electronic device, receive and display the running interface of the target application sent by the first electronic device;
这里,第二电子设备可通过蓝牙、WiFi、数据通信等方式连接第一电子设备,具体连接方式不限。Here, the second electronic device can be connected to the first electronic device through Bluetooth, WiFi, data communication, etc., and the specific connection method is not limited.
本步骤中,第二电子设备与第一电子设备连接,接收第一电子设备发送的目标应用程序的运行界面并显示,说明第一电子设备为主设备,即应用共享的发起方;第二电子设备为辅设备,即为主设备将目标应用程序共享出去的接收方。In this step, the second electronic device is connected to the first electronic device, receives and displays the running interface of the target application sent by the first electronic device, indicating that the first electronic device is the master device, that is, the initiator of application sharing; The device is a secondary device, that is, the receiver that shares the target application with the main device.
步骤202,将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;Step 202: Send an instruction corresponding to the operation of the second user on the running interface to the first electronic device;
本步骤中,将第二用户对所述运行界面的操作对应的指令发送至所述第 一电子设备,由所述第一电子设备禁止或者允许所述第一电子设备响应该操作。In this step, the instruction corresponding to the operation of the second user on the running interface is sent to the first electronic device, and the first electronic device prohibits or allows the first electronic device to respond to the operation.
或者,or,
步骤203,接收所述第一电子设备发送的第一控制指令;其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Step 203: Receive a first control instruction sent by the first electronic device; wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device The operation of the second user on the running interface is shielded.
这里,在共享的应用目标应用程序在该两个电子设备上交互存在冲突时,通过将第二用户对目标应用程序的运行界面的操作对应的指令发送至所述第一电子设备,由所述第一电子设备控制是否允许所述第一电子设备响应该操作,在为禁止时,或者,接收所述第一电子设备发送的第一控制指令,该第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对目标应用程序的运行界面的操作,即仅允许第一电子设备响应其第一用户对目标应用程序的操作;而在为允许时,即仅允许第二电子设备响应其第二用户对目标应用程序的操作,通过两个电子设备简单便捷的交互,能够避免冲突,提升用户的使用体验。Here, when there is a conflict in the interaction of the shared application target application on the two electronic devices, by sending the instruction corresponding to the operation of the second user on the running interface of the target application to the first electronic device, the The first electronic device controls whether to allow the first electronic device to respond to the operation, and when it is prohibited, or, receives a first control instruction sent by the first electronic device, and the first control instruction is used to instruct the second The electronic device shields the second user's operation on the target application's running interface, that is, only allows the first electronic device to respond to its first user's operation on the target application; and when it is allowed, only allows the second electronic device In response to the operation of the target application by the second user, the simple and convenient interaction between the two electronic devices can avoid conflicts and improve the user experience.
本发明实施例的应用程序控制方法,在第一电子设备与第二电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,接收所述第一电子设备发送的第一控制指令;其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作,如此,通过与第一电子设备简单地交互,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the application control method of the embodiment of the present invention, when the first electronic device is connected to the second electronic device, receiving and displaying the running interface of the target application sent by the first electronic device; and directing the second user to the The instruction corresponding to the operation of the running interface is sent to the first electronic device; or, the first control instruction sent by the first electronic device is received; wherein, the second user is an operator of the second electronic device, The first control instruction is used to instruct the second electronic device to shield the operation of the second user on the running interface. In this way, by simply interacting with the first electronic device, the same shared target application can be The two electronic devices are convenient to interact with each other, and conflicts can be avoided during the interaction, and the user experience is improved.
基于图2所示的实施例,作为一可选的实现方式,在步骤202之后或者步骤203之后,所述方法还可包括:Based on the embodiment shown in FIG. 2, as an optional implementation manner, after step 202 or after step 203, the method may further include:
接收第三输入;Receive the third input;
这里,第三输入为预先设备的输入,该第三输入可以包括但不限于点击输入、按压输入、长按输入、捏合输入、拖拽输入、滑动输入和划动输入中的至少一种,也即是说,该第三输入可以为上述输入中的其中一种,或者也 可以为其中两种或以上输入的组合输入。Here, the third input is the input of the pre-device. The third input may include, but is not limited to, at least one of click input, press input, long press input, pinch input, drag input, slide input, and swipe input. In other words, the third input may be one of the foregoing inputs, or may also be a combined input of two or more of the inputs.
可选地,本步骤可具体包括:Optionally, this step may specifically include:
接收对所述第二电子设备上第二预设元件的第三输入,所述第二预设元件为第二预设实体按键或者第二距离传感器。A third input to a second preset element on the second electronic device is received, where the second preset element is a second preset physical button or a second distance sensor.
这里,关于第二预设实体按键、第二距离传感器以及第三输入可具体参考上述实施例中的第一预设实体按键、第一距离传感器以及第一输入(或者第二输入),这里不再赘述。Here, for the second preset physical button, the second distance sensor, and the third input, please refer to the first preset physical button, the first distance sensor, and the first input (or the second input) in the above embodiments. Go into details again.
响应于所述第三输入,向所述第一电子设备发送第一请求消息,所述第一请求消息用于请求所述第一电子设备响应所述第二用户对所述运行界面的操作。In response to the third input, a first request message is sent to the first electronic device, where the first request message is used to request the first electronic device to respond to the operation of the running interface by the second user.
本步骤中,第二电子设备具备向第一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的能力,当第二电子设备的操作用户(即第二用户)想要操作目标应用程序时,可通过第二电子设备向第一电子设备发送该第一请求消息,由第一电子设备根据接收到的第一请求消息决定是否允许该第一电子设备自身响应第二电子设备的第二用户操作目标应用程序。In this step, the second electronic device has the ability to request from the first electronic device that the first electronic device responds to the operation of the target application by the second user. When the operating user of the second electronic device (ie, the second user) wants to operate For the target application, the first request message can be sent to the first electronic device through the second electronic device, and the first electronic device determines whether to allow the first electronic device to respond to the second electronic device according to the received first request message The second user operates the target application.
基于图2所示的实施例,作为一可选的实现方式,在步骤202之后或者步骤203之后,所述方法还可包括:Based on the embodiment shown in FIG. 2, as an optional implementation manner, after step 202 or after step 203, the method may further include:
接收所述第一电子设备发送的第二控制指令;Receiving a second control instruction sent by the first electronic device;
根据所述第二控制指令,在所述第二电子设备上显示虚拟控件;Displaying a virtual control on the second electronic device according to the second control instruction;
这里,虚拟控件可以是虚拟按钮或者对话框,用于提示第二电子设备侧的用户可通过此虚拟控件向第一电子设备发起请求。Here, the virtual control may be a virtual button or a dialog box, which is used to prompt the user on the second electronic device side to initiate a request to the first electronic device through the virtual control.
在所述虚拟控件被触发的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求。When the virtual control is triggered, sending a request to the first electronic device in response to the second user's operation on the running interface.
这里,在接收到用户对所述虚拟控件的第四输入时,所述虚拟控件被触发,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求,之后,由第一电子设备根据接收到的该请求决定是否允许该第一电子设备自身响应第二电子设备的第二用户操作目标应用程序。Here, when the fourth input of the user to the virtual control is received, the virtual control is triggered and sends to the first electronic device a request in response to the operation of the second user on the running interface. An electronic device determines whether to allow the first electronic device to respond to the second user of the second electronic device to operate the target application according to the received request.
这里,本实现方式是针对不能够主动向第一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的第二电子设备而言,即不具备向第 一电子设备请求该第一电子设备响应第二用户对目标应用程序的操作的能力的电子设备,通过本实现方式,第二电子设备获得了向第一电子设备发起请求的权利。Here, this implementation is for a second electronic device that cannot actively request the first electronic device to respond to the second user's operation of the target application, that is, it does not have the ability to request the first electronic device for the first electronic device. An electronic device capable of responding to the operation of the target application by the second user. Through this implementation, the second electronic device obtains the right to initiate a request to the first electronic device.
本发明实施例的应用程序控制方法,在第一电子设备与第二电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,接收所述第一电子设备发送的第一控制指令;其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作,如此,通过与第一电子设备简单地交互,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the application control method of the embodiment of the present invention, when the first electronic device is connected to the second electronic device, receiving and displaying the running interface of the target application sent by the first electronic device; and directing the second user to the The instruction corresponding to the operation of the running interface is sent to the first electronic device; or, the first control instruction sent by the first electronic device is received; wherein, the second user is an operator of the second electronic device, The first control instruction is used to instruct the second electronic device to shield the operation of the second user on the running interface. In this way, by simply interacting with the first electronic device, the same shared target application can be The two electronic devices are convenient to interact with each other, and conflicts can be avoided during the interaction, and the user experience is improved.
下面就两个示例简要说明第一电子设备与第二电子设备应用该应用程序控制方法进行设备之间共享应用程序的交互操作流程。The following two examples briefly describe the interactive operation process of the first electronic device and the second electronic device applying the application control method to share the application between the devices.
示例一Example one
如图3所示,具体的交互流程如下:As shown in Figure 3, the specific interaction process is as follows:
步骤S1,通过蓝牙、WiFi、数据通信等方式连接第一电子设备与第二电子设备,第一电子设备发送目标应用程序的运行界面至第二电子设备;Step S1: Connect the first electronic device and the second electronic device through Bluetooth, WiFi, data communication, etc., and the first electronic device sends the running interface of the target application to the second electronic device;
步骤S2,第一电子设备接收第一用户对第一预设实体按键的第一输入;Step S2, the first electronic device receives the first input of the first user to the first preset physical key;
步骤S3,第一电子设备响应于第一输入,执行目标事件;Step S3, the first electronic device executes the target event in response to the first input;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
步骤S4,第一电子设备向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作;Step S4: The first electronic device sends a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the second user on the running interface;
步骤S5,在第二电子设备接收到第二用户对所述虚拟控件的点击输入的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求;Step S5, in the case that the second electronic device receives the second user's click input on the virtual control, sending to the first electronic device a request in response to the second user's operation on the running interface;
本步骤之后,返回执行步骤S1或者返回执行S6。After this step, return to step S1 or return to step S6.
步骤S6,第一电子设备接收第一用户对第一预设实体按键的第二输入;Step S6, the first electronic device receives the second input of the first user to the first preset physical key;
步骤S7,第一电子设备响应于所述第二输入,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所述运行界面的操作,所述第一用户为所述第一电子设备的操作者。Step S7: In response to the second input, the first electronic device prohibits the first electronic device from responding to the operation of the first user on the operating interface, and allows the first electronic device to respond to the operation through the second electronic device The received second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
示例二Example two
如图4所示,具体的交互流程如下:As shown in Figure 4, the specific interaction process is as follows:
步骤S11,通过蓝牙、WiFi、数据通信等方式连接第一电子设备与第二电子设备第一电子设备发送目标应用程序的运行界面至第二电子设备;Step S11, connecting the first electronic device and the second electronic device through Bluetooth, WiFi, data communication, etc., the first electronic device sends the running interface of the target application to the second electronic device;
步骤S12,第一电子设备接收第一用户对第一距离传感器的第一输入;Step S12, the first electronic device receives the first input of the first user to the first distance sensor;
这里,可选地,第一距离传感器为红外测距传感器。Here, optionally, the first distance sensor is an infrared distance measuring sensor.
需要说明的是,第一输入为靠近所述第一距离传感器,使用户与所述第一电子设备之间的距离小于第一预设值的输入。It should be noted that the first input is an input that is close to the first distance sensor, so that the distance between the user and the first electronic device is smaller than the first preset value.
步骤S13,当通过该第一距离传感器检测到用户与第一电子设备之间的距离小于第一预设值时,执行目标事件;Step S13, when it is detected by the first distance sensor that the distance between the user and the first electronic device is less than the first preset value, execute the target event;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
步骤S14,第一电子设备向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作;Step S14: The first electronic device sends a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the second user on the running interface;
步骤S15,在第二电子设备接收到第二用户对所述虚拟控件的点击输入的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求;Step S15, in the case that the second electronic device receives the second user's click input on the virtual control, sending to the first electronic device a request in response to the second user's operation on the running interface;
本步骤之后,返回执行步骤S11或者返回执行S16。After this step, return to step S11 or return to step S16.
步骤S16,第一电子设备接收第一用户对第一距离传感器的第二输入;Step S16, the first electronic device receives the second input of the first user to the first distance sensor;
步骤S17,当通过该第一距离传感器检测到用户与第一电子设备之间的距离大于第二预设值时,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所述运行界面的操作,所述第一用户为所述第一电子设备的操作者。Step S17: When it is detected through the first distance sensor that the distance between the user and the first electronic device is greater than a second preset value, prohibit the first electronic device from responding to the first user's operation on the running interface, and The first electronic device is allowed to respond to a second target operation received through the second electronic device, where the second target operation is an operation of the second user on the running interface, and the first user is The operator of the first electronic device.
基于上述方法,本发明实施例提供一种用以实现上述方法的电子设备。Based on the above method, an embodiment of the present invention provides an electronic device for implementing the above method.
如图5所示,为本发明实施例提供的电子设备的结构示意图。本发明实施例提供一种电子设备500,该电子设备500为第一电子设备,该电子设备500可以包括:As shown in FIG. 5, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. An embodiment of the present invention provides an electronic device 500. The electronic device 500 is a first electronic device. The electronic device 500 may include:
第一发送模块501,用于在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;The first sending module 501 is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device;
第一接收模块502,接收第一输入;The first receiving module 502 receives the first input;
第一控制模块503,用于响应于所述第一输入,执行目标事件;The first control module 503 is configured to execute a target event in response to the first input;
其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
可选地,所述电子设备500还可包括:Optionally, the electronic device 500 may further include:
第二接收模块,用于接收第二输入;The second receiving module is used to receive the second input;
第二控制模块,用于响应于所述第二输入,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所 述运行界面的操作,所述第一用户为所述第一电子设备的操作者。The second control module is configured to, in response to the second input, prohibit the first electronic device from responding to the operation of the first user on the operating interface, and allow the first electronic device to respond through the second electronic device The received second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
可选地,所述电子设备500还可包括:Optionally, the electronic device 500 may further include:
第三接收模块,用于接收所述第二电子设备发送的第一请求消息,所述第一请求消息用于请求所述第一电子设备响应所述第二用户对所述运行界面的操作;A third receiving module, configured to receive a first request message sent by the second electronic device, the first request message being used to request the first electronic device to respond to the second user's operation on the running interface;
所述第一接收模块502,包括:The first receiving module 502 includes:
第一接收单元,用于在接收到所述第一请求消息后的第一预设时间内接收到第一输入。The first receiving unit is configured to receive a first input within a first preset time after receiving the first request message.
可选地,所述电子设备500还可包括:Optionally, the electronic device 500 may further include:
第二发送模块,用于向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作。The second sending module is configured to send a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the running interface by the second user.
可选地,所述第一接收模块502,包括:Optionally, the first receiving module 502 includes:
第二接收单元,用于接收对所述第一电子设备上第一预设元件的第一输入,所述第一预设元件为第一预设实体按键或者第一距离传感器。The second receiving unit is configured to receive a first input to a first preset element on the first electronic device, where the first preset element is a first preset physical button or a first distance sensor.
本发明实施例提供的电子设备能够实现图1的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment in FIG.
本发明实施例提供的电子设备,在第一电子设备与第二电子设备连接的情况下,第一发送模块发送目标应用程序的运行界面至所述第二电子设备;第一接收模块接收第一输入;第一控制模块响应于所述第一输入,执行目标事件;其中,所述目标事件包括以下中的一种:禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者,如此,基于简单地输入操作,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the electronic device provided by the embodiment of the present invention, when the first electronic device is connected to the second electronic device, the first sending module sends the running interface of the target application to the second electronic device; the first receiving module receives the first electronic device. Input; the first control module executes a target event in response to the first input; wherein the target event includes one of the following: prohibiting the first electronic device from responding to the first electronic device received through the second electronic device A target operation, the first target operation is an operation of a second user on the running interface; a first control instruction is sent to the second electronic device, and the first control instruction is used to instruct the second electronic device The operation of the running interface by the second user is shielded, and the second user is the operator of the second electronic device. In this way, based on a simple input operation, the same shared target application can be used on the two electronic devices. The upper interaction is convenient, and conflicts can be avoided during the interaction, and the user experience can be improved.
如图6所示,为本发明实施例提供的电子设备的结构示意图。本发明实 施例提供一种电子设备600,该电子设备600为第二电子设备,该电子设备600可以包括:As shown in FIG. 6, it is a schematic structural diagram of an electronic device provided by an embodiment of the present invention. An embodiment of the present invention provides an electronic device 600. The electronic device 600 is a second electronic device. The electronic device 600 may include:
第四接收模块601,用于在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;The fourth receiving module 601 is configured to receive and display the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device;
第三发送模块602,用于将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,The third sending module 602 is configured to send an instruction corresponding to the operation of the second user on the running interface to the first electronic device; or,
第五接收模块603,用于接收所述第一电子设备发送的第一控制指令;The fifth receiving module 603 is configured to receive the first control instruction sent by the first electronic device;
其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
可选地,所述电子设备600还可包括:Optionally, the electronic device 600 may further include:
第六接收模块,用于接收所述第一电子设备发送的第二控制指令;A sixth receiving module, configured to receive a second control instruction sent by the first electronic device;
显示模块,用于根据所述第二控制指令,在所述第二电子设备上显示虚拟控件;A display module, configured to display a virtual control on the second electronic device according to the second control instruction;
第四发送模块,用于在所述虚拟控件被触发的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求。The fourth sending module is configured to send to the first electronic device a request in response to the second user's operation on the running interface when the virtual control is triggered.
本发明实施例提供的电子设备能够实现图2的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiment of FIG. 2, and to avoid repetition, details are not described herein again.
本发明实施例提供的电子设备,在第一电子设备与第二电子设备连接的情况下,第四接收模块接收所述第一电子设备发送的目标应用程序的运行界面并显示;第三发送模块将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,第五接收模块接收所述第一电子设备发送的第一控制指令;其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作,如此,通过与第一电子设备简单地交互,能够使同一共享的目标应用程序在该两个电子设备上交互便捷,且在交互时能够避免冲突,提升用户的使用体验。In the electronic device provided by the embodiment of the present invention, when the first electronic device is connected to the second electronic device, the fourth receiving module receives and displays the running interface of the target application sent by the first electronic device; the third sending module The instruction corresponding to the operation of the second user on the running interface is sent to the first electronic device; or the fifth receiving module receives the first control instruction sent by the first electronic device; wherein, the second user For the operator of the second electronic device, the first control instruction is used to instruct the second electronic device to block the operation of the second user on the running interface. In this way, the first electronic device can simply communicate with the first electronic device. The interaction can facilitate the interaction of the same shared target application on the two electronic devices, avoid conflicts during the interaction, and improve the user experience.
图7为实现本发明各个实施例的一种电子设备的硬件结构示意图。FIG. 7 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention.
该电子设备700为第一电子设备或第二电子设备,包括但不限于:射频单元701、网络模块702、音频输出单元703、输入单元704、传感器705、 显示单元706、用户输入单元707、接口单元708、存储器709、处理器710、以及电源711等部件。本领域技术人员可以理解,图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端设备、可穿戴设备、以及计步器等。The electronic device 700 is a first electronic device or a second electronic device, including but not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, and an interface The unit 708, the memory 709, the processor 710, and the power supply 711 and other components. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 7 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. Layout. In the embodiments of the present invention, electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminal devices, wearable devices, and pedometers.
其中,该电子设备为第一电子设备的情况下,处理器710用于在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;接收第一输入;响应于所述第一输入,执行目标事件;其中,所述目标事件包括以下中的一种:Wherein, when the electronic device is the first electronic device, the processor 710 is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device Receiving a first input; in response to the first input, executing a target event; wherein the target event includes one of the following:
禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
该电子设备为第二电子设备的情况下,处理器710用于在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,接收所述第一电子设备发送的第一控制指令;其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。In the case that the electronic device is a second electronic device, the processor 710 is configured to receive the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device, and Display; send the instruction corresponding to the operation of the running interface by the second user to the first electronic device; or receive the first control instruction sent by the first electronic device; wherein, the second user is For the operator of the second electronic device, the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
本发明实施例中,通过两个电子设备简单便捷的交互,能够避免冲突,提升用户的使用体验。In the embodiment of the present invention, through simple and convenient interaction between two electronic devices, conflicts can be avoided and the user experience can be improved.
应理解的是,本发明实施例中,射频单元701可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器710处理;另外,将上行的数据发送给基站。通常,射频单元701包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元701还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 can be used for receiving and sending signals during the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 710; Uplink data is sent to the base station. Generally, the radio frequency unit 701 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.
电子设备通过网络模块702为用户提供了无线的宽带互联网访问,如帮 助用户收发电子邮件、浏览网页和访问流式媒体等。The electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元703可以将射频单元701或网络模块702接收的或者在存储器709中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元703还可以提供与电子设备700执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元703包括扬声器、蜂鸣器以及受话器等。The audio output unit 703 can convert the audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output it as sound. Moreover, the audio output unit 703 may also provide audio output related to a specific function performed by the electronic device 700 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
输入单元704用于接收音频或视频信号。输入单元704可以包括图形处理器(Graphics Processing Unit,GPU)7041和麦克风7042,图形处理器7041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元706上。经图形处理器7041处理后的图像帧可以存储在存储器709(或其它存储介质)中或者经由射频单元701或网络模块702进行发送。麦克风7042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元701发送到移动通信基站的格式输出。The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042. The graphics processor 7041 is used for the image of a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frame may be displayed on the display unit 706. The image frame processed by the graphics processor 7041 may be stored in the memory 709 (or other storage medium) or sent via the radio frequency unit 701 or the network module 702. The microphone 7042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to the mobile communication base station via the radio frequency unit 701 for output in the case of a telephone call mode.
电子设备700还包括至少一种传感器705,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板7061的亮度,接近传感器可在电子设备700移动到耳边时,关闭显示面板7061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器705还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The electronic device 700 further includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light. The proximity sensor can turn off the display panel 7061 and the display panel 7061 when the electronic device 700 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of mobile electronic devices (such as horizontal and vertical screen switching, related Games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 705 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers , Infrared sensors, etc., I won’t repeat them here.
显示单元706用于显示由用户输入的信息或提供给用户的信息。显示单元706可包括显示面板7061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板7061。The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元707可用于接收输入的数字或字符信息,以及产生与移动电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元707包括触控面板7071以及其他输入设备7072。触控面板7071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板7071上或在触控面板7071附近的操作)。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器710,接收处理器710发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板7071。除了触控面板7071,用户输入单元707还可以包括其他输入设备7072。具体地,其他输入设备7072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 707 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 7071 or near the touch panel 7071. operating). The touch panel 7071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 710, the command sent by the processor 710 is received and executed. In addition, the touch panel 7071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 7071, the user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板7071可覆盖在显示面板7061上,当触控面板7071检测到在其上或附近的触摸操作后,传送给处理器710以确定触摸事件的类型,随后处理器710根据触摸事件的类型在显示面板7061上提供相应的视觉输出。虽然在图7中,触控面板7071与显示面板7061是作为两个独立的部件来实现移动电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板7071与显示面板7061集成而实现移动电子设备的输入和输出功能,具体此处不做限定。Further, the touch panel 7071 can be overlaid on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 determines the type of the touch event according to the touch. The type of event provides corresponding visual output on the display panel 7061. Although in FIG. 7, the touch panel 7071 and the display panel 7061 are used as two independent components to implement the input and output functions of the mobile electronic device, in some embodiments, the touch panel 7071 and the display panel 7061 can be combined. Integrate to realize the input and output functions of mobile electronic devices, and the specifics are not limited here.
接口单元708为外部装置与电子设备700连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元708可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备700内的一个或多个元件或者可以用于在电子设备700和外部装置之间传输数据。The interface unit 708 is an interface for connecting an external device and the electronic device 700. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc. The interface unit 708 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 700 or can be used to connect the electronic device 700 to an external device. Transfer data between devices.
存储器709可用于存储软件程序以及各种数据。存储器709可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功 能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器709可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 709 can be used to store software programs and various data. The memory 709 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data created by the use of mobile phones (such as audio data, phone book, etc.), etc. In addition, the memory 709 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器710是移动电子设备的控制中心,利用各种接口和线路连接整个移动电子设备的各个部分,通过运行或执行存储在存储器709内的软件程序和/或模块,以及调用存储在存储器709内的数据,执行移动电子设备的各种功能和处理数据,从而对移动电子设备进行整体监控。处理器710可包括一个或多个处理单元;优选的,处理器710可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器710中。The processor 710 is the control center of the mobile electronic device. It uses various interfaces and lines to connect the various parts of the entire mobile electronic device, runs or executes the software programs and/or modules stored in the memory 709, and calls the storage in the memory 709. Data, perform various functions of mobile electronic devices and process data, so as to monitor the mobile electronic devices as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs. The processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 710.
电子设备700还可以包括给各个部件供电的电源711(比如电池),优选的,电源711可以通过电源管理系统与处理器710逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The electronic device 700 may also include a power source 711 (such as a battery) for supplying power to various components. Preferably, the power source 711 may be logically connected to the processor 710 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
另外,电子设备700包括一些未示出的功能模块,在此不再赘述。In addition, the electronic device 700 includes some functional modules not shown, which will not be repeated here.
优选的,本发明实施例还提供一种电子设备,包括处理器710,存储器709,存储在存储器709上并可在处理器710上运行的计算机程序,该计算机程序被处理器710执行时实现上述应用程序控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Preferably, the embodiment of the present invention also provides an electronic device, including a processor 710, a memory 709, and a computer program stored in the memory 709 and running on the processor 710. When the computer program is executed by the processor 710, the foregoing Each process of the embodiment of the application program control method can achieve the same technical effect. In order to avoid repetition, details are not repeated here.
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述应用程序控制方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned application control method embodiment is realized, and the same The technical effect, in order to avoid repetition, will not be repeated here. Wherein, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM for short), random access memory (Random Access Memory, RAM for short), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还 包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, It also includes other elements that are not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台电子设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform, or by hardware, but in many cases the former is better. Implementation mode. Based on this understanding, the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes a number of instructions to enable an electronic device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。The embodiments of the present invention are described above with reference to the accompanying drawings, but the present invention is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present invention, many forms can be made without departing from the purpose of the present invention and the scope of protection of the claims, and they all fall within the protection of the present invention.

Claims (18)

  1. 一种应用程序控制方法,应用于第一电子设备,其中,包括:An application program control method applied to a first electronic device, which includes:
    在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;When the first electronic device is connected to the second electronic device, sending the running interface of the target application to the second electronic device;
    接收第一输入;Receive the first input;
    响应于所述第一输入,执行目标事件;In response to the first input, execute a target event;
    其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
    禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
    向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
  2. 根据权利要求1所述的方法,其中,发送目标应用程序的运行界面至所述第二电子设备的步骤之后,所述方法还包括:The method according to claim 1, wherein after the step of sending the running interface of the target application to the second electronic device, the method further comprises:
    接收第二输入;Receive the second input;
    响应于所述第二输入,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所述运行界面的操作,所述第一用户为所述第一电子设备的操作者。In response to the second input, prohibit the first electronic device from responding to the operation of the first user on the running interface, and allow the first electronic device to respond to the second target operation received through the second electronic device , The second target operation is an operation of the running interface by the second user, and the first user is an operator of the first electronic device.
  3. 根据权利要求1所述的方法,其中,发送目标应用程序的运行界面至所述第二电子设备之后,接收第一输入之前,所述方法还包括:The method according to claim 1, wherein after sending the running interface of the target application to the second electronic device and before receiving the first input, the method further comprises:
    接收所述第二电子设备发送的第一请求消息,所述第一请求消息用于请求所述第一电子设备响应所述第二用户对所述运行界面的操作;Receiving a first request message sent by the second electronic device, where the first request message is used to request the first electronic device to respond to the second user's operation on the running interface;
    所述接收第一输入,包括:The receiving the first input includes:
    在接收到所述第一请求消息后的第一预设时间内接收到第一输入。The first input is received within a first preset time after receiving the first request message.
  4. 根据权利要求1所述的方法,其中,响应于所述第一输入,执行目标事件之后,所述方法还包括:The method according to claim 1, wherein, in response to the first input, after executing the target event, the method further comprises:
    向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在 所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作。Send a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the second electronic device to send a virtual control to the first electronic device. The electronic device requests a response to the operation of the running interface by the second user.
  5. 根据权利要求1所述的方法,其中,所述接收第一输入,包括:The method according to claim 1, wherein said receiving the first input comprises:
    接收对所述第一电子设备上第一预设元件的第一输入,所述第一预设元件为第一预设实体按键或者第一距离传感器。A first input to a first preset element on the first electronic device is received, where the first preset element is a first preset physical button or a first distance sensor.
  6. 一种应用程序控制方法,应用于第二电子设备,其中,包括:An application program control method applied to a second electronic device, including:
    在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;When the second electronic device is connected to the first electronic device, receiving and displaying the running interface of the target application sent by the first electronic device;
    将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,接收所述第一电子设备发送的第一控制指令;Sending an instruction corresponding to the operation of the running interface by the second user to the first electronic device; or receiving a first control instruction sent by the first electronic device;
    其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  7. 根据权利要求6所述的方法,其中,将第二用户对所述运行界面的操作发送至所述第一电子设备之后;或者,接收所述第二电子设备发送的第一控制指令之后,所述方法还包括:The method according to claim 6, wherein after sending the operation of the second user on the running interface to the first electronic device; or, after receiving the first control instruction sent by the second electronic device, The method also includes:
    接收所述第一电子设备发送的第二控制指令;Receiving a second control instruction sent by the first electronic device;
    根据所述第二控制指令,在所述第二电子设备上显示虚拟控件;Displaying a virtual control on the second electronic device according to the second control instruction;
    在所述虚拟控件被触发的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求。When the virtual control is triggered, sending a request to the first electronic device in response to the second user's operation on the running interface.
  8. 一种电子设备,所述电子设备为第一电子设备,其中,包括:An electronic device, the electronic device being a first electronic device, which includes:
    第一发送模块,用于在所述第一电子设备与第二电子设备连接的情况下,发送目标应用程序的运行界面至所述第二电子设备;The first sending module is configured to send the running interface of the target application to the second electronic device when the first electronic device is connected to the second electronic device;
    第一接收模块,接收第一输入;The first receiving module receives the first input;
    第一控制模块,用于响应于所述第一输入,执行目标事件;The first control module is configured to execute a target event in response to the first input;
    其中,所述目标事件包括以下中的一种:Wherein, the target event includes one of the following:
    禁止所述第一电子设备响应通过所述第二电子设备接收到的第一目标操作,所述第一目标操作为第二用户对所述运行界面的操作;Prohibiting the first electronic device from responding to a first target operation received through the second electronic device, where the first target operation is an operation performed by a second user on the running interface;
    向所述第二电子设备发送第一控制指令,所述第一控制指令用于指示所述第二电子设备屏蔽第二用户对所述运行界面的操作,所述第二用户为所述 第二电子设备的操作者。Send a first control instruction to the second electronic device, where the first control instruction is used to instruct the second electronic device to shield a second user's operation on the running interface, and the second user is the second Operators of electronic equipment.
  9. 根据权利要求8所述的电子设备,其中,还包括:The electronic device according to claim 8, further comprising:
    第二接收模块,用于接收第二输入;The second receiving module is used to receive the second input;
    第二控制模块,用于响应于所述第二输入,禁止所述第一电子设备响应第一用户对所述运行界面的操作,并允许所述第一电子设备响应通过所述第二电子设备接收到的第二目标操作,所述第二目标操作为所述第二用户对所述运行界面的操作,所述第一用户为所述第一电子设备的操作者。The second control module is configured to, in response to the second input, prohibit the first electronic device from responding to the operation of the first user on the running interface, and allow the first electronic device to respond through the second electronic device A received second target operation, the second target operation being an operation of the running interface by the second user, and the first user being an operator of the first electronic device.
  10. 根据权利要求8所述的电子设备,其中,还包括:The electronic device according to claim 8, further comprising:
    第三接收模块,用于接收所述第二电子设备发送的第一请求消息,所述第一请求消息用于请求所述第一电子设备响应所述第二用户对所述运行界面的操作;A third receiving module, configured to receive a first request message sent by the second electronic device, the first request message being used to request the first electronic device to respond to the second user's operation on the running interface;
    所述第一接收模块,包括:The first receiving module includes:
    第一接收单元,用于在接收到所述第一请求消息后的第一预设时间内接收到第一输入。The first receiving unit is configured to receive a first input within a first preset time after receiving the first request message.
  11. 根据权利要求8所述的电子设备,其中,还包括:The electronic device according to claim 8, further comprising:
    第二发送模块,用于向所述第二电子设备发送第二控制指令,所述第二控制指令用于指示在所述第二电子设备上显示虚拟控件,所述虚拟控件用于供所述第二电子设备向第一电子设备请求响应所述第二用户对所述运行界面的操作。The second sending module is configured to send a second control instruction to the second electronic device, where the second control instruction is used to instruct to display a virtual control on the second electronic device, and the virtual control is used for the The second electronic device requests the first electronic device to respond to the operation of the running interface by the second user.
  12. 根据权利要求8所述的电子设备,其中,所述第一接收模块,包括:The electronic device according to claim 8, wherein the first receiving module comprises:
    第二接收单元,用于接收对所述第一电子设备上第一预设元件的第一输入,所述第一预设元件为第一预设实体按键或者第一距离传感器。The second receiving unit is configured to receive a first input to a first preset element on the first electronic device, where the first preset element is a first preset physical button or a first distance sensor.
  13. 一种电子设备,所述电子设备为第二电子设备,其中,包括:An electronic device, the electronic device being a second electronic device, including:
    第四接收模块,用于在所述第二电子设备与第一电子设备连接的情况下,接收所述第一电子设备发送的目标应用程序的运行界面并显示;A fourth receiving module, configured to receive and display the running interface of the target application sent by the first electronic device when the second electronic device is connected to the first electronic device;
    第三发送模块,用于将第二用户对所述运行界面的操作对应的指令发送至所述第一电子设备;或者,The third sending module is configured to send the instruction corresponding to the operation of the second user on the running interface to the first electronic device; or,
    第五接收模块,用于接收所述第一电子设备发送的第一控制指令;A fifth receiving module, configured to receive the first control instruction sent by the first electronic device;
    其中,所述第二用户为所述第二电子设备的操作者,所述第一控制指令 用于指示所述第二电子设备屏蔽所述第二用户对所述运行界面的操作。Wherein, the second user is an operator of the second electronic device, and the first control instruction is used to instruct the second electronic device to shield the operation of the running interface by the second user.
  14. 根据权利要求13所述的电子设备,其中,还包括:The electronic device according to claim 13, further comprising:
    第六接收模块,用于接收所述第一电子设备发送的第二控制指令;A sixth receiving module, configured to receive a second control instruction sent by the first electronic device;
    显示模块,用于根据所述第二控制指令,在所述第二电子设备上显示虚拟控件;A display module, configured to display a virtual control on the second electronic device according to the second control instruction;
    第四发送模块,用于在所述虚拟控件被触发的情况下,向第一电子设备发送响应所述第二用户对所述运行界面的操作的请求。The fourth sending module is configured to send to the first electronic device a request in response to the second user's operation on the running interface when the virtual control is triggered.
  15. 一种电子设备,其中,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的应用程序控制方法的步骤或者如权利要求6至7中任一项所述的应用程序控制方法的步骤。An electronic device, comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor, the computer program being executed by the processor implements claims 1 to 5 The steps of the application control method according to any one of claims or the steps of the application control method according to any one of claims 6 to 7.
  16. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的应用程序控制方法的步骤或者如权利要求6至7中任一项所述的应用程序控制方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the application program control method according to any one of claims 1 to 5 are realized Or the steps of the application control method according to any one of claims 6 to 7.
  17. 一种计算机程序产品,所述计算机程序产品被存储在非易失的存储介质中,所述计算机程序产品被至少一个处理器执行以实现如权利要求1至5中任一项所述的应用程序控制方法或者如权利要求6至7中任一项所述的应用程序控制方法。A computer program product, the computer program product is stored in a non-volatile storage medium, the computer program product is executed by at least one processor to implement the application program according to any one of claims 1 to 5 The control method or the application control method according to any one of claims 6 to 7.
  18. 一种电子设备,所述电子设备被配置成用于执行如权利要求1至5中任一项所述的应用程序控制方法或者如权利要求6至7中任一项所述的应用程序控制方法。An electronic device configured to execute the application control method according to any one of claims 1 to 5 or the application control method according to any one of claims 6 to 7 .
PCT/CN2020/131342 2019-11-29 2020-11-25 Application control method and electronic device WO2021104285A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911198759.4 2019-11-29
CN201911198759.4A CN111026482B (en) 2019-11-29 2019-11-29 Application program control method and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021104285A1 true WO2021104285A1 (en) 2021-06-03

Family

ID=70207105

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/131342 WO2021104285A1 (en) 2019-11-29 2020-11-25 Application control method and electronic device

Country Status (2)

Country Link
CN (1) CN111026482B (en)
WO (1) WO2021104285A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111026482B (en) * 2019-11-29 2022-02-22 维沃移动通信有限公司 Application program control method and electronic equipment
CN114741146A (en) * 2022-03-28 2022-07-12 维沃移动通信有限公司 Multi-device cooperation method and device, electronic device and medium
CN118535069A (en) * 2023-02-23 2024-08-23 华为技术有限公司 Distributed control method of application program and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130194374A1 (en) * 2012-01-26 2013-08-01 Apple Inc. Interactive application sharing
CN105677329A (en) * 2015-12-30 2016-06-15 联想(北京)有限公司 Controlling method and electronic device
CN109144383A (en) * 2018-07-17 2019-01-04 努比亚技术有限公司 A kind of application control method, terminal and computer readable storage medium
CN110099119A (en) * 2019-05-07 2019-08-06 百度在线网络技术(北京)有限公司 Data sharing method and device
CN111026482A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Application program control method and electronic equipment

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8825758B2 (en) * 2007-12-14 2014-09-02 Microsoft Corporation Collaborative authoring modes
TWI487364B (en) * 2011-12-01 2015-06-01 Amtran Technology Co Ltd Method for switching calls between devices and communication device
EP2632131A1 (en) * 2012-02-21 2013-08-28 Research In Motion Limited Method, apparatus, and system for providing a shared user interface
CN103544189A (en) * 2012-07-17 2014-01-29 珠海金山办公软件有限公司 Method and system for locking currently-edited file
CN103826321B (en) * 2012-11-19 2017-11-03 联想(北京)有限公司 The method and apparatus of a kind of electronic equipment connection
US9529785B2 (en) * 2012-11-27 2016-12-27 Google Inc. Detecting relationships between edits and acting on a subset of edits
CN104007903B (en) * 2013-02-27 2017-03-22 联想(北京)有限公司 Interface invoking method, interface invoking device, and electronic device
CN104063137B (en) * 2013-03-18 2017-11-28 联想(北京)有限公司 A kind of control method and electronic equipment
CN104461326B (en) * 2013-09-16 2017-12-26 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN104052801B (en) * 2014-06-03 2018-04-27 联想(北京)有限公司 A kind of information processing method and electronic equipment
US9639234B2 (en) * 2015-09-10 2017-05-02 Qualcomm Incorporated Dynamic control schemes for simultaneously-active applications
US10212171B2 (en) * 2015-10-07 2019-02-19 Spotify Ab Dynamic control of playlists
US11075895B2 (en) * 2015-12-31 2021-07-27 Huawei Technologies Co., Ltd. Cloud operation interface sharing method, related device, and system
CN106331061A (en) * 2016-08-15 2017-01-11 李淑萍 Interaction method for double user parties to carry out switching operation on the same operation interface
CN106790553A (en) * 2016-12-24 2017-05-31 珠海市魅族科技有限公司 The interface sharing method and device of virtual reality device
CN107423635A (en) * 2017-07-01 2017-12-01 珠海格力电器股份有限公司 Application sharing method and device and user terminal
CN110019058B (en) * 2017-10-13 2022-12-06 腾讯科技(深圳)有限公司 Sharing method and device for file operation
TWI752274B (en) * 2018-03-21 2022-01-11 小綠草股份有限公司 Internet of things system and method for pushing message
CN109918601A (en) * 2019-02-03 2019-06-21 广州视源电子科技股份有限公司 Method and device for editing online document, computer equipment and storage medium
CN109857745A (en) * 2019-02-20 2019-06-07 平安科技(深圳)有限公司 Database manipulation control method, device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130194374A1 (en) * 2012-01-26 2013-08-01 Apple Inc. Interactive application sharing
CN105677329A (en) * 2015-12-30 2016-06-15 联想(北京)有限公司 Controlling method and electronic device
CN109144383A (en) * 2018-07-17 2019-01-04 努比亚技术有限公司 A kind of application control method, terminal and computer readable storage medium
CN110099119A (en) * 2019-05-07 2019-08-06 百度在线网络技术(北京)有限公司 Data sharing method and device
CN111026482A (en) * 2019-11-29 2020-04-17 维沃移动通信有限公司 Application program control method and electronic equipment

Also Published As

Publication number Publication date
CN111026482B (en) 2022-02-22
CN111026482A (en) 2020-04-17

Similar Documents

Publication Publication Date Title
WO2021098678A1 (en) Screencast control method and electronic device
WO2021083132A1 (en) Icon moving method and electronic device
EP3691235A1 (en) Display method and mobile terminal
WO2021109958A1 (en) Application program sharing method and electronic device
WO2020238497A1 (en) Icon moving method and terminal device
WO2021204045A1 (en) Audio control method and electronic device
WO2020186945A1 (en) Interface display method and terminal device
WO2021104285A1 (en) Application control method and electronic device
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
WO2020186964A1 (en) Audio signal outputting method and terminal device
WO2021004426A1 (en) Content selection method, and terminal
US11354017B2 (en) Display method and mobile terminal
WO2021057290A1 (en) Information control method and electronic device
WO2019223569A1 (en) Information processing method and mobile terminal
WO2020199986A1 (en) Video call method and terminal device
WO2021104251A1 (en) Control method and first electronic device
WO2020199783A1 (en) Interface display method and terminal device
WO2021129745A1 (en) Touch key, control method and electronic device
WO2021031717A1 (en) Screen capturing method and terminal device
CN108446156B (en) Application program control method and terminal
WO2021037074A1 (en) Audio output method and electronic apparatus
WO2021136141A1 (en) Playback method and electronic device
WO2021031868A1 (en) Interface display method and terminal
WO2020215969A1 (en) Content input method and terminal device
WO2020078234A1 (en) Display control method and terminal

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: 20893990

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: 20893990

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20893990

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 09.01.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20893990

Country of ref document: EP

Kind code of ref document: A1