CN110825709B - Interaction method and electronic equipment - Google Patents

Interaction method and electronic equipment Download PDF

Info

Publication number
CN110825709B
CN110825709B CN201911047356.XA CN201911047356A CN110825709B CN 110825709 B CN110825709 B CN 110825709B CN 201911047356 A CN201911047356 A CN 201911047356A CN 110825709 B CN110825709 B CN 110825709B
Authority
CN
China
Prior art keywords
electronic device
sharing
condition
preset
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911047356.XA
Other languages
Chinese (zh)
Other versions
CN110825709A (en
Inventor
张红伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201911047356.XA priority Critical patent/CN110825709B/en
Publication of CN110825709A publication Critical patent/CN110825709A/en
Application granted granted Critical
Publication of CN110825709B publication Critical patent/CN110825709B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/176Support for shared access to files; File sharing support
    • 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
    • G06F9/452Remote windowing, e.g. X-Window System, desktop virtualisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The embodiment of the invention discloses an interaction method and electronic equipment, wherein the method is applied to first electronic equipment, and the method comprises the following steps: determining a second electronic device having an interconnection relationship with the first electronic device; sharing the interface of the target application program to the second electronic device under the condition that the first electronic device starts a sharing function and the first state of the first electronic device meets a preset sharing condition. According to the interaction method disclosed by the embodiment of the invention, the interconnection relationship between the first electronic equipment and the second electronic equipment is established in advance, the connection relationship between the first electronic equipment and the second electronic equipment does not need to be established by spending time when the sharing requirement exists, the sharing is automatically carried out under the condition that the first state meets the first preset sharing condition, and the operation process is simple and rapid.

Description

Interaction method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of electronic equipment, in particular to an interaction method and electronic equipment.
Background
At present, the electronic device user can realize application data sharing among a plurality of devices in the device sharing circle. The first user A can actively add the resource which is wanted to be shared into the device sharing circle, and set a second user which can be accessed aiming at different resources. The second user may access and use the resources within the device shared circle anywhere.
The existing data sharing process is as follows: a controlled terminal initiates a device discovery request; the main control end responds to the request; the controlled terminal initiates a connection request; the main control end responds to the request and starts to transmit data after the connection is successful. The existing data sharing process is complicated in operation process.
Disclosure of Invention
The embodiment of the invention provides an interaction method, which is used for solving the problem that the operation process of a data sharing process is complicated in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an interaction method applied to a first electronic device, where the method includes: determining a second electronic device having an interconnection relationship with the first electronic device; sharing an interface of a target application program to the second electronic device under the condition that the first electronic device starts a sharing function and the first state of the first electronic device meets a first preset sharing condition.
In a second aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: the first determining module is used for determining second electronic equipment which has an interconnection relation with the first electronic equipment; the sharing module is used for sharing the interface of the target application program to the second electronic equipment under the condition that the first electronic equipment starts a sharing function and the first state of the first electronic equipment meets a first preset sharing condition.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and when executed by the processor, the computer program implements the steps of any one of the interaction methods described in the embodiments of the present invention.
In a fourth aspect, the present invention provides a computer-readable storage medium, where the computer-readable storage medium stores thereon a computer program, and the computer program, when executed by a processor, implements the steps of any one of the interaction methods described in the embodiments of the present invention.
In the embodiment of the invention, the second electronic equipment which has an interconnection relation with the first electronic equipment is determined; determining whether a first state of the first electronic device meets a preset sharing condition or not under the condition that the first electronic device starts a sharing function; under the condition that the first state meets the first preset sharing condition, the interface of the target application program is shared to the second electronic device, the interconnection relation between the first electronic device and the second electronic device is established in advance, time does not need to be spent to establish the connection relation between the first electronic device and the second electronic device when the sharing requirement exists, and under the condition that the first state meets the first preset sharing condition, the interface of the target application program is automatically shared, and the operation process is simple and rapid.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of steps of an interaction method according to a first embodiment of the invention;
FIG. 2 is a flow chart of the steps of an interactive method according to the second embodiment of the present invention;
fig. 3 is a block diagram of an electronic device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
In various embodiments of the present invention, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic, but should not constitute any limitation to the implementation process of the embodiments of the present invention
Example one
Referring to fig. 1, a flowchart illustrating steps of an interaction method according to a first embodiment of the present invention is shown.
The interaction method of the embodiment of the invention comprises the following steps:
step 101: a second electronic device having an interconnection relationship with the first electronic device is determined.
The first electronic device and the second electronic device can belong to the same user or different users, and are located at the same user. When the first electronic device and the second electronic device belong to the same user, the first electronic device can identify the first electronic device and the second electronic device which belong to the same user and are located by the user through the registration information, the device identification, the position information and the like. When the first electronic device and the second electronic device belong to different users, the first electronic device can detect the second electronic device around the user through a wireless communication technology.
Step 102: and determining the running target application program.
The foreground of the first electronic device can only run a single target application program, and the background can run a plurality of application programs.
Step 103: and determining whether the preset parameters of the first electronic equipment meet preset standards or not under the condition that the target application program is a preset application program.
The preset application program can be preset by a user, for example: the preset application may be a game application.
The preset parameter may be a battery remaining capacity and/or a fluency. When the preset parameter is the battery residual capacity, and when the battery residual capacity of the first electronic device is lower than the preset electric capacity, determining that the preset parameter of the first electronic device does not meet the preset standard. When the preset parameter is fluency, and the fluency of the first electronic device running the current application program is lower than the preset fluency, determining that the preset parameter of the first electronic device does not meet the preset standard. The fluency can be determined by parameters such as frame loss and stuck in the process of running the application program.
Step 104: and under the condition that the preset parameters do not meet the preset standard, determining whether the first electronic equipment starts the sharing function.
The sharing function option can be set in a preset application program of the first electronic device, and the sharing function of the electronic device can be opened or closed by setting the sharing function option. After the sharing function is started, the first electronic device and the second electronic device establish an exclusive sharing space, and near-end point-to-point connection can be performed without repeated authentication when the first device is connected with the second device.
It should be noted that steps 102 to 104 are optional steps, and step 105 is directly executed after step 101 is executed in a specific implementation process.
Step 105: under the condition that the first electronic device starts the sharing function, whether the first state of the first electronic device meets a preset sharing condition is determined.
One way to preferably determine whether the first state of the first electronic device satisfies the first preset sharing condition is to: monitoring whether an input indicating screen turn-off is received; under the condition that input indicating screen turn-off is received, turning off a screen of the first electronic device and determining that a first state of the first electronic device meets a first preset sharing condition. And the first electronic equipment is triggered to share the application program interface through the screen-off, so that the user operation is facilitated.
The input indicating the screen being turned off is manually triggered by the user, for example: the user presses a power key at the first electronic equipment end to trigger the first electronic equipment to turn off the screen, the first electronic equipment turns off the screen and simultaneously creates a virtual screen, and an interface of a running target application program is kept running normally on the virtual screen.
Step 106: and sharing the interface of the target application program to the second electronic equipment under the condition that the first electronic equipment starts the sharing function and the first state meets the first preset sharing condition.
The method comprises the steps that a first electronic device sends a screen projection request to a second electronic device before sharing a running target application program interface to the second electronic device, the second electronic device responds to the request, if the second electronic device is in a screen off state, the second electronic device responds to the request and then unlocks a bright screen, at the moment, the first electronic device can share the application program interface to the second electronic device, and the shared application program interface is displayed on a screen of the second electronic device.
In a preferred mode, an interface of a target application program run by the first electronic device is shared to the second electronic device for display, and meanwhile, prompt information is output on a screen of the first electronic device to prompt a user to continue running the application program by using the second electronic device. The optimal mode can remind the user of switching the electronic equipment in time, and the use experience of the user can be improved.
According to the interaction method provided by the embodiment of the invention, the second electronic equipment which has an interconnection relation with the first electronic equipment is determined; under the condition that the first electronic equipment starts a sharing function, determining whether a first state of the first electronic equipment meets a preset sharing condition or not; under the condition that the first state meets the first preset sharing condition, the interface of the target application program is shared to the second electronic device, the interconnection relation between the first electronic device and the second electronic device is established in advance, time does not need to be spent to establish the connection relation between the first electronic device and the second electronic device when the sharing requirement exists, and under the condition that the first state meets the first preset sharing condition, the interface of the target application program is automatically shared, and the process is simple and rapid.
Example two
Referring to fig. 2, a flowchart of steps of an interaction method according to a second embodiment of the present invention is shown.
The interaction method of the embodiment of the invention comprises the following steps:
step 201: a second electronic device having an interconnection relationship with the first electronic device is determined.
The first electronic device and the second electronic device can belong to the same user or different users, and are located at the same user. The first electronic device and the second electronic device are pre-established with an interconnection relationship, and connection does not need to be established when the application program interface is shared.
Step 202: it is determined whether the first electronic device is in a screen-off state.
The interaction mode provided by the embodiment of the invention is a method for automatically sharing the application program interface from the first electronic equipment to the second electronic equipment, manual triggering by a user is not needed, and the user without knowing the sharing function can enjoy the service brought by the sharing function.
Step 203: and under the condition of the screen-off state, determining the screen-off time.
After the first electronic device is turned off, requesting to acquire the state of the second electronic device, and judging whether a user uses the second electronic device and acquiring the battery power information, the split screen mode and other state information of the second electronic device.
Step 204: and under the condition that the screen-off duration is greater than a first preset duration, determining that the first state of the first electronic equipment meets a first preset sharing condition.
Under the condition that the screen-off duration of the first electronic device is longer than a first preset duration, determining that the screen-off of the first electronic device is overtime, and at the moment, meeting a first condition of application program interface sharing.
The first preset sharing condition may be set as: the remaining capacity is less than the preset capacity.
Step 205: and under the condition that the first state meets a first preset sharing condition, judging whether the target application program is a sharable application program.
The method comprises the steps that an application program white list can be preset in first electronic equipment, and if a target application program operated by the first electronic equipment is in the application program white list, the operated target application program is determined to be a sharable application program; on the contrary, if the target application program operated by the first electronic device is not in the application program white list, the operated target application program is determined to be the non-sharable application program. The specific application program included in the application program white list may be set by the user according to actual needs, which is not specifically limited in the embodiment of the present invention.
If the target application program operated by the electronic device is not sharable, the interactive method in the embodiment of the invention is terminated.
Step 206: and under the condition that the target application program is the sharable application program, determining whether the second state of the second electronic equipment meets a second preset sharing condition.
The second preset sharing condition may be set as: the electric quantity of the battery is larger than the preset electric quantity and is in a non-split screen state. That is, when the second electronic device is in the non-low-power, non-screen state, it is determined that the second state of the second electronic device satisfies the second preset sharing condition.
Step 207: and sharing the interface of the target application program to the second electronic equipment under the condition that the second state meets a second preset sharing condition.
In a preferred implementation manner, when the second state of the second electronic device satisfies the second preset sharing condition, an inquiry prompt box is output to inquire whether the user executes the application interface sharing operation, and when a user confirmation instruction is received, the application interface sharing operation is executed. The method for preferably outputting the inquiry prompt box can determine whether to execute the operation of sharing the interface of the target application program according to the actual requirement of the user, and can improve the use experience of the user.
In a preferred implementation manner, the screen-off duration of the second electronic device is monitored while the interface of the target application program is shared to the second electronic device, and the sharing of the interface of the target application program to the second electronic device is stopped when the screen-off duration of the second electronic device is monitored to be greater than a second preset duration.
If the interface of the target application program is shared to the second electronic equipment, the user does not operate on the second electronic equipment side within the second preset time length, the screen of the second electronic equipment is turned off overtime, and the interface sharing of the target application program shared by the first electronic equipment is stopped. The mode of stopping sharing the interface of the target application program to the second electronic device can avoid the waste of resources of the first electronic device and the second electronic device caused by blind sharing.
According to the interaction method provided by the embodiment of the invention, the second electronic equipment which has an interconnection relation with the first electronic equipment is determined; determining whether a first state of the first electronic device meets a preset sharing condition or not under the condition that the first electronic device starts a sharing function; under the condition that the first state meets the first preset sharing condition, the interface of the running target application program is shared to the second electronic device, the interconnection relation between the first electronic device and the second electronic device is established in advance, the connection relation between the first electronic device and the second electronic device does not need to be established in the presence of the sharing requirement and the time spent on establishing the connection relation between the first electronic device and the second electronic device, and under the condition that the first state meets the first preset sharing condition, the interface is automatically shared, and the operation process is simple and rapid. In addition, when the screen-off time of the second electronic equipment is monitored to be longer than a second preset time, the sharing of the interface of the target application program to the second electronic equipment is stopped, and waste of resources of the first electronic equipment and the second electronic equipment caused by blind sharing can be avoided.
With the above description of the interaction method provided by the embodiment of the present invention, an electronic device provided by the embodiment of the present invention will be described with reference to the accompanying drawings.
EXAMPLE III
Referring to fig. 3, a block diagram of an electronic device according to a third embodiment of the present invention is shown.
The electronic device of the embodiment of the invention comprises: a first determining module 301, configured to determine a second electronic device that has an interconnection relationship with the first electronic device; the sharing module 302 is configured to share an interface of a target application program to the second electronic device when the first electronic device starts a sharing function and a first state of the first electronic device meets a first preset sharing condition.
Preferably, the electronic device further includes: the instruction monitoring module 303 is configured to monitor whether an input instructing to turn off a screen is received before the sharing module 302 shares an interface of a target application to the second electronic device when the first electronic device starts a sharing function and a first state of the first electronic device meets a first preset sharing condition; a second determining module 304, configured to, when the input indicating to turn off the screen is received, turn off the screen of the first electronic device and determine that the first state of the first electronic device satisfies a first preset sharing condition.
Preferably, the electronic device further includes: a third determining module 305, configured to determine a target application before the sharing module 302 shares an interface of the target application to the second electronic device when the first electronic device starts a sharing function and the first state of the first electronic device satisfies a first preset sharing condition; a fourth determining module 306, configured to determine whether the first electronic device starts a sharing function when the target application is a preset application and the preset parameter of the first electronic device does not meet a preset standard.
Preferably, the electronic device further includes: a state determining module 307, configured to determine whether the first electronic device is in a screen-off state before the sharing module 302 shares an interface of a target application to the second electronic device when the first electronic device starts a sharing function and a first state of the first electronic device meets a first preset sharing condition; a duration determining module 308, configured to determine a screen-off duration when the screen is in a screen-off state; and under the condition that the screen-off duration is greater than a first preset duration, determining that the first state of the first electronic equipment meets a first preset sharing condition.
Preferably, the sharing module 302 includes: the determining submodule 3021 is configured to, when the target application is a sharable application, determine whether a second state of the second electronic device meets a second preset sharing condition; the sharing submodule 3022 is configured to share the interface of the target application program to the second electronic device when the second state meets a second preset sharing condition.
Preferably, the electronic device further includes: a stopping module 309, configured to, when the sharing module 302 shares the interface of the target application to the second electronic device when the first state meets a first preset sharing condition, and when it is monitored that the screen-off duration of the second electronic device is longer than a second preset duration, stop sharing the interface of the target application to the second electronic device.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
According to the electronic device provided by the embodiment of the invention, the second electronic device which has an interconnection relation with the first electronic device is determined; determining whether a first state of the first electronic device meets a preset sharing condition or not under the condition that the first electronic device starts a sharing function; under the condition that the first state meets the first preset sharing condition, the interface of the target application program is shared to the second electronic device, the interconnection relation between the first electronic device and the second electronic device is established in advance, time does not need to be spent to establish the connection relation between the first electronic device and the second electronic device when the sharing requirement exists, and under the condition that the first state meets the first preset sharing condition, the interface of the target application program is automatically shared, and the operation process is simple and rapid.
Example four
Referring to fig. 4, a block diagram of an electronic device according to a fourth embodiment of the present invention is shown.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device 400 for implementing various embodiments of the present invention, where the electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 4 does not constitute a limitation of electronic devices, which may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
Wherein, the processor 410 is configured to determine a second electronic device having an interconnection relationship with the first electronic device; the radio frequency unit 401 is configured to share an interface of a target application program to the second electronic device when the first electronic device starts a sharing function and a first state of the first electronic device meets a first preset sharing condition.
According to the electronic device provided by the embodiment of the invention, the second electronic device which has an interconnection relation with the first electronic device is determined; determining whether a first state of the first electronic device meets a preset sharing condition or not under the condition that the first electronic device starts a sharing function; under the condition that the first state meets the first preset sharing condition, the interface of the target application program is shared to the second electronic device, the interconnection relation between the first electronic device and the second electronic device is established in advance, time does not need to be spent to establish the connection relation between the first electronic device and the second electronic device when the sharing requirement exists, and under the condition that the first state meets the first preset sharing condition, the interface of the target application program is automatically shared, and the operation process is simple and rapid.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 may receive sound, and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 4061 and/or the backlight when the electronic device 400 is moved to the ear. Display panel 401 is the flexible display screen, and the flexible display screen is including the screen base, liftable module array and the flexible screen that superpose the setting in proper order. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 4, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, and the implementation is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The electronic device 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-described interaction method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the interaction method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the methods according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (9)

1. An interaction method is applied to a first electronic device, and is characterized in that the method comprises the following steps:
determining a second electronic device having an interconnection relationship with the first electronic device;
sharing an interface of a target application program to the second electronic device under the condition that the first electronic device starts a sharing function and a first state of the first electronic device meets a first preset sharing condition;
before the step of sharing the interface of the target application program to the second electronic device when the first electronic device starts a sharing function and the first state of the first electronic device satisfies a first preset sharing condition, the method further includes:
monitoring whether an input indicating screen turn-off is received;
and under the condition that the input of indicating screen turning-off is received, turning off the screen of the first electronic equipment and determining that the first state of the first electronic equipment meets a first preset sharing condition.
2. The method according to claim 1, wherein before the step of sharing the interface of the target application to the second electronic device when the first electronic device starts a sharing function and the first state of the first electronic device satisfies a first preset sharing condition, the method further comprises:
determining a running target application program;
and determining whether the first electronic device starts a sharing function or not under the condition that the target application program is a preset application program and the preset parameters of the first electronic device do not meet preset standards.
3. The method according to claim 1, wherein before the step of sharing the interface of the target application to the second electronic device when the first electronic device starts a sharing function and the first state of the first electronic device satisfies a first preset sharing condition, the method further comprises:
determining whether the first electronic device is in a screen-off state;
determining the screen-off duration under the condition of the screen-off state;
and under the condition that the screen-off duration is greater than a first preset duration, determining that the first state of the first electronic equipment meets a first preset sharing condition.
4. The method according to claim 3, wherein the step of sharing the interface of the target application to the second electronic device comprises:
determining whether a second state of the second electronic device meets a second preset sharing condition or not under the condition that the target application program is a sharable application program;
and sharing the interface of the target application program to the second electronic equipment under the condition that the second state meets a second preset sharing condition.
5. An electronic device, characterized in that the electronic device comprises:
the first determining module is used for determining second electronic equipment which has an interconnection relation with the first electronic equipment;
the sharing module is used for sharing the interface of the target application program to the second electronic equipment under the condition that the first electronic equipment starts a sharing function and the first state of the first electronic equipment meets a first preset sharing condition;
the electronic device further includes:
the instruction monitoring module is used for monitoring whether an input indicating screen turn-off is received or not before the interface of a target application program is shared to the second electronic equipment by the sharing module under the condition that the first electronic equipment starts a sharing function and the first state of the first electronic equipment meets a first preset sharing condition;
and the second determining module is used for turning off the screen of the first electronic equipment and determining that the first state of the first electronic equipment meets a first preset sharing condition under the condition that the input of indicating screen turning-off is received.
6. The electronic device of claim 5, further comprising:
the third determining module is used for determining a target application program before the sharing module shares an interface of the target application program to the second electronic device when the first electronic device starts a sharing function and the first state of the first electronic device meets a first preset sharing condition;
the fourth determining module is configured to determine whether the first electronic device starts a sharing function or not when the target application is a preset application and the preset parameter of the first electronic device does not meet a preset standard.
7. The electronic device of claim 5, further comprising:
the state determining module is used for determining whether the first electronic device is in a screen-off state or not before the sharing module shares the interface of the target application program to the second electronic device under the condition that the first electronic device starts a sharing function and the first state of the first electronic device meets a first preset sharing condition;
the time length determining module is used for determining the screen-off time length under the condition of the screen-off state; and under the condition that the screen-off duration is greater than a first preset duration, determining that the first state of the first electronic equipment meets a first preset sharing condition.
8. The electronic device of claim 7, wherein the sharing module comprises:
the determining submodule is used for determining whether the second state of the second electronic equipment meets a second preset sharing condition or not under the condition that the target application program is a sharable application program;
and the sharing submodule is used for sharing the interface of the target application program to the second electronic equipment under the condition that the second state meets a second preset sharing condition.
9. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the interaction method according to any one of claims 1 to 4.
CN201911047356.XA 2019-10-30 2019-10-30 Interaction method and electronic equipment Active CN110825709B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911047356.XA CN110825709B (en) 2019-10-30 2019-10-30 Interaction method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911047356.XA CN110825709B (en) 2019-10-30 2019-10-30 Interaction method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110825709A CN110825709A (en) 2020-02-21
CN110825709B true CN110825709B (en) 2022-08-02

Family

ID=69551589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911047356.XA Active CN110825709B (en) 2019-10-30 2019-10-30 Interaction method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110825709B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114237840A (en) * 2021-11-29 2022-03-25 Oppo广东移动通信有限公司 Resource interaction method, device, terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150049583A (en) * 2013-10-30 2015-05-08 삼성전자주식회사 Apparatus for sharing application and method for controlling thereof
CN106211033A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Data sharing method, device and electronic equipment
CN110381197A (en) * 2019-06-27 2019-10-25 华为技术有限公司 Many-one throws the processing method of screen sound intermediate frequency data, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10511895B2 (en) * 2015-10-09 2019-12-17 Warner Bros. Entertainment Inc. Cinematic mastering for virtual reality and augmented reality

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150049583A (en) * 2013-10-30 2015-05-08 삼성전자주식회사 Apparatus for sharing application and method for controlling thereof
CN106211033A (en) * 2016-06-28 2016-12-07 北京小米移动软件有限公司 Data sharing method, device and electronic equipment
CN110381197A (en) * 2019-06-27 2019-10-25 华为技术有限公司 Many-one throws the processing method of screen sound intermediate frequency data, apparatus and system

Also Published As

Publication number Publication date
CN110825709A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
CN110058836B (en) Audio signal output method and terminal equipment
CN108319442B (en) Audio playing control method and mobile terminal
CN111083684A (en) Method for controlling electronic equipment and electronic equipment
CN110445924B (en) Network task execution method and terminal equipment
CN111163260B (en) Camera starting method and electronic equipment
CN109144703B (en) Multitask processing method and terminal equipment thereof
CN108282759B (en) Service processing method and mobile communication terminal
US20210326479A1 (en) Permission Management Method and Terminal Device
CN111049980A (en) Application sharing method, electronic equipment and computer readable storage medium
CN110990172A (en) Application sharing method, first electronic device and computer-readable storage medium
CN111143002A (en) Application sharing method, electronic equipment and computer readable storage medium
CN111124706A (en) Application program sharing method and electronic equipment
CN111078186A (en) Playing method and electronic equipment
CN108924911B (en) Method and device for starting wifi hotspot sharing network
CN108419283B (en) WIFI hotspot scanning method and mobile terminal
CN111061404A (en) Control method and first electronic device
CN111131930B (en) Device resource control method, first electronic device, and computer-readable storage medium
CN107729100B (en) Interface display control method and mobile terminal
CN111026482B (en) Application program control method and electronic equipment
CN110825709B (en) Interaction method and electronic equipment
CN109992430B (en) Data transmission method, first terminal and second terminal
CN108259807B (en) Communication method, mobile terminal and computer readable storage medium
CN108541003B (en) VoWiFi call control method and device
CN110995816B (en) Sharing method and electronic device
CN111158781B (en) Application control method and electronic equipment

Legal Events

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