Application sharing method, electronic device and computer-readable storage medium
This application provides an application sharing method, an electronic device, and a computer-readable storage medium. The method includes: receiving target application identification information and target device information; displaying, in a case that a first electronic device is connected to a target electronic device corresponding to the target device information, a running interface of a target application in a virtual screen; and sharing the running interface of the target application displayed in the virtual screen with the target electronic device.
1. An application sharing method, applicable to a first electronic device, the method comprising:
receiving target application identification information and target device information;
starting, in a case that the first electronic device is connected to a target electronic device corresponding to the target device information, a running interface of a target application corresponding to the target application identification information in a virtual screen, wherein the virtual screen is started in a background of the first electronic device; and
sharing the running interface of the target application displayed in the virtual screen with the target electronic device.
2. The method according to claim 1 , wherein the receiving target application identification information comprises:
receiving a first operation;
displaying identification information of at least one first application in response to the first operation; and
receiving a first selection operation for the target application identification information in the identification information of the at least one first application to obtain the target application identification information.
3. The method according to claim 2 , wherein the receiving a first operation comprises:
receiving a second operation on the first electronic device;
displaying a control window in response to the second operation, wherein the control window comprises an application sharing control; and
receiving a third operation for the application sharing control.
4. The method according to claim 3 , wherein after the displaying a control window, the method further comprises: updating a name of the application sharing control based on a name of the target application, wherein
an updated name of the application sharing control is displayed in the control window.
5. An electronic device, comprising a memory and a processor, the memory storing a computer program, the processor, when executing the computer program, implementing the following steps:
receiving target application identification information and target device information;
starting, in a case that the first electronic device is connected to a target electronic device corresponding to the target device information, a running interface of a target application corresponding to the target application identification information in a virtual screen, wherein the virtual screen is started in a background of the first electronic device; and
sharing the running interface of the target application displayed in the virtual screen with the target electronic device.
6. The electronic device according to claim 5 , wherein the processor, when executing the computer program, further implements the following steps:
receiving a first operation;
displaying identification information of at least one first application in response to the first operation; and
receiving a first selection operation for the target application identification information in the identification information of the at least one first application to obtain the target application identification information.
7. The electronic device according to claim 6 , wherein the processor, when executing the computer program, further implements the following steps:
receiving a second operation on the first electronic device;
displaying a control window in response to the second operation, wherein the control window comprises an application sharing control; and
receiving a third operation for the application sharing control.
8. The electronic device according to claim 7 , wherein the processor, when executing the computer program, further implements the following steps: updating a name of the application sharing control based on a name of the target application, wherein
an updated name of the application sharing control is displayed in the control window.
9. A non-transitory computer-readable storage medium, storing a computer program, wherein the computer program, when executed by a processor, implements the following steps:
receiving target application identification information and target device information;
starting, in a case that the first electronic device is connected to a target electronic device corresponding to the target device information, a running interface of a target application corresponding to the target application identification information in a virtual screen, wherein the virtual screen is started in a background of the first electronic device; and
sharing the running interface of the target application displayed in the virtual screen with the target electronic device.
10. The non-transitory computer-readable storage medium according to claim 9 , wherein the computer program, when executed by the processor, further implements the following steps:
receiving a first operation;
displaying identification information of at least one first application in response to the first operation; and
receiving a first selection operation for the target application identification information in the identification information of the at least one first application to obtain the target application identification information.
11. The non-transitory computer-readable storage medium according to claim 10 , wherein the computer program, when executed by the processor, further implements the following steps:
receiving a second operation on the first electronic device;
displaying a control window in response to the second operation, wherein the control window comprises an application sharing control; and
receiving a third operation for the application sharing control.
12. The non-transitory computer-readable storage medium according to claim 11 , wherein the computer program, when executed by the processor, further implements the following steps: updating a name of the application sharing control based on a name of the target application, wherein
an updated name of the application sharing control is displayed in the control window.