Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. 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 application.
Referring to fig. 1, in an embodiment, an application sharing method applied to a first electronic device is provided, and the method includes:
step 101: and receiving a first operation under the condition that the running interfaces of the N applications are displayed in a split screen mode.
N is an integer greater than 1. The first electronic device can simultaneously run at least two applications in the foreground through a split screen technology, that is, running interfaces of at least two applications are simultaneously displayed on one display screen of the first electronic device, the split screen displays running interfaces of N applications, that is, N applications currently running in the foreground of the first electronic device are represented, for example, the running interface of application X and the running interface of application Y are displayed in a split screen mode, and the application X and the application Y are running in the foreground. And a plurality of tasks are processed simultaneously, so that the task processing efficiency is improved. In addition, the user can conveniently observe the running interfaces of the multiple applications at the same time so as to know the running conditions of the multiple applications.
Under the condition that the running interfaces of the N applications are displayed on the first electronic device in a split screen mode, a user can perform first operation on the first electronic device to trigger a subsequent application sharing process.
Step 102: in response to the first operation, a running interface of a first application of the N applications is displayed in the virtual screen under the condition that the first electronic device is connected with the target electronic device.
The N applications are running in the foreground of the first electronic device, and the running interface of the first application in the N applications can be shared with the target electronic device, so that the connection between the first electronic device and the target electronic device needs to be established, that is, the running interface of the first application can be displayed in the virtual screen under the condition that the first electronic device is connected with the target electronic device, that is, the first application is still running.
Step 103: and sharing the running interface of the first application displayed in the virtual screen to the target electronic equipment.
After the running interface of the first application is displayed in the virtual screen, the running interface of the first application displayed in the virtual screen can be shared with the target electronic equipment, so that the sharing of the first application is realized.
In the application sharing method, the first electronic device displays the running interfaces of the N applications in a split screen mode, the running interface of the first application in the N applications can be displayed in the virtual screen after the first operation is received, and the running interface of the first application displayed in the virtual screen is shared with the target electronic device. Because the running interfaces of the N applications are displayed on the first electronic device in a split screen mode, namely the N applications run in the foreground, the running interface of the first application in the running sharing N application interfaces can be used, and the risk of information leakage is reduced. Meanwhile, sharing of the display content of the whole screen can be reduced, and the content in the whole screen can be exposed to the other side, so that the situation that information is unsafe is easily caused.
In an example, sharing the running interface of the first application displayed in the virtual screen to the target electronic device may include recording the virtual screen, and sharing a display screen sequence (i.e., the running interface corresponding to the first application) obtained by recording the screen to the target electronic device.
In one embodiment, displaying a running interface of a first application in a virtual screen includes: and displaying the running interface of the first application in a full screen mode in the virtual screen.
As the running interfaces of the N applications are displayed in a split screen mode in the foreground, namely, each application occupies a partial area to be displayed. In this embodiment, in response to the first operation, the running interface of the first application may be displayed in full screen in the virtual screen. And the running interface of the first application displayed in the full screen mode in the virtual screen is shared to the target electronic equipment. And after the target electronic equipment receives the running interface of the first application displayed in a full screen mode, the running interface of the first application can be displayed in the full screen mode. In one example, the first electronic device may share the running interface of the first application displayed in the virtual screen to the target electronic terminal through bluetooth, WIFI (wireless fidelity), or the like.
In one embodiment, displaying a running interface of a first application of the N applications in a virtual screen includes: and creating a virtual screen, and displaying the running interface of the first application in the N applications in the virtual screen.
That is, in response to the first operation, in the case where the first electronic device is connected to the target electronic device, the virtual screen may be created first, and then the execution interface of the first application may be displayed in the virtual screen, that is, the first application is still executing. At this time, the user may still perform other operations on the first electronic device, for example, related operations on other applications and performing other function operations, and the operations of the user on the first electronic device are not affected by the sharing of the first application. In one example, the running interface of the first application can be switched from the foreground to the virtual screen for display, so that the foreground can not display the running interface any more, and power consumption is reduced.
In one embodiment, creating a virtual screen in which to display a running interface of a first application of the N applications includes: and creating a virtual screen in the background, and displaying the running interface of the first application in the N applications in the virtual screen.
That is, in response to the first operation, in the case where the first electronic device is connected to the target electronic device, a virtual screen may be created in the background, the virtual screen running in the background, and the running interface of the first application is displayed in the virtual screen in the background, that is, the first application is still running. Since the virtual screen is created in the background, i.e., the virtual screen runs in the background, i.e., the running interface can run in the background. At this time, the user may still perform other operations on the first electronic device, for example, related operations on other applications and performing other function operations, and the operations of the user on the first electronic device are not affected by the sharing of the first application.
In one embodiment, displaying a running interface of a first application of the N applications in a virtual screen includes: and respectively displaying the running interfaces of M first applications in the N applications through M virtual screens, wherein M is an integer larger than 1 and is less than or equal to N.
Sharing the running interface of the first application displayed in the virtual screen to the target electronic device, comprising: and sharing the running interfaces of the M first applications displayed by the M virtual screens to the target electronic equipment.
The method comprises the steps that an operation interface of a first application is displayed in each virtual screen, M virtual screens display the operation interfaces of the M first applications, and then the operation interfaces of the M first applications displayed by the M virtual screens are shared with target electronic equipment. In this embodiment, the number of the first applications may be multiple, that is, multiple first applications may be shared, for example, there are M first applications, and M first applications may be shared, so as to meet the requirement of sharing multiple applications. In an example, the number of the target electronic devices may be multiple, that is, multiple first applications may be shared with the multiple target electronic devices, and the running interfaces of the M first applications may be all sent to each target electronic device.
In one embodiment, after displaying the running interface of the first application of the N applications in the virtual screen, the method includes: sharing the split-screen display parameters of the running interfaces of the M first applications to the target electronic equipment.
In the process of sharing the operation interfaces of the M first applications, the operation interfaces of the M first applications are displayed on the first electronic device in a split-screen mode, so that corresponding split-screen display parameters exist, and the first electronic device can share the operation interfaces with the target electronic device and can also share the split-screen display parameters with the target electronic device. After receiving the running interfaces and the split-screen display parameters of the M first applications, the target electronic equipment can perform split-screen display based on the split-screen display parameters, so that the display effect is closer to that of the first electronic equipment. In case M is equal to N, the display of the target electronic device may even be synchronized with the display of the first electronic device. In one example, the split-screen display parameter includes a split-screen ratio parameter, which is a ratio of the running interface of each application to the screen when the first electronic device is split-screen displayed.
In one embodiment, a first operation is received, comprising: a first operation on a running interface of a first application is received.
Although the running interfaces of the N applications are displayed on the first electronic device in a split screen mode, in the actual sharing process, part or all of the N applications are selected to be shared by the running interfaces. In this embodiment, the first application to be shared is determined through the first operation, that is, the operation is performed on the running interface of the application to be shared, so that the application to be shared can be realized.
In one embodiment, the first operation is an operation of sliding in a first preset direction, an operation of sliding in a second preset direction for a preset distance, an operation having at least two sliding tracks with different directions, or a touch operation with a touch duration exceeding a predetermined duration.
That is, in the present embodiment, the selection of the first application can be achieved by, but is not limited to, the above-described four operations. For example, the first application may be obtained by sliding on an interface where the first application runs along a first preset direction, and receiving the sliding operation, and the running interface of the first application may be displayed in the virtual screen subsequently under the condition that the first electronic device is connected to the target electronic device. For another example, the first application may be obtained by sliding a preset distance along a second preset direction on the running interface of the first application and receiving the sliding operation, and then the running interface of the first application may be displayed in the virtual screen when the first electronic device is connected to the target electronic device. For another example, the first application may be simultaneously slid in two different directions on the interface on which the first application is executed, two sliding tracks in different directions may be generated, the first application may be obtained by receiving the sliding operation, and the execution interface of the first application may be subsequently displayed in the virtual screen when the first electronic device is connected to the target electronic device. In addition, the first application can be determined to be the application needing sharing according to the touch duration on the running interface of the first application.
The sharing process is described below with an embodiment. So as to display the running interfaces of 2 applications, for example, the running interfaces of application X and application Y, on the first electronic device in a split screen manner, as shown in fig. 2.
First, the operation interface of one application is shared as an example for explanation.
The situation of horizontal screen splitting and vertical screen splitting can be distinguished, for a vertical screen splitting scene, as shown in fig. 2, an operation interface of an application X is in a first area of a display screen of first electronic equipment, an operation interface of an application Y is in a second area, and the application X sharing the first area slides from the top left/right corner of the top of the display screen to the middle of the first area along a diagonal line, as shown in fig. 2. The application Y sharing the second area slides along the diagonal from the bottom left/right corner of the screen to the middle of the second area. For a horizontal screen split scene, sharing application X is located on the left side, application Y is located on the right side, and then in the running interface of application X, sliding for a certain distance along the diagonal direction to the lower right (upper right) by pressing the upper left corner (lower left corner) of the display screen, and then triggering the sharing of application X. If the application Y is shared, sliding a certain distance from the upper right corner (lower right corner) of the display screen to the lower left (upper left) along the diagonal line to trigger the sharing of the application Y;
in addition, the horizontal screen splitting and the vertical screen splitting can not be distinguished, and for the situation that the horizontal screen splitting and the vertical screen splitting are not distinguished, a double-finger amplification action can be performed in an application running interface through double fingers (namely the double fingers slide simultaneously in different directions in the running interface, can slide simultaneously in opposite directions, and the like), and then a sharing function is triggered. And for the condition that the horizontal and vertical split screens are not distinguished, triggering the sharing function by long-time pressing the operation interface of the application.
When the sharing function is triggered, a prompt window is displayed in the application area, the prompt window includes sharable electronic devices, and as shown in fig. 3, one or more electronic devices can be selected as target electronic devices. The present embodiment is not limited to the number of target electronic devices, i.e., 1 or more target electronic devices can be supported. After the target electronic device is confirmed, the shared application can be displayed in a full screen mode in a virtual screen of the first electronic device, and can be transmitted to the target electronic device in a Bluetooth mode, a wifi (wireless fidelity) mode and the like. And after receiving the operation interface, the target electronic equipment displays the received operation interface in a full screen mode.
Then, the description will be given by taking an example of a running interface for sharing one or more applications.
Taking sharing of the N applications in the split-screen display as an example, the sharing function can be triggered by pressing a volume key and a power key (power key) at the same time, so that the N applications in the split screen display respectively display a full-screen-size running interface in a virtual screen, and meanwhile, split-screen proportion parameters among the N applications when the first electronic device displays the split screen display need to be recorded, and the running interfaces and the proportion parameters are uniformly shared to the target electronic device. And after receiving the running parameters of the N applications, the target electronic equipment realizes split-screen display according to the split-screen proportion parameters, and realizes synchronous display with the first electronic equipment.
As shown in fig. 4, the present application further provides a firstelectronic device 400 of an embodiment, including:
a firstoperation receiving module 401, configured to receive a first operation when running interfaces of N applications are displayed in a split screen manner, where N is an integer greater than 1;
acontrol module 402, configured to, in response to a first operation, display an execution interface of a first application of the N applications in a virtual screen when the first electronic device is connected to a target electronic device;
thesharing module 403 is configured to share the running interface of the first application displayed in the virtual screen to the target electronic device.
In one embodiment, the control module is used for displaying the running interface of the first application in a full screen mode in the virtual screen.
In one embodiment, the control module is configured to display running interfaces of M first applications in the N applications through M virtual screens, respectively, where M is an integer greater than 1 and M is not greater than N;
the sharing module is used for sharing the running interfaces of the M first applications displayed by the M virtual screens to the target electronic equipment.
In an embodiment, the sharing module is further configured to share the split-screen display parameters of the running interfaces of the M first applications to the target electronic device after the running interface of the first application of the N applications is displayed in the virtual screen.
In one embodiment, the first operation receiving module is used for receiving a first operation on a running interface of a first application.
Technical features in the electronic device provided in the embodiment of the present application correspond to technical features in the application sharing method, and each process of the application sharing method is implemented by the electronic device, and the same effect can be obtained.
Fig. 5 is a schematic hardware structure diagram of anelectronic device 500 for implementing various embodiments of the present application, where theelectronic device 500 includes, but is not limited to: aradio frequency unit 501, anetwork module 502, anaudio output unit 503, aninput unit 504, asensor 505, adisplay unit 506, auser input unit 507, aninterface unit 508, amemory 509, aprocessor 510, and apower supply 511. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 does not constitute a limitation of the electronic device, and that the electronic device 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 application, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted mobile terminal, a wearable device, a pedometer, and the like.
Theuser input unit 507 receives a first operation when running interfaces of N applications are displayed in a split screen manner, where N is an integer greater than 1; aprocessor 510, configured to, in response to a first operation, display a running interface of a first application of the N applications in a virtual screen in a case where the first electronic device is connected to a target electronic device; and sharing the running interface of the first application displayed in the virtual screen to the target electronic equipment.
Because the running interfaces of the N applications are displayed on the first electronic device in a split screen mode, the running interface of the first application shared in the N running applications can be obtained, and the risk of information leakage is reduced.
It should be understood that, in the embodiment of the present application, theradio frequency unit 501 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 theprocessor 510; in addition, the uplink data is transmitted to the base station. In general,radio frequency unit 501 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, theradio frequency unit 501 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 thenetwork module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
Theaudio output unit 503 may convert audio data received by theradio frequency unit 501 or thenetwork module 502 or stored in thememory 509 into an audio signal and output as sound. Also, theaudio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). Theaudio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
Theinput unit 504 is used to receive an audio or video signal. Theinput Unit 504 may include a Graphics Processing Unit (GPU) 5041 and amicrophone 5042, theGraphics processor 5041 Processing image data of still pictures or video obtained by an image capture electronic device (e.g., a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on thedisplay unit 506. The image frames processed by thegraphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via theradio frequency unit 501 or thenetwork module 502. Themicrophone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via theradio frequency unit 501 in case of the phone call mode.
Theelectronic device 500 also includes at least onesensor 505, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of thedisplay panel 5061 according to the brightness of ambient light, and a proximity sensor that can turn off thedisplay panel 5061 and/or a backlight when theelectronic device 500 is moved to the ear. 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); thesensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
Thedisplay unit 506 is used to display information input by the user or information provided to the user. TheDisplay unit 506 may include aDisplay panel 5061, and theDisplay panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Theuser input unit 507 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, theuser input unit 507 includes atouch panel 5071 andother input devices 5072.Touch panel 5071, 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 neartouch panel 5071 using a finger, stylus, or any suitable object or attachment).Touch panel 5071 may include two parts, a touch detection electronics and a touch controller. The touch detection electronic equipment 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 electronics, converts it to touch point coordinates, and sends the touch point coordinates toprocessor 510, receives commands fromprocessor 510, and executes the commands. In addition, thetouch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to thetouch panel 5071, theuser input unit 507 may includeother input devices 5072. In particular,other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, thetouch panel 5071 may be overlaid on thedisplay panel 5061, and when thetouch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to theprocessor 510 to determine the type of the touch event, and then theprocessor 510 provides a corresponding visual output on thedisplay panel 5061 according to the type of the touch event. Although in fig. 5, thetouch panel 5071 and thedisplay panel 5061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, thetouch panel 5071 and thedisplay panel 5061 may be integrated to implement the input and output functions of the electronic device, and is not limited herein.
Theinterface unit 508 is an interface for connecting an external electronic device to theelectronic device 500. For example, the external electronic 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 an electronic device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. Theinterface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external electronic device and transmit the received input to one or more elements within theelectronic device 500 or may be used to transmit data between theelectronic device 500 and the external electronic device.
Thememory 509 may be used to store software programs as well as various data. Thememory 509 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, thememory 509 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.
Theprocessor 510 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in thememory 509 and calling data stored in thememory 509, thereby performing overall monitoring of the electronic device.Processor 510 may include one or more processing units; preferably, theprocessor 510 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 intoprocessor 510.
Theelectronic device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, thepower supply 511 may be logically connected to theprocessor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system.
In addition, theelectronic device 500 includes some functional modules that are not shown, and are not described in detail herein.
The embodiment of the present application further provides an electronic device, which includes aprocessor 510 and amemory 509, where thememory 509 stores a computer program that can be run on theprocessor 510, and when the computer program is executed by theprocessor 510, the computer program implements each process in the above-mentioned embodiment of the application sharing method, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present application 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 above-mentioned embodiment of the application sharing method, 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 electronic device 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 electronic device. 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 electronic device 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 application 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 an electronic device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method of the embodiments of the present application.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.