An application sharing method and device, electronic equipment and storage medium

By sending application identifiers and processing results through a short-range communication connection between the first and second devices, the problems of high hardware performance requirements and low efficiency in the prior art are solved, and application sharing with low cost and high efficiency is realized.

CN116647613BActive Publication Date: 2025-11-07BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210137812.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-15
Publication Date
2025-11-07
Estimated Expiration
2042-02-15

AI Technical Summary

Technical Problem

Existing application sharing solutions require strong hardware performance on mobile devices, resulting in high costs and low efficiency.

Method used

By obtaining the application identifier of the application to be shared on the first device, and sending the icon shortcut and processing results when there is a short-range communication connection with the second device, the computation is centralized on the first device, reducing the hardware performance requirements of the second device.

Benefits of technology

It reduces the cost of application sharing, improves efficiency, and enables a second device to share applications from a first device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116647613B_ABST
    Figure CN116647613B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an application sharing method and device and an electronic device. The method is applied to a first device and includes: obtaining an application identifier of an application to be shared in the first device, determining a second device; in a case where a connection exists between the first device and the second device, sending an icon shortcut of the application to be shared to the second device according to the application identifier; and in a case where a control instruction of the second device for the application to be shared is received, obtaining a processing result corresponding to the control instruction and sending the processing result to the second device. Thus, in a case where a connection exists between the first device and the second device, the first device sends an icon shortcut of the application to be shared to the second device, so that the second device can share the application to be shared on the first device, and the calculation is mainly concentrated on the first device, the hardware performance requirement of the second device is reduced, the cost of application sharing is reduced, and the efficiency of application sharing is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of computer, and particularly relates to an application sharing method and device and electronic equipment. BACKGROUND

[0002] The application sharing scheme in the related art, for example, multi-screen cooperation. The multi-screen cooperation supports computer end to control mobile phone end, including accessing the folder of the mobile phone end, starting the application of the mobile phone end, and the like, so as to realize the function of sharing the application of the mobile phone end on the computer end. However, the calculation in the above scheme is mainly on the mobile phone end, and the mobile phone end needs to have strong hardware performance, the cost of application sharing is high, and the efficiency is low. SUMMARY

[0003] The present disclosure provides an application sharing method, device and electronic equipment.

[0004] According to a first aspect of an embodiment of the present disclosure, an application sharing method is provided, applied to a first device, and the method comprises: obtaining an application identifier of an application to be shared in the first device; determining a second device, wherein the second device is in a short-distance communication state, and the second device is located within a short-distance communication range of the first device; in a case where a connection exists between the first device and the second device, sending an icon shortcut of the application to be shared to the second device according to the application identifier; and when a control instruction of the second device for the application to be shared is received, obtaining a processing result corresponding to the control instruction and sending the processing result to the second device.

[0005] In an embodiment of the present disclosure, the obtaining of the application identifier of the application to be shared in the first device comprises: when an application sharing operation is detected, determining whether the first device is in a short-distance communication enabled state; and when the first device is in the short-distance communication enabled state, obtaining the application identifier of the application to be shared corresponding to the application sharing operation.

[0006] In an embodiment of the present disclosure, the determining of the second device comprises: obtaining a device identifier list, wherein each device identifier in the device identifier list corresponds to a device located within the short-distance communication range of the first device and in the short-distance communication state; displaying the device identifier list; and when a selection request for the device identifier list is obtained, taking the device corresponding to the device identifier carried in the selection request as the second device.

[0007] In an embodiment of the present disclosure, when the connection exists between the first device and the second device, the sending of the icon shortcut of the application to be shared to the second device according to the application identifier comprises: when the connection exists between the first device and the second device, sending a sharing request to the second device through the connection; and when an indication is received for the sharing request, sending the icon shortcut of the application to be shared to the second device according to the application identifier.

[0008] In an embodiment of the present disclosure, the method further comprises: when the connection does not exist between the first device and the second device, sending a connection establishment request to the second device; and when an indication is received for the connection establishment request, establishing the connection between the first device and the second device.

[0009] In an embodiment of the present disclosure, when the control instruction of the second device for the application to be shared is received, the obtaining of a processing result corresponding to the control instruction and the sending of the processing result to the second device comprise: when the control instruction of the second device for the application to be shared is received, the obtaining of a processing result corresponding to the control instruction; the encoding processing of the processing result to obtain an encoded result; and the sending of the encoded result to the second device through the connection.

[0010] In an embodiment of the present disclosure, the method further comprises: when the connection between the first device and the second device is disconnected, obtaining a device identifier list; and when the device identifier list includes a device identifier of the second device, establishing the connection between the first device and the second device.

[0011] In an embodiment of the present disclosure, the connection between the first device and the second device is a p2p connection based on short-distance communication of the first device.

[0012] According to a second aspect of the embodiments of the present disclosure, an application sharing method is provided, applied to a second device, and the method comprises: receiving an icon shortcut of an application to be shared sent by a first device, wherein the second device is in a short-distance communication state, is located within a short-distance communication range of the first device, and has a connection with the first device; obtaining a control instruction for the icon shortcut of the application to be shared; and sending the control instruction to the first device to obtain a processing result corresponding to the control instruction.

[0013] In an embodiment of the present disclosure, the method further comprises: after the second device is disconnected from the first device, displaying the icon shortcut of the application to be shared.

[0014] In an embodiment of the present disclosure, the receiving the icon shortcut of the application to be shared sent by the first device comprises: receiving a sharing request carrying an application identifier of the application to be shared sent by the first device; sending an indication for the sharing request to the first device; and receiving the icon shortcut of the application to be shared sent by the first device according to the indication.

[0015] According to a third aspect of the embodiments of the present disclosure, an application sharing apparatus is provided, which is applied to a first device, and the apparatus comprises: a first obtaining module, configured to obtain an application identifier of an application to be shared in the first device; a determining module, configured to determine a second device, wherein the second device is in a short-distance communication state and is located within a short-distance communication range of the first device; a first sending module, configured to send an icon shortcut of the application to be shared to the second device according to the application identifier in a case where a connection exists between the first device and the second device; and a processing module, configured to obtain a processing result corresponding to a control instruction of the application to be shared when the control instruction of the second device is received, and send the processing result to the second device.

[0016] In an embodiment of the present disclosure, the first obtaining module is specifically configured to, when detecting an application sharing operation, determine whether the first device is in a short-distance communication enabled state; and obtain an application identifier of an application to be shared corresponding to the application sharing operation when the first device is in the short-distance communication enabled state.

[0017] In an embodiment of the present disclosure, the determining module is specifically configured to obtain a device identifier list, wherein each device identifier in the device identifier list corresponds to a device located within a short-distance communication range of the first device and in a short-distance communication state; display the device identifier list; and when a selection request for the device identifier list is obtained, take a device corresponding to a device identifier carried in the selection request as the second device.

[0018] In an embodiment of the present disclosure, the first sending module is specifically configured to, in a case where a connection exists between the first device and the second device, send a sharing request to the second device through the connection; and when an indication for the sharing request is received, send the icon shortcut of the application to be shared to the second device according to the application identifier.

[0019] In an embodiment of the present disclosure, the apparatus further includes a second sending module and a first establishing module; the second sending module is configured to send a connection establishing request to the second device in the absence of a connection between the first device and the second device; and the first establishing module is configured to establish a connection between the first device and the second device upon receiving an indication for the connection establishing request.

[0020] In an embodiment of the present disclosure, the processing module is specifically configured to, upon receiving a control instruction for the application to be shared from the second device, acquire a processing result corresponding to the control instruction; encode the processing result to obtain an encoded result; and send the encoded result to the second device through the connection.

[0021] In an embodiment of the present disclosure, the apparatus further includes a second acquiring module and a second establishing module; the second acquiring module is configured to acquire a device identifier list in the case where the connection between the first device and the second device is disconnected; and the second establishing module is configured to establish a connection between the first device and the second device when the device identifier list includes a device identifier of the second device.

[0022] In an embodiment of the present disclosure, the connection between the first device and the second device is a p2p connection based on short-distance communication of the first device.

[0023] According to a fourth aspect of the embodiments of the present disclosure, an application sharing apparatus is further provided, which is applied to a second device, and includes a receiving module, an acquiring module, and a sending module; the receiving module is configured to receive an icon shortcut of an application to be shared sent by a first device; the second device is in a short-distance communication state, is located within a short-distance communication range of the first device, and has a connection with the first device; the acquiring module is configured to acquire a control instruction for the icon shortcut of the application to be shared; and the sending module is configured to send the control instruction to the first device to acquire a processing result corresponding to the control instruction.

[0024] In an embodiment of the present disclosure, the apparatus further includes a display module; and the display module is configured to display the icon shortcut of the application to be shared after the second device is disconnected from the first device.

[0025] In an embodiment of the present disclosure, the receiving module is specifically configured to receive a sharing request carrying an application identifier of the application to be shared sent by the first device; send an indication for the sharing request to the first device; and receive the icon shortcut of the application to be shared sent by the first device according to the indication.

[0026] According to a fifth aspect of the embodiments of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the instructions to implement the application sharing method according to the first aspect or the application sharing method according to the second aspect.

[0027] According to a sixth aspect of the embodiments of the present disclosure, a non-transitory computer readable storage medium is provided, when instructions in the storage medium are executed by a processor, the processor is enabled to execute the application sharing method according to the first aspect or the application sharing method according to the second aspect.

[0028] The technical solutions provided by the embodiments of the present disclosure at least bring the following beneficial effects:

[0029] An application identifier of an application to be shared in a first device is acquired; a second device is determined, wherein the second device is in a short-distance communication state and is located within a short-distance communication range of the first device; in a case where a connection exists between the first device and the second device, an icon shortcut of the application to be shared is sent to the second device according to the application identifier; when a control instruction of the second device for the application to be shared is received, a processing result corresponding to the control instruction is acquired and sent to the second device. Thus, in a case where a connection exists between the first device and the second device, the first device sends the icon shortcut of the application to be shared to the second device, so that the second device can share the application to be shared on the first device, and the calculation is mainly concentrated on the first device, the hardware performance requirement of the second device is reduced, the cost of application sharing is reduced, and the efficiency of application sharing is improved.

[0030] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. BRIEF DESCRIPTION OF DRAWINGS

[0031] The accompanying drawings incorporated in and forming a part of the specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure without imposing undue limitations on the disclosure.

[0032] Figure 1 Flowchart of the application sharing method according to an embodiment of the present disclosure;

[0033] Figure 2 Flowchart of the application sharing method according to another embodiment of the present disclosure;

[0034] Figure 3 Schematic diagram of application sharing;

[0035] Figure 4 Schematic diagram of non-first application sharing;

[0036] Figure 5 Structure diagram of an application sharing device according to an embodiment of the present disclosure;

[0037] Figure 6 Structure diagram of an application sharing device according to another embodiment of the present disclosure;

[0038] Figure 7 Structure block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0039] In order for those skilled in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely below in conjunction with the accompanying drawings.

[0040] It should be noted that the terms "first", "second", and the like in the specification and claims of the present disclosure and the above-described drawings are used to distinguish similar objects, and do not necessarily have to describe a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure described herein can be implemented in an order other than that illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0041] Figure 1 Flowchart of an application sharing method according to an embodiment of the present disclosure. It should be noted that the application sharing method of the present embodiment is executed by an application sharing device, which can be implemented by software and / or hardware, and can be configured in an electronic device, which can be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device can be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a vehicle-mounted device, etc. with various operating systems, touch screens and / or display screens.

[0042] As shown in FIG. 1, the application sharing method is applied to a first device, and the method comprises the following steps: Figure 1

[0043] Step 101: Obtain the application identifier of an application to be shared in the first device.

[0044] ​In some embodiments, the process of step 101 performed by the first device may, for example, be as follows: upon detecting the application sharing operation, determining whether the first device is in a short-distance communication enabled state; and obtaining an application identifier of an application to be shared, which is targeted by the application sharing operation, when the first device is in the short-distance communication enabled state. It can be understood that the application identifier of the application to be shared, which is targeted by the application sharing operation, is the application identifier carried in the application sharing request.

[0045] In the above process, the first device may, for example, be a hardware device with hardware performance meeting certain requirements. The certain requirements may, for example, be processing requirements of the application to be shared, preset hardware performance requirements, and the like. The processing requirements may, for example, be at least one of the following: a processing speed greater than a preset speed, a storage speed greater than a preset speed, and the like. The hardware performance requirements may, for example, be at least one of the following: a processor operating frequency greater than a preset operating frequency, a storage capacity greater than a preset storage capacity, a cache capacity greater than a preset cache capacity, a screen resolution greater than a preset resolution, and the like, which can be set according to actual needs. The first device may, for example, be a mobile phone, a personal computer, a tablet, and the like. The application identifier refers to a unique identifier corresponding to each application, and an application can be uniquely determined according to the application identifier.

[0046] In the above process, the application sharing operation may, for example, be at least one of the following: a long press operation on the application to be shared, and a selection operation on a “share” button in a pop-up menu.

[0047] In the above process, the short-distance communication may, for example, be at least one of the following: wifi, Bluetooth, and the like. When the short-distance communication is wifi, the process of step 101 performed by the first device may, for example, be as follows: if it is determined that the first device is not in a hotspot enabled state, prompting to enable the hotspot function of the first device, so as to facilitate obtaining a device identifier list within a hotspot range. When the short-distance communication is Bluetooth, the process of step 101 performed by the first device may, for example, be as follows: if it is determined that the first device is not in a Bluetooth enabled state, prompting to enable the Bluetooth function of the first device, so as to facilitate obtaining a device identifier list within a Bluetooth communication range.

[0048] In some other embodiments, upon detecting the application sharing operation, if it is determined that the first device is not in a short-distance communication enabled state, i.e., the first device is in a short-distance communication disabled state, prompting to enable the short-distance communication function of the first device, so as to facilitate obtaining a device identifier list within a short-distance communication range.

[0049] The prompt mode for starting the short-distance communication function of the first device can be, for example, a text prompt, a voice prompt, a vibration prompt, etc. For example, when the short-distance communication mode is WiFi, the text prompt can be, for example, a pop-up text box, and the text prompt can be displayed in the text box, such as "please start the hotspot". For example, when the short-distance communication mode is Bluetooth, the text prompt can be, for example, a pop-up text box, and the text prompt can be displayed in the text box, such as "please start Bluetooth".

[0050] In some embodiments, when the application sharing operation is detected, if it is determined that the first device is not in the short-distance communication enabled state, the short-distance communication function of the first device can be automatically started, so that the first device enters the short-distance communication enabled state from the short-distance communication disabled state.

[0051] In step 102, a second device is determined, wherein the second device is in a short-distance communication state, and the second device is located within the short-distance communication range of the first device.

[0052] In some embodiments, the process of step 102 performed by the first device can be, for example, obtaining a device identifier list, wherein each device identifier in the device identifier list corresponds to a device located within the short-distance communication range of the first device and in a short-distance communication enabled state; displaying the device identifier list; and when a selection request for the device identifier list is obtained, the device corresponding to the device identifier carried in the selection request is taken as the second device.

[0053] The device identifier refers to an identifier corresponding to each device, which is used to uniquely identify the device. For example, the device identifier can be a device name, a device identifier code, etc. In this embodiment, the device identifier corresponding to the second device can be a device identifier code.

[0054] When the first device is in the short-distance communication enabled state, it can periodically scan other devices located within the short-distance communication range of the first device to obtain the device identifier list. The device identifier list includes devices having a connection with the first device and devices not having a connection with the first device.

[0055] The first device and the second device can be devices produced by the same device manufacturer, or devices produced by different device manufacturers. For example, they can be devices produced by device manufacturer A or devices produced by device manufacturer B, or the first device can be a device produced by device manufacturer A and the second device can be a device produced by device manufacturer B. The first device and the second device can have the same model or different models. For example, the first device and the second device can be different models of devices produced by device manufacturer A.

[0056] Step 103, in the case that the connection between the first device and the second device exists, sending the icon shortcut of the application to be shared to the second device according to the application identifier.

[0057] In some embodiments, the application sharing apparatus may, for example, perform the process of step 103 as follows: in the case that the connection between the first device and the second device exists, sending a sharing request to the second device through the connection; upon receiving an indication for the sharing request, sending the icon shortcut of the application to be shared to the second device according to the application identifier.

[0058] In the case that the connection between the first device and the second device is a p2p connection based on the short-distance communication of the first device.

[0059] In some other embodiments, in the case that the connection between the first device and the second device does not exist, sending a connection establishment request to the second device; upon receiving an indication for the connection establishment request, establishing the connection between the first device and the second device.

[0060] In one example, upon receiving the connection establishment request, the second device may prompt the user using the second device to select whether to allow the connection to be established, and upon detecting that the user selects to allow the connection to be established, return the indication for the connection establishment request to the first device; upon detecting that the user selects not to allow the connection to be established, do not process.

[0061] In another example, the second device may have a list of devices allowed to establish the connection; upon receiving the connection establishment request, if the device identifier of the first device in the connection establishment request exists in the list, return the indication for the connection establishment request to the first device; if the device identifier of the first device in the connection establishment request does not exist in the list, do not process.

[0062] In the case that the indication for the connection establishment request is not received, the first device may resend the connection establishment request to the second device until the number of requests reaches a preset threshold.

[0063] Step 104, upon receiving the control instruction of the second device for the application to be shared, obtaining a processing result corresponding to the control instruction and sending the processing result to the second device.

[0064] In some embodiments, the application sharing apparatus may, for example, perform the process of step 104 as follows: upon receiving the control instruction of the second device for the application to be shared, obtaining a processing result corresponding to the control instruction; performing encoding processing on the processing result to obtain an encoded result; sending the encoded result to the second device through the connection.

[0065] Specifically, the control instruction can be, for example, an opening instruction, a control single-click instruction, a control double-click instruction, a back instruction, and the like. Taking the opening instruction as an example, when the first device receives the opening instruction of the second device, the first device starts the to-be-shared application according to the opening instruction, obtains a display interface of the to-be-shared application, encodes the display interface to obtain an encoding result, and sends the encoding result to the second device through the connection. The processing result is the display interface after the to-be-shared application is started.

[0066] The display interface is encoded to convert the format of the display interface into a format suitable for transmission. Taking the transmission format as an example, the transmission format is a real-time transport protocol (RTP), and the encoding of the display interface is a format conversion process of the display interface according to the RTP protocol, to obtain an RTP protocol format display interface, that is, an encoding result, to facilitate transmission. In addition, the encoding of the display interface can reduce the amount of data to be transmitted and improve the transmission speed.

[0067] In some other embodiments, when the connection between the first device and the second device is disconnected, a device identifier list is obtained, and when the device identifier list includes the device identifier of the second device, the connection between the first device and the second device is established. The first device can store the device identifiers of each second device that has established a connection with the first device, and the identifiers of the applications shared on the second device. When the device identifier list includes the device identifier of the second device, the connection between the first device and the second device is established, and the application sharing process is performed. The first device can be provided with a connection record table, which stores the device identifiers of each second device that has established a connection with the first device, and the identifiers of the applications shared on the second device.

[0068] The application sharing method of the embodiment can be used to obtain the application identifier of the to-be-shared application by the first device, determine the second device, wherein the second device is in a short-distance communication enabled state, and the second device is located within the short-distance communication range of the first device, and when the connection between the first device and the second device exists, the icon shortcut of the to-be-shared application is sent to the second device according to the application identifier, and when the control instruction of the second device for the to-be-shared application is received, the processing result corresponding to the control instruction is obtained and sent to the second device. Therefore, when the connection between the first device and the second device exists, the icon shortcut of the to-be-shared application is sent from the first device to the second device, so that the second device can share the to-be-shared application on the first device, so that the calculation is mainly concentrated on the first device, the hardware performance requirement of the second device is reduced, the cost of application sharing is reduced, and the efficiency of application sharing is improved.

[0069] Figure 2 The flowchart of the application sharing method of another embodiment of the present disclosure is as follows:Figure 2 The application sharing method is applied to the second device, and the method can include:

[0070] In step 201, an icon shortcut of an application to be shared is received, which is sent by a first device. The second device is in a short-distance communication enabled state, is located in a short-distance communication range of the first device, and has a connection with the first device.

[0071] In some embodiments, the process of step 201 performed by the second device can be, for example, receiving a sharing request carrying an application identifier of the application to be shared, which is sent by the first device; sending an indication for the sharing request to the first device; and receiving an icon shortcut of the application to be shared, which is sent by the first device according to the indication.

[0072] The second device can receive the message sent by the first device only when the connection between the first device and the second device exists. Therefore, before the second device receives the sharing request carrying the application identifier of the application to be shared, which is sent by the first device, or before the second device receives the icon shortcut of the application to be shared, which is sent by the first device, the connection between the first device and the second device needs to be established, that is, at least one device with enabled short-distance communication is scanned, and when a connection establishment request of the first device is received from the at least one device, the connection between the first device and the second device is established. The second device scans the first device only when the second device is located in the short-distance communication range of the first device. The first device is a device in the at least one device that needs to perform the sharing process of the application to be shared.

[0073] The short-distance communication can be, for example, wifi or Bluetooth.

[0074] In step 202, a control instruction for the icon shortcut of the application to be shared is obtained.

[0075] The control instruction can be, for example, an opening instruction, a control single-click instruction, a control double-click instruction, a back instruction, and the like. Taking the opening instruction as an example, the second device determines that the opening instruction for the icon shortcut of the application to be shared is obtained when detecting a click operation of a user at a position of the icon shortcut.

[0076] In step 203, the control instruction is sent to the first device to obtain a processing result corresponding to the control instruction.

[0077] In this embodiment, the first device performs a background process on the application to be shared according to the control instruction after receiving the control instruction, and sends a processing result to the second device.

[0078] The first device starts the application to be shared according to the received start instruction, obtains a display interface of the application to be shared, encodes the display interface to obtain an encoding result, and sends the encoding result to the second device through the connection. The processing result is the display interface after the application to be shared is started.

[0079] The encoding of the display interface is to convert the format of the display interface into a format suitable for transmission. For example, the transmission format is the real-time transport protocol (RTP), and the encoding of the display interface is to convert the format of the display interface according to the RTP protocol format to obtain the display interface in the RTP protocol format, that is, the encoding result, to facilitate transmission. In addition, the encoding of the display interface can reduce the amount of data to be transmitted and improve the transmission speed. After receiving the encoding result, the second device can decode the encoding result, that is, convert the format of the display interface, to obtain the display interface to be displayed and perform display processing.

[0080] In the embodiment of the application, after the second device is disconnected from the first device, the second device can continue to display the icon shortcut of the application to be shared. That is, after the second device receives the icon shortcut of the application to be shared sent by the first device, the second device stores the icon shortcut, and the user can set whether the icon shortcut is displayed in the second device. When the second device is connected to the first device again, the second device and the first device can no longer transmit the icon shortcut, and directly trigger the control instruction of the icon shortcut of the application to be shared.

[0081] The application sharing method of the embodiment can receive the icon shortcut of the application to be shared sent by the first device, the second device is in a short-distance communication enabled state, is located in the short-distance communication range of the first device, and has a connection with the first device. The control instruction of the icon shortcut of the application to be shared is obtained, and the control instruction is sent to the first device to obtain the processing result corresponding to the control instruction. Thus, when the first device and the second device have a connection, the first device sends the icon shortcut of the application to be shared to the second device, so that the second device can share the application on the first device, the calculation is mainly concentrated on the first device, the hardware performance requirement of the second device is reduced, the cost of application sharing is reduced, and the efficiency of application sharing is improved.

[0082] For example, Figure 3 For the schematic diagram of application sharing, as Figure 3As shown, the following explanation uses Wi-Fi as the communication method for SMS. The first device turns on its Wi-Fi hotspot and sends a probe request to other devices within the hotspot's range. Based on the probe responses from other devices, a list of device identifiers is displayed. When the first device detects that a user has selected the shortcut icon of the application to be shared and clicked "share," the second device is selected from the device identifier list, and a sharing request is sent to it. The second device displays a sharing prompt. When the user on the second device clicks "OK," the second device confirms that it has received an instruction for the sharing request and returns this instruction to the first device. Upon receiving the instruction for the sharing request, the first device sends the shortcut icon of the application to be shared to the second device based on the application identifier. After receiving the shortcut icon, the second device detects the click operation on the shortcut icon to obtain control commands for that shortcut icon. For example, for the "START" command, the user input back channel (User InputBack) is used. The Channel (UIBC) sends an activation command to the first device; the first device starts the application to be shared according to the activation command and obtains the display interface of the application to be shared; the display interface is encoded to obtain the encoding result, and the encoding result is transmitted to the second device via wireless display (wifidisplay); the second device decodes the received encoding result to obtain the display interface and displays it.

[0083] Figure 4 This is a diagram illustrating sharing for non-first-time applications, such as... Figure 4 As shown, the first device can store the device identifiers of each second device that has established a connection with it, as well as the identifiers of applications shared on the second devices. The first device can have a connection record table that stores the device identifiers of each second device that has established a connection with it, and the identifiers of applications shared on the second devices. The second devices retain shortcuts to the icons of the applications to be shared. If the connection between the first and second devices is lost, the first device retrieves the device identifier list; if the device identifier list includes the device identifier of a second device, a connection is established between the first and second devices, and application sharing is performed.

[0084] Figure 5 This is a schematic diagram of the structure of an application sharing device according to an embodiment of the present disclosure.

[0085] like Figure 5 As shown, the application sharing device is used in a first device, the device comprising:

[0086] The first acquisition module 510 is used to acquire the application identifier of the application to be shared in the first device;

[0087] The determining module 520 is configured to determine a second device, wherein the second device is in a short-distance communication enabled state, and the second device is located in a short-distance communication range of the first device.

[0088] The first sending module 530 is configured to, in a case where a connection exists between the first device and the second device, send an icon shortcut of the to-be-shared application to the second device according to the application identifier.

[0089] The processing module 540 is configured to, when receiving a control instruction of the second device for the to-be-shared application, acquire a processing result corresponding to the control instruction and send the processing result to the second device.

[0090] In an embodiment of the present disclosure, the first acquiring module 510 is specifically configured to, when detecting an application sharing operation, determine whether the first device is in a short-distance communication enabled state; and when the first device is in the short-distance communication enabled state, acquire an application identifier of a to-be-shared application to which the application sharing operation is directed.

[0091] In an embodiment of the present disclosure, the determining module 520 is specifically configured to acquire a device identifier list, wherein each device identifier in the device identifier list corresponds to a device located in a short-distance communication range of the first device and in a short-distance communication enabled state; display the device identifier list; and when acquiring a selection request for the device identifier list, take a device corresponding to a device identifier carried in the selection request as the second device.

[0092] In an embodiment of the present disclosure, the first sending module 530 is specifically configured to, in a case where a connection exists between the first device and the second device, send a sharing request to the second device through the connection; and when receiving an indication for the sharing request, send an icon shortcut of the to-be-shared application to the second device according to the application identifier.

[0093] In an embodiment of the present disclosure, the apparatus further includes a second sending module and a first establishing module. The second sending module is configured to, in a case where a connection does not exist between the first device and the second device, send a connection establishing request to the second device; and the first establishing module is configured to, when receiving an indication for the connection establishing request, establish a connection between the first device and the second device.

[0094] In one embodiment of this disclosure, the processing module 540 is specifically configured to: upon receiving a control command from the second device for the application to be shared, obtain a processing result corresponding to the control command; encode the processing result to obtain an encoded result; and send the encoded result to the second device through the connection.

[0095] In one embodiment of this disclosure, the apparatus further includes: a second acquisition module and a second establishment module.

[0096] The second acquisition module is used to acquire a list of device identifiers when the connection between the first device and the second device is disconnected;

[0097] The second establishment module is used to establish a connection between the first device and the second device when the device identifier of the second device is included in the device identifier list.

[0098] In one embodiment of this disclosure, the connection between the first device and the second device is a p2p connection based on short-range communication of the first device.

[0099] It should be noted that the foregoing explanation of the application sharing method embodiment also applies to the application sharing device of this embodiment, and will not be repeated here.

[0100] In this embodiment, a first device obtains the application identifier of the application to be shared in the first device; a second device is determined, wherein the second device is in a short-range communication enabled state and is within the short-range communication range of the first device; when a connection exists between the first and second devices, the first device sends the icon shortcut of the application to be shared to the second device according to the application identifier; upon receiving a control command from the second device for the application to be shared, the first device obtains the processing result corresponding to the control command and sends the processing result to the second device. Thus, when a connection exists between the first and second devices, the first device sends the icon shortcut of the application to be shared to the second device, enabling the second device to share the application on the first device. This concentrates computation primarily on the first device, reducing the hardware performance requirements of the second device, lowering the cost of application sharing, and improving the efficiency of application sharing.

[0101] Figure 6 This is a schematic diagram of the structure of an application sharing device according to another embodiment of the present disclosure.

[0102] like Figure 6 As shown, the application sharing device is used in a second device, the device comprising:

[0103] The receiving module 610 is configured to receive an icon shortcut of an application to be shared sent by a first device, wherein the second device is in a short-distance communication enabled state, is located within a short-distance communication range of the first device, and has a connection with the first device;

[0104] The obtaining module 620 is configured to obtain a control instruction for the icon shortcut of the application to be shared.

[0105] The sending module 630 is configured to send the control instruction to the first device to obtain a processing result corresponding to the control instruction.

[0106] In an embodiment of the present disclosure, the apparatus further includes a display module configured to display the icon shortcut of the application to be shared after the second device is disconnected from the first device.

[0107] In an embodiment of the present disclosure, the receiving module 610 is specifically configured to receive a sharing request carrying an application identifier of the application to be shared sent by the first device, send an indication for the sharing request to the first device, and receive the icon shortcut of the application to be shared sent by the first device according to the indication.

[0108] It should be noted that the above description of the application sharing method embodiment is also applicable to the application sharing apparatus of the embodiment, and the embodiment will not be described again.

[0109] In the embodiments of the present disclosure, the second device receives an icon shortcut of an application to be shared sent by a first device, wherein the second device is in a short-distance communication enabled state, is located within a short-distance communication range of the first device, and has a connection with the first device, obtains a control instruction for the icon shortcut of the application to be shared, and sends the control instruction to the first device to obtain a processing result corresponding to the control instruction. Thus, in the case that there is a connection between the first device and the second device, the first device sends the icon shortcut of the application to be shared to the second device, so that the second device can share the application on the first device, so that the calculation is mainly concentrated on the first device, the hardware performance requirement of the second device is reduced, the cost of application sharing is reduced, and the efficiency of application sharing is improved.

[0110] According to a third aspect of the embodiments of the present disclosure, an electronic device is also provided, including a processor and a memory for storing processor-executable instructions, wherein the processor is configured to execute the instructions to implement the application sharing method as above.

[0111] In order to implement the above-mentioned embodiments, the present disclosure further provides a storage medium.

[0112] When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is enabled to perform the method as above.

[0113] To implement the above-mentioned embodiments, the present disclosure further provides a computer program product.

[0114] When the computer program product is executed by the processor of the electronic device, the electronic device is enabled to perform the method as above.

[0115] Figure 7 A structural block diagram of an electronic device according to an exemplary embodiment is shown. Figure 7 The electronic device shown is merely an example and should not bring any limitation to the function and use range of the embodiments of the present disclosure.

[0116] As shown in Figure 7 The electronic device 1000 includes a processor 111 which can perform various appropriate actions and processes according to programs stored in a read only memory (ROM) 112 or loaded into a random access memory (RAM) 113 from a storage 116. In the RAM 113, various programs and data required for the operation of the electronic device 1000 are also stored. The processor 111, the ROM 112, and the RAM 113 are connected to each other through a bus 114. An input / output (I / O) interface 115 is also connected to the bus 114.

[0117] The following components are connected to the I / O interface 115: the storage 116 including a hard disk or the like; and a communication section 117 including a network interface card such as a local area network (LAN) card, a modem, or the like, which performs communication processing via a network such as the Internet; and a drive 118 is also connected to the I / O interface 115 as necessary.

[0118] In particular, according to the embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program carried on a computer readable medium, which contains program codes for executing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by the communication section 117. When the computer program is executed by the processor 111, the above-mentioned functions defined in the methods of the present disclosure are performed.

[0119] In an exemplary embodiment, a storage medium including instructions, for example, a memory including instructions, is also provided, which can be executed by the processor 111 of the electronic device 1000 to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0120] In the present disclosure, a computer readable storage medium can be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, a computer readable signal medium can include a data signal that is propagated in baseband or that is propagated as part of a carrier wave. Such a propagated data signal can take a variety of forms, including but not limited to electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium can be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable storage medium can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0121] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. It is intended that the present disclosure cover any and all variations of the application that come within the scope of the following claims and their equivalents. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the application indicated by the following claims.

[0122] It is to be understood that the present disclosure is not limited to the precise construction herein described and as shown in the attached drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the claims that follow.

Claims

1. An application sharing method, characterized by, The method applied to a first device comprises: obtaining an application identifier of an application to be shared in the first device; obtaining and displaying a device identifier list, and when a selection request for the device identifier list is obtained, taking a device corresponding to a device identifier carried in the selection request as a second device, wherein a device corresponding to each device identifier in the device identifier list is within a short-distance communication range of the first device and is in a short-distance communication enabled state; when a connection exists between the first device and the second device, sending a sharing request to the second device through the connection, and when an indication for the sharing request is received, sending an icon shortcut of the application to be shared to the second device according to the application identifier; when a control instruction for the application to be shared is received from the second device, obtaining a processing result corresponding to the control instruction; performing encoding processing on the processing result to obtain an encoded result; and sending the encoded result to the second device through the connection.

2. The method of claim 1, wherein, The method further comprises: when an application sharing operation is detected, determining whether the first device is in a short-distance communication enabled state; when the first device is in the short-distance communication enabled state, obtaining an application identifier of an application to be shared corresponding to the application sharing operation.

3. The method of claim 1, wherein, The method further comprises: when no connection exists between the first device and the second device, sending a connection establishment request to the second device; when an indication for the connection establishment request is received, establishing a connection between the first device and the second device.

4. The method of claim 1, wherein, The method further comprises: when the first device and the second device are disconnected, obtaining a device identifier list; when a device identifier of the second device is included in the device identifier list, establishing a connection between the first device and the second device.

5. An application sharing method characterized by comprising: The method applied to a second device comprises: receiving an icon shortcut of an application to be shared sent by a first device, wherein the second device is in a short-distance communication enabled state, is within a short-distance communication range of the first device, and has a connection with the first device; obtaining a control instruction for the icon shortcut of the application to be shared; sending the control instruction to the first device to obtain an encoded result corresponding to the control instruction, which is determined by the method in any one of claims 1-4.

6. The method of claim 5, wherein, The method further comprises: after the second device is disconnected from the first device, displaying the icon shortcut of the application to be shared.

7. An application sharing apparatus characterized by comprising: The apparatus applied to a first device comprises: a first obtaining module configured to obtain an application identifier of an application to be shared in the first device; a determining module configured to obtain and display a device identifier list, and when a selection request for the device identifier list is obtained, take a device corresponding to a device identifier carried in the selection request as a second device, wherein a device corresponding to each device identifier in the device identifier list is within a short-distance communication range of the first device and is in a short-distance communication enabled state; The first sending module is configured to send a sharing request to the second device through the connection in a case where the connection exists between the first device and the second device, and send an icon shortcut of the application to be shared to the second device according to the application identifier when an indication is received for the sharing request. The processing module is configured to obtain a processing result corresponding to the control instruction when the control instruction for the application to be shared is received by the second device, encode the processing result to obtain an encoded result, and send the encoded result to the second device through the connection.

8. An application sharing apparatus characterized by comprising: The device is applied to a second device, and the device comprises: A receiving module is configured to receive an icon shortcut of an application to be shared sent by a first device, wherein the second device is in a short-distance communication enabled state, is located within a short-distance communication range of the first device, and has a connection with the first device. An obtaining module is configured to obtain a control instruction for the icon shortcut of the application to be shared. A sending module is configured to send the control instruction to the first device to obtain an encoded result corresponding to the control instruction, which is determined by the method in any one of claims 1-4.

9. An electronic device, comprising: It comprises: A processor; A memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the application sharing method in any one of claims 1-6.

10. A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor, the processor is enabled to execute the application sharing method in any one of claims 1-6.

Citation Information

Patent Citations

  • Information display method and device, electronic equipment and storage medium

    CN112286414A

  • Interface display method and device, electronic equipment and medium

    CN113190143A