Data sharing method, electronic device, and computer-readable storage medium
By simultaneously downloading data and establishing a communication connection upon detecting a second device, the problem of users waiting for data downloads to complete is solved, resulting in faster data sharing and a better user experience.
Patent Information
- Application Number
- PCT/CN2025/131433
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-16
- Filing Date
- 2025-10-30
- Publication Date
- 2026-11-19
AI Technical Summary
During data sharing between devices, users have to wait for the data to download completely before they can perform the sharing operation, resulting in a poor user experience, especially when the other device is not connected to the internet and cannot download data.
After the first electronic device detects the second electronic device, the first electronic device simultaneously performs the steps of data download and establishing a communication connection, without waiting for the communication connection to be established before downloading data, and decides whether to send data based on the data download status after the connection is established.
It speeds up data download and sharing, reduces user waiting time, and improves user experience.
Smart Images

Figure CN2025131433_19112026_PF_FP_ABST
Abstract
Description
A data sharing method, an electronic device, and a computer-readable storage medium
[0001] This application claims priority to Chinese Patent Application No. 202510643965.0, filed on May 16, 2025, with the China National Intellectual Property Administration, entitled “A Data Sharing Method, Electronic Device and Computer-Readable Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a data sharing method, electronic device, and computer-readable storage medium. Background Technology
[0003] With the popularization of smart electronic devices and the development of internet technology, smartphones, laptops, tablets, and other electronic devices have become indispensable products in people's daily lives. More and more users own multiple electronic devices simultaneously. For example, a user may own a mobile phone, tablet, smart screen, and personal computer at the same time. To improve efficiency, data sharing between devices is gradually becoming a mainstream trend. For example, a local device can conveniently share locally stored data with a remote device via a "tap" or similar method. However, if the data has already been uploaded to a server and is no longer stored locally on the local device, in some embodiments, the local device can wait for the data to be downloaded and stored locally before receiving a user's operation to send the data to the remote device. However, the user needs to wait for the data to download completely before performing the operation to send the data to the remote device, resulting in a poor user experience. In other embodiments, the local device can send the data download address to the remote device, and the remote device can then download the data from the server based on the download address. However, if the remote device is not connected to the internet, it will also be unable to download the data from the server. Summary of the Invention
[0004] This application provides a data sharing method, an electronic device, and a computer-readable storage medium. Implementing this method, when a first electronic device discovers a second electronic device, the first electronic device can simultaneously perform the steps of downloading first data and establishing a communication connection with the second electronic device. The first electronic device does not need to wait for the communication connection to be established before performing the step of downloading the first data, which can speed up the downloading process, reduce the user's waiting time, and also accelerate the sharing of first data between the first and second electronic devices.
[0005] Firstly, this application provides a data sharing method. The method is applied to a system including a first electronic device and a second electronic device, characterized in that the method includes:
[0006] A first electronic device displays a first interface with a first thumbnail indicating first data. The first electronic device receives a first operation instructing it to share the first data with a second electronic device. In response to the first operation, the first electronic device downloads the first data and displays the download progress. The first electronic device establishes a communication connection with the second electronic device. After establishing the communication connection, if the first data is not fully downloaded, the first electronic device waits for the download to complete before sending the first data to the second electronic device. If the first data has been fully downloaded, the first electronic device sends the first data to the second electronic device.
[0007] The first electronic device does not store the first data, thus saving storage space. After the first electronic device detects the second electronic device, it can download the first data from the server in real time.
[0008] The downloading of first data by the first electronic device and the establishment of a communication connection between the first electronic device and the second electronic device are performed in parallel.
[0009] The first data may include, but is not limited to, any one or more of the following: images, videos, GIFs, files, application installation packages, etc. The first operation includes, but is not limited to, any one of the following: bringing the first electronic device close to the second electronic device, air gesture operation, gesture operation applied to the display screen of the first electronic device, and input operation on the sharing control in the first interface.
[0010] Implementing this method, in response to the first operation, when the first electronic device discovers the second electronic device, the first electronic device can simultaneously perform the steps of downloading first data and establishing a communication connection with the second electronic device. The first electronic device does not need to wait for the communication connection to be established before performing the step of downloading the first data, which can speed up the downloading process, reduce the user's waiting time, and also accelerate the sharing of first data between the first and second electronic devices.
[0011] For example, the first data can be an image from a gallery application, such as image 3102; the first operation can be the operation of bringing electronic device 100 closer to electronic device 200 as shown in Figure 3D; and the download progress of the first data can be the prompt bar 3104 shown in Figure 3E.
[0012] In conjunction with the first aspect, in one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: the first electronic device displaying a first sharing interface; the first electronic device receiving and responding to a second operation on the first sharing interface and sending a first message to the second electronic device; in response to the first message, the second electronic device displaying a second sharing interface; and the second electronic device receiving and responding to a third operation on the second sharing interface and sending a second message to the first electronic device, the second message being used to instruct the second electronic device to confirm receipt of the first data.
[0013] In one possible implementation, if the first electronic device does not receive the second message sent by the second electronic device, the first electronic device confirms that the second electronic device has not confirmed receiving the first data.
[0014] By implementing this method, after the first electronic device and the second electronic device establish a communication connection, the first electronic device can display a first sharing interface, and the first electronic device can confirm the sharing of first data through a second operation performed by the user on the first sharing interface. The second electronic device can display a second sharing interface, and the second electronic device can confirm the receipt of the first data through a third operation performed by the user on the second sharing interface.
[0015] Optionally, before or after the first data download is complete, the first electronic device may receive and respond to a second operation on the first sharing interface, and / or the second electronic device may receive and respond to a third operation on the second sharing interface.
[0016] Preferably, before the first data download is completed, the first electronic device may receive and respond to a second operation on the first sharing interface, or / or the second electronic device may receive and respond to a third operation on the second sharing interface.
[0017] By implementing this method, there is no need to wait for the first data to be downloaded completely. The first electronic device can establish a communication connection with the second electronic device. The user on the local end can perform the operation of confirming the sharing of the first data, and the user on the other end can also perform the operation of confirming the receipt of the first data. This can reduce the time that the user on the local end has to wait for the electronic device to download the first data, thus improving the user experience.
[0018] For example, the first sharing interface can be the sharing interface shown in FIG3F, which may include an upward swipe sharing control 3108. The second operation on the first sharing interface can be the operation on the upward swipe sharing control 3108 shown in FIG3F, such as touching the upward swipe sharing control 3108 and swiping upwards. The first message can be a message sent by the sharing module in electronic device 100 to the sharing module in electronic device 200 after the display service module in electronic device 100 receives and responds to the operation of sharing the first data. The second message can be message 5 and / or message 6 and / or message 7 shown in FIG10.
[0019] For example, the second sharing interface can be interface 3300 as shown in Figure 3G(b), and the third operation for the second sharing interface can be the input operation for the receiving control 3110 as shown in Figure 3G(b), Figure 3M(b), or Figure 3O(b).
[0020] In conjunction with the first aspect, in one possible implementation, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device. Specifically, this includes responding to a second message sent by the second electronic device, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device.
[0021] In one possible implementation, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device, specifically including: in response to a second message sent by the second electronic device, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device.
[0022] In this way, the local user can confirm the sharing of the first data before or after the first data download is complete, and the remote user can confirm the receipt of the first data, without having to wait for the first data to finish downloading. This reduces the time the local user spends waiting for the first electronic device to download the first data, thus improving the user experience.
[0023] In conjunction with the first aspect, in one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: after the first electronic device receives and responds to a second operation on the first sharing interface, and before receiving a second message sent by the second electronic device, the first electronic device displays a first prompt message, the first prompt message being used to indicate waiting for the second electronic device to confirm receipt of the first data.
[0024] For example, the first prompt message may be capsule 3109 as shown in Figure 3G(a), Figure 3M(a), or Figure 3N(a).
[0025] Optionally, while the first electronic device is displaying the first prompt message, if the first data has not yet been downloaded, the first electronic device may display the download progress of the first data.
[0026] In conjunction with the first aspect, in one possible implementation, if the first data has not been completely downloaded, the first electronic device waits for the first data to be downloaded before sending the first data to the second electronic device, specifically including:
[0027] If the first data is not downloaded completely, the first electronic device displays a second prompt message, and the second electronic device displays a third prompt message. The second prompt message is used to instruct the first electronic device to wait for the first data to be downloaded, and the third prompt message is used to instruct the second electronic device to wait for the first data to be received. After the first data is downloaded, the first electronic device sends the first data to the second electronic device. The first electronic device displays a fourth prompt message, and the second electronic device displays a fifth prompt message. The fourth prompt message is used to instruct the first electronic device to send the first data, and the fifth prompt message is used to instruct the second electronic device to indicate the progress of the first data reception.
[0028] In some embodiments, the method further includes: after receiving a second message sent by a second electronic device, the first electronic device displays the download progress of the first data. That is, the first data is not completed before the second electronic device confirms receipt of the first data, and the first data is completed after the second electronic device confirms receipt of the first data. For example, refer to the description in the embodiments of Figures 3G-3K.
[0029] Implementing this method, after the second electronic device confirms receipt of the first data, if the first data has not yet been downloaded completely, the first electronic device can display a second prompt message, and the second electronic device can display a third prompt message. After the first data has been downloaded completely, the first electronic device can send the first data to the second electronic device, at which point the first electronic device can display a third prompt message, and the second electronic device can display a fourth prompt message.
[0030] For example, the second prompt message may be capsule 3112 as shown in Figure 3H(a) or Figure 3I(a). The third prompt message may be capsule 3113 as shown in Figure 3H(b) or Figure 3I(b). The fourth prompt message may be capsule 3116 as shown in Figure 3J(a). The fifth prompt message may be capsule 3117 as shown in Figure 3J(b).
[0031] In conjunction with the first aspect, in one possible implementation, if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device, specifically including: if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device, the first electronic device displays a fourth prompt message, and the second electronic device displays a fifth prompt message.
[0032] In some embodiments, the method further includes: after the first electronic device receives the first operation, the first electronic device displays the download progress of the first data; after the first electronic device receives and responds to the second operation for the first sharing interface, the first electronic device stops displaying the download progress of the first data. That is, the first data is downloaded before the first electronic device confirms sending the first data. For example, refer to the description in the embodiments of Figures 3L-3M.
[0033] In some embodiments, the method further includes: after the first electronic device receives and responds to a second operation on the first sharing interface, and before the first electronic device receives a second message sent by a second electronic device, the first electronic device further displays the download progress of the first data; after the first electronic device receives the second message sent by the second electronic device, the first electronic device stops displaying the download progress of the first data. That is, after the first electronic device confirms sending the first data, the first data has not yet been downloaded completely. Before the second electronic device confirms receiving the first data, the first data has been downloaded completely. For examples, please refer to the description in the embodiments of Figures 3N-3O.
[0034] Optionally, if the first data has been downloaded completely before the first electronic device confirms the transmission of the first data, the first electronic device may not display the download progress of the first data. For example, refer to the description in the embodiments shown in Figures 3L-3M.
[0035] Implementing this method, after the second electronic device confirms receipt of the first data, if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device, and the electronic device may display a third prompt message, while the second electronic device may display a fourth prompt message.
[0036] For example, the fourth prompt message could be capsule 3116 as shown in Figure 3J(a). The fifth prompt message could be capsule 3117 as shown in Figure 3J(b).
[0037] In summary, the timing of the first electronic device sending the first data to the second electronic device differs, and the prompts displayed by the first electronic device also differ.
[0038] Timing 1: The first data is not fully downloaded before the second electronic device confirms receipt of the first data, and the first data is fully downloaded after the second electronic device confirms receipt of the first data.
[0039] The prompts displayed by the first and second electronic devices may be as follows: After the first electronic device receives and responds to the second operation on the first sharing interface, but before the second electronic device receives and responds to the third operation on the second sharing interface, if the first data has not been downloaded completely, the first electronic device may display the download progress of the first data and the first prompt. After the second electronic device receives and responds to the third operation on the second sharing interface, if the first data has still not been downloaded completely, the first electronic device may continue to display the download progress of the first data and the second prompt, while the second electronic device displays the third prompt. After the first data is downloaded completely, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display the fourth prompt, and the second electronic device may display the fifth prompt.
[0040] For example, reference can be made to the description in the embodiments of Figures 3F-3K.
[0041] Timing 2: The first data is downloaded before the first electronic device confirms the transmission of the first data.
[0042] The prompts displayed by the first and second electronic devices may be as follows: First data download is completed before the first electronic device receives and responds to the second operation on the first sharing interface. After the first electronic device receives and responds to the second operation on the first sharing interface, and before the second electronic device receives and responds to the third operation on the second sharing interface, the first electronic device displays the first prompt. After the second electronic device receives and responds to the third operation on the second sharing interface, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display the fourth prompt, and the second electronic device may display the fifth prompt.
[0043] For example, reference can be made to the description in the embodiments shown in Figures 3L-3M.
[0044] Timing 3: The first data is not fully downloaded before the first electronic device confirms the transmission of the first data. The first data is fully downloaded after the first electronic device confirms the transmission of the first data but before the second electronic device confirms the receipt of the first data.
[0045] The prompts displayed by the first and second electronic devices may be as follows: After the first electronic device receives and responds to the second operation on the first sharing interface, if the first data has not been downloaded completely before the second electronic device confirms receipt of the first data, the first electronic device displays the download progress of the first data and a first prompt. If the first data has been downloaded completely before the second electronic device confirms receipt of the first data, the first electronic device may continue to display the first prompt. After the second electronic device confirms receipt of the first data, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display a fourth prompt, and the second electronic device may display a fifth prompt.
[0046] For example, reference can be made to the description in the embodiments of Figures 3N-3O.
[0047] By implementing this method, the first electronic device can display different prompts at different sharing stages. For example, during the download of first data by the first electronic device, the electronic device 100 can display the download progress of the first data. During the waiting period for the second electronic device to confirm receipt of the first data sent by the first electronic device, the first electronic device can display a prompt indicating that it is waiting for the second electronic device to confirm receipt. After the second electronic device confirms receipt of the first data sent by the first electronic device, during the period when the first electronic device sends the first data to the second electronic device, the first electronic device can display the sending progress of the first data, and the second electronic device can display the receiving progress of the first data. On the one hand, the user can accurately know which sharing stage they are in by observing the different prompts displayed by the first electronic device at different sharing stages. On the other hand, after the first electronic device moves closer to the second electronic device, the user only needs to perform a sharing operation once. Subsequently, the user only needs to pay attention to the prompts displayed by the first electronic device to know which sharing stage they are in. Furthermore, the different prompts displayed by the first electronic device at different sharing stages can also remind the user that the first data has not yet been shared, preventing the user from moving the first electronic device away from the second electronic device, closing the gallery application process, or running the gallery application in the background before the first data is successfully sent, which could lead to sharing failure.
[0048] In conjunction with the first aspect, in one possible implementation, the first thumbnail is a thumbnail of the first data, and the first thumbnail is displayed in both the first and second sharing interfaces.
[0049] In this way, when the first electronic device stores a thumbnail of the first data, the first electronic device can display the first thumbnail on the first sharing interface, so that the user can preview the content of the first data through the thumbnail of the first data to confirm the content of the first data sent to the second device.
[0050] In some embodiments, the first electronic device may not store a thumbnail of the first data, saving storage space. After receiving the first operation, the first electronic device then downloads the first data from the server.
[0051] In one possible implementation, the first thumbnail is not a thumbnail of the first data, and the method further includes: if the first electronic device has obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then when the first electronic device displays the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface.
[0052] Thus, if the first electronic device has already obtained a thumbnail of the first data before the electronic device 100 displays the sharing interface, the first electronic device can stop displaying the first thumbnail and display the thumbnail of the first data instead. The user on this end can preview the content of the first data through the thumbnail of the first data. For example, please refer to the description in the embodiment of Figure 12.
[0053] In one possible implementation, the first thumbnail is not a thumbnail of the first data; the method further includes: if the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then the first electronic device displays the first thumbnail in the first sharing interface; after the first electronic device displays the first sharing interface, and before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device obtains a thumbnail of the first data, then the first electronic device displays the thumbnail of the first data in the first sharing interface.
[0054] Thus, before the first electronic device receives confirmation from the local user to share the first data, if the first electronic device has already obtained a thumbnail of the first data, it can stop displaying the first thumbnail and instead display the thumbnail of the first data. The local user can then preview the content of the first data through the thumbnail. For example, please refer to the description in the embodiment shown in Figure 13.
[0055] In one possible implementation, a thumbnail of the first data is displayed on the second sharing interface; the method further includes: in response to a second operation, the first electronic device also sends the thumbnail of the first data to the second electronic device. In this way, the user at the other end can also preview the content of the first data through the thumbnail to confirm its content.
[0056] In conjunction with the first aspect, in one possible implementation, the first thumbnail is not a thumbnail of the first data, but the first thumbnail is displayed on the first sharing interface; the method further includes: if the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then the first electronic device displays the first thumbnail on the first sharing interface; after the first electronic device displays the first sharing interface, but before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device has not yet obtained a thumbnail of the first data, then the first electronic device continues to display the first thumbnail on the first sharing interface.
[0057] In some embodiments, the first thumbnail may also be referred to as a preset thumbnail.
[0058] Thus, once the first electronic device receives confirmation from the user to share the first data, and the thumbnail of the first data has been downloaded, the first electronic device no longer needs to update and display the thumbnail. This is because after the first electronic device sends the first thumbnail to the second electronic device, it has confirmed that the first data has been sent to the second electronic device, and the first electronic device no longer needs to display the thumbnail of the first data. For example, please refer to the description in the embodiment shown in Figure 11.
[0059] In conjunction with the first aspect, in one possible implementation, the method further includes: in response to the second operation, the first electronic device also sends a first thumbnail to the second electronic device. Thus, the first electronic device can also send a preset thumbnail to the second electronic device, which can then display the preset thumbnail.
[0060] Secondly, this application provides a data sharing method, the method comprising: a first electronic device displaying a first interface, the first interface displaying a first thumbnail, the first thumbnail being used to indicate first data; the first electronic device receiving a first operation, the first operation being used to instruct the first electronic device to share the first data to a second electronic device; in response to the first operation, the first electronic device downloading the first data and displaying the download progress of the first data; the first electronic device establishing a communication connection with the second electronic device; after the first electronic device and the second electronic device establish a communication connection, if the first data has not been downloaded completely, the first electronic device waiting for the first data to be downloaded completely before sending the first data to the second electronic device; if the first data has been downloaded completely, the first electronic device sending the first data to the second electronic device.
[0061] In conjunction with the second aspect, in one possible implementation, the first electronic device downloading the first data and the first electronic device establishing a communication connection with the second electronic device are executed in parallel.
[0062] In conjunction with the second aspect, in one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: the first electronic device displaying a first sharing interface; the first electronic device receiving and responding to a second operation on the first sharing interface and sending a first message to the second electronic device; the first electronic device receiving a second message sent by the second electronic device, the second message being used to instruct the second electronic device to confirm receipt of the first data.
[0063] In conjunction with the second aspect, in one possible implementation, the method further includes: if the first electronic device does not receive the second message sent by the second electronic device, the first electronic device confirms that the second electronic device has not confirmed receiving the first data.
[0064] In conjunction with the second aspect, in one possible implementation, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device. Specifically, this includes responding to a second message sent by the second electronic device, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device.
[0065] In conjunction with the second aspect, in one possible implementation, if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device, specifically including: in response to a second message sent by the second electronic device, if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device.
[0066] In conjunction with the second aspect, in one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: after the first electronic device receives and responds to a second operation on the first sharing interface, and before receiving a second message sent by the second electronic device, the first electronic device displays a first prompt message, the first prompt message being used to indicate waiting for the second electronic device to confirm receipt of the first data.
[0067] In conjunction with the second aspect, in one possible implementation, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded before sending the first data to the second electronic device. Specifically, if the first data has not been downloaded completely, the first electronic device displays a second prompt message, which instructs the first electronic device to wait for the first data to be downloaded; after the first data has been downloaded, the first electronic device sends the first data to the second electronic device, and the first electronic device displays a fourth prompt message, which instructs the first electronic device to send the first data.
[0068] In conjunction with the second aspect, in one possible implementation, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device, specifically including: if the first data has been downloaded, the first electronic device sends the first data to the second electronic device, and the first electronic device displays a fourth prompt message.
[0069] In conjunction with the second aspect, in one possible implementation, the method further includes: after receiving the second message sent by the second electronic device, the first electronic device displays the download progress of the first data.
[0070] In conjunction with the second aspect, in one possible implementation, the method further includes: after the first electronic device receives the first operation, the first electronic device displays the download progress of the first data; after the first electronic device receives and responds to the second operation for the first sharing interface, the first electronic device stops displaying the download progress of the first data.
[0071] In conjunction with the second aspect, in one possible implementation, the method further includes: after the first electronic device receives and responds to the second operation on the first sharing interface, and before the first electronic device receives the second message sent by the second electronic device, the first electronic device also displays the download progress of the first data; after the first electronic device receives the second message sent by the second electronic device, the first electronic device stops displaying the download progress of the first data.
[0072] In conjunction with the second aspect, in one possible implementation, the first thumbnail is a thumbnail of the first data, and the first thumbnail is displayed in both the first and second sharing interfaces.
[0073] In conjunction with the second aspect, in one possible implementation, the first thumbnail is not a thumbnail of the first data, and the method further includes: if the first electronic device has obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then when the first electronic device displays the first sharing interface, the first electronic device displays a thumbnail of the first data in the first sharing interface.
[0074] In conjunction with the second aspect, in one possible implementation, the first thumbnail is not a thumbnail of the first data; the method further includes: if the first electronic device has not obtained a thumbnail of the first data before displaying the first sharing interface, then the first electronic device displays the first thumbnail in the first sharing interface; after the first electronic device displays the first sharing interface, and before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device obtains a thumbnail of the first data, then the first electronic device displays the thumbnail of the first data in the first sharing interface.
[0075] In conjunction with the second aspect, in one possible implementation, a thumbnail of the first data is displayed on the second sharing interface; the method further includes: in response to the second operation, the first electronic device also sends a thumbnail of the first data to the second electronic device.
[0076] In conjunction with the second aspect, in one possible implementation, the first thumbnail is not a thumbnail of the first data, but the first sharing interface displays the first thumbnail; the method further includes: if the first electronic device has not obtained the thumbnail of the first data before the first electronic device displays the first sharing interface, then the first electronic device displays the first thumbnail in the first sharing interface; after the first electronic device displays the first sharing interface, but before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device has not yet obtained the thumbnail of the first data, then the first electronic device continues to display the first thumbnail in the first sharing interface.
[0077] In conjunction with the second aspect, in one possible implementation, the method further includes: in response to the second operation, the first electronic device also sends a first thumbnail to the second electronic device.
[0078] In conjunction with the second aspect, in one possible implementation, the first operation includes any of the following: an operation of bringing the first electronic device closer to the second electronic device, an air gesture operation, a gesture operation performed on the display screen of the first electronic device, or an input operation on the sharing control in the first interface.
[0079] Thirdly, this application provides an electronic device, namely a first electronic device, which includes one or more processors and one or more memories, wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they execute a data sharing method provided in any possible implementation of any of the above aspects.
[0080] Fourthly, this application provides a computer-readable storage medium including instructions that, when executed by a processor, perform a data sharing method provided in any possible implementation of any of the above aspects.
[0081] Fifthly, this application provides a computer program product containing instructions, including a computer program that, when executed by a processor, performs a data sharing method provided in any possible implementation of any of the above aspects.
[0082] In a sixth aspect, this application provides a chip system, which includes a processing circuit and an interface circuit. The chip system is characterized in that it includes a processing circuit and an interface circuit, wherein the interface circuit is used to receive code instructions and transmit them to the processing circuit, and the processing circuit is used to execute the code instructions to perform a data sharing method provided in any possible implementation of any of the above aspects.
[0083] For a description of the beneficial effects in aspects two through six, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description
[0084] Figure 1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0085] Figure 2 is a schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0086] Figures 3A-3O illustrate UI diagrams of electronic device 100 sharing images from its gallery to electronic device 200;
[0087] Figures 4A-4G illustrate a UI diagram of a group of electronic devices 100 simultaneously sending multiple images to electronic device 200;
[0088] Figures 5A-5D, 6A-6D, 7A-7C, 8, and 9A-9B show UI diagrams of several electronic devices 100 sending multiple images to electronic device 200.
[0089] Figure 10 shows a flowchart of a data sharing method provided in this application;
[0090] Figure 11 shows a flowchart of another data sharing method provided in this application;
[0091] Figure 12 shows a flowchart of another data sharing method provided in this application;
[0092] Figure 13 shows a flowchart of another data sharing method provided in this application;
[0093] Figure 14A shows a timing diagram of the completion of the first data download;
[0094] Figure 14B shows a timing diagram of the first electronic device 100 sending first data to the electronic device 200;
[0095] Figure 14C shows a timing diagram of the second electronic device 100 sending first data to the electronic device 200;
[0096] Figure 14D shows a timing diagram of the second electronic device 100 sending the first data to the electronic device 200;
[0097] Figure 15A shows a timing diagram of the completion of the download of the first and second data;
[0098] Figure 15B shows a timing diagram of the first electronic device 100 sending first data and second data to the electronic device 200;
[0099] Figure 15C shows a timing diagram of the second electronic device 100 sending first data and second data to the electronic device 200;
[0100] Figure 15D shows a timing diagram of the third electronic device 100 sending the first and second data to the electronic device 200;
[0101] Figure 15E shows a timing diagram of the fourth type of electronic device 100 sending first data and second data to electronic device 200;
[0102] Figure 15F shows a timing diagram of the fifth electronic device 100 sending first and second data to electronic device 200;
[0103] Figure 16 shows a flowchart illustrating the fifth data sharing method provided in this application. Detailed Implementation
[0104] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0105] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0106] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.
[0107] With the widespread adoption of smart electronic devices and the development of internet technology, smartphones, laptops, tablets, and other electronic devices have become indispensable products in people's daily lives. More and more users own multiple electronic devices simultaneously. For example, a user may own a mobile phone, tablet, smart screen, and personal computer at the same time. To improve efficiency, data sharing between devices is gradually becoming a mainstream trend.
[0108] To save storage space on the electronic device 100, the electronic device 100 can store data (such as pictures, files, videos, etc.) on a server. When a user needs to share or edit the data, the electronic device 100 can download the data from the server in real time.
[0109] For example, electronic device 100 can receive and share data (e.g., first data) stored on a server. In response to this operation, electronic device 100 can download the first data from the server. After the first data is downloaded, electronic device 100 establishes a communication connection with the target device (e.g., electronic device 200). After establishing a communication connection between electronic device 100 and electronic device 200, electronic device 100 receives confirmation from its own user (the user of electronic device 100) to share the first data. If electronic device 200 also confirms receipt of the first data, electronic device 100 then shares the first data with electronic device 200 through the communication connection. In other words, it is necessary to wait for electronic device 100 to download the first data before establishing a communication connection with the target device, and only after electronic device 100 establishes a communication connection with the target device can the user on the other end (the user of electronic device 200) confirm receipt of the first data, resulting in a poor user experience.
[0110] To reduce the time a user waits for electronic device 100 to download the first data, this application provides a data sharing method. In this method, when the first data is not stored in electronic device 100, electronic device 100 can receive a first operation to share the first data to a second electronic device. In response to the first operation, electronic device 100 can simultaneously perform the task of downloading the first data and the task of establishing a communication connection with electronic device 200. After electronic device 100 and electronic device 200 establish a communication connection, regardless of whether the first data has been downloaded completely, the user on the local end can perform an operation to confirm sharing the first data, and the user on the other end can also perform an operation to confirm receiving the first data.
[0111] After the peer user performs the operation of confirming receipt of the first data, the electronic device 100 can confirm whether the first data has been downloaded successfully.
[0112] If electronic device 100 confirms that the first data has not been completely downloaded, it can display a first message to prompt the local user to wait for the first data to download. Electronic device 200 can also display a second message to prompt the remote user to wait for the first data to be received. After the first data is downloaded, electronic device 100 then sends the first data to the second electronic device. Electronic device 100 can display the sending progress of the first data, and electronic device 200 can also display the receiving progress of the first data.
[0113] If electronic device 100 confirms that the first data has been downloaded completely, then electronic device 100 can send the first data to the second electronic device. Electronic device 100 can display the sending progress of the first data, and electronic device 200 can also display the receiving progress of the first data.
[0114] By implementing this method, the electronic device 100 can establish a communication connection with the target device without waiting for the first data to be downloaded. The user on the local end can perform the operation of confirming the sharing of the first data, and the user on the other end can also perform the operation of confirming the receipt of the first data. This can reduce the time that the user on the local end has to wait for the electronic device 100 to download the first data and improve the user experience.
[0115] Referring to Figure 1 below, the structure of the electronic device to which the method provided in the embodiments of this application is applicable will be described.
[0116] In some embodiments of this application, the electronic device may be a portable device, such as a mobile phone, tablet computer, wearable device with wireless communication capabilities (e.g., smartwatch, smart glasses, etc.), in-vehicle terminal device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), smart home device (e.g., smart TV, smart speaker, etc.), smart robot, workshop equipment, wireless terminal in self-driving, wireless terminal in remote medical surgery, wireless terminal in smart grid, wireless terminal in transportation safety, wireless terminal in smart city, or wireless terminal in smart home, flying equipment (e.g., smart robot, drone, airplane), etc. Wearable devices are portable devices that users can wear directly on their body or integrate into their clothing or accessories.
[0117] In some embodiments of this application, the electronic device may also be a portable terminal device that includes other functions. Exemplary embodiments of the portable terminal device include, but are not limited to, carrying... Alternatively, it could be a portable terminal device with another operating system. The aforementioned portable terminal device could also be other portable terminal devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of this application, the aforementioned electronic device may not be a portable terminal device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0118] For a description of the performance of electronic devices, please refer to the relevant descriptions below.
[0119] Referring to Figure 1 below, the structure of the electronic device to which the method provided in the embodiments of this application is applicable will be described.
[0120] As shown in Figure 1, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a USB interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a display screen 194, and a SIM card interface 195, etc.
[0121] The sensor module 180 may include a gyroscope sensor 180B, a magnetic sensor 180D, an accelerometer sensor 180E, a proximity sensor 180F, a touch sensor 180K, etc. The sensor module 180 may also include a temperature sensor, a pressure sensor, a proximity sensor, a fingerprint sensor, an ambient light sensor, a barometric pressure sensor, a bone conduction sensor, etc.
[0122] It is understood that the electronic device 100 shown in Figure 1 is merely an example and does not constitute a limitation on the electronic device. Furthermore, the electronic device may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in Figure 1 can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits (ASICs).
[0123] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, memory, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). Different processing units may be independent devices or integrated into one or more processors. The controller may serve as the central nervous system and command center of the electronic device 100. The controller can generate operation control signals based on instruction opcodes and timing signals to control instruction fetching and execution.
[0124] The processor 110 may also include a memory for storing instructions and data.
[0125] The execution of the display method provided in this application embodiment can be controlled by the processor 110 or by calling other components. For example, it can call the processing program of this application embodiment stored in the internal memory 121, or call the processing program of this application embodiment stored in a third-party device through the external memory interface 120 to control the wireless communication module 160 to perform data communication with other devices, thereby improving the intelligence and convenience of the electronic device 100 and enhancing the user experience. The processor 110 may include different devices. For example, when integrating a CPU and a GPU, the CPU and GPU can cooperate to execute the display method provided in this application embodiment. For example, some algorithms in the display method can be executed by the CPU, and other algorithms can be executed by the GPU to achieve faster processing efficiency.
[0126] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. Display screen 194 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces (GUIs). For example, display screen 194 can display various interfaces from the embodiments of this application.
[0127] In this embodiment of the application, the display screen 194 can be a single flexible display screen, or it can be a splicing display screen composed of two rigid screens and a flexible screen located between the two rigid screens.
[0128] The electronic device 100 may also include a camera (a front-facing camera or a rear-facing camera, or a camera that can function as both a front-facing and a rear-facing camera), which is used to capture still images or videos.
[0129] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121.
[0130] The internal memory 121 may also store one or more computer programs corresponding to the algorithm of this application. The one or more computer programs are stored in the internal memory 121 and configured to be executed by one or more processors 110. The one or more computer programs include instructions that can be used to perform the various steps in the following embodiments.
[0131] Of course, the algorithm code of the embodiment of this application can also be stored in external memory. In this case, the processor 110 can run the algorithm code of the embodiment of this application stored in external memory through the external memory interface 120.
[0132] A touch sensor, also known as a "touch panel". The touch sensor can be set on the display screen 194, and the touch sensor and the display screen 194 together form a touch display screen, also known as a "touch screen".
[0133] For example, the display screen 194 of the electronic device 100 can display a main interface, which includes icons for multiple applications (such as a gallery application). For instance, a user can tap the gallery application icon on the main interface using a touch sensor, triggering the processor 110 to launch the gallery application, and the display screen 194 will then show the gallery application's interface.
[0134] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.
[0135] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.
[0136] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (WiFi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc.
[0137] In addition, the electronic device 100 can implement audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, and an application processor.
[0138] In some embodiments, the electronic device 100 may further include buttons, motors, indicators, etc. The electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of the electronic device 100. The electronic device 100 can utilize a motor to generate vibration alerts (such as vibration alerts for incoming calls). The indicators in the electronic device 100 may be indicator lights, used to indicate charging status, battery level changes, or to indicate messages, missed calls, notifications, etc.
[0139] The SIM card interface 195 in the electronic device 100 is used to connect a SIM card. The SIM card can be inserted into or removed from the electronic device 100 to achieve contact and separation with the electronic device 100.
[0140] It should be understood that in practical applications, the electronic device 100 may include more or fewer components than those shown in FIG. 1, and the embodiments of this application are not limited thereto. The illustrated electronic device 100 is merely an example, and the electronic device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0141] Please refer to Figure 2, which exemplarily shows a software structure block diagram of electronic device 100.
[0142] The electronic device provided in this application embodiment can run an operating system (OS). This operating system can be various operating systems used in industry, such as operating systems developed based on OpenHarmony, like HarmonyOS; or other operating systems such as Android™, iOS mobile operating systems; it can also be various open-source operating systems or their derivatives, such as Linux OS, and other embedded operating systems; or it can be a future new operating system, such as an AI operating system based on artificial intelligence. An operating system is a set of interconnected system software programs that manage and control the operation of electronic devices, utilize and run hardware and software resources, and provide public services to organize user interaction. In electronic devices, the operating system connects downwards to the physical devices at the hardware layer and provides a runtime environment for application software upwards.
[0143] An operating system typically includes a kernel layer, a middleware layer, and an application layer. The application layer includes applications, which can include system applications and third-party applications. The middleware layer includes a suite of software providing various services to application developers, or frameworks providing services such as databases, multimedia, and graphics, or capabilities such as distributed scheduling and system expansion. For example, the middleware layer may include a framework layer and / or a system service layer. The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The system service layer includes the core capabilities of the system, providing services to applications through the framework layer. The kernel layer is the layer between hardware and software. The kernel layer may include hardware drivers and the operating system kernel. In addition to providing hardware drivers, the kernel layer also supports functions such as memory management and system process management. Hardware includes multiple...
[0144] The electronic devices we use in our daily lives come in various types and forms, and are applied in a wide range of scenarios. Therefore, based on the different forms and functions of electronic devices, different application scenarios, and different user needs, the operating systems used in these devices may also differ. The basic functions implemented by the electronic device provided in this application can be implemented using a general-purpose operating system or a dedicated operating system. To more clearly illustrate the implementation of the embodiments of this application under a specific operating system, the architecture of HarmonyOS is shown below. Those skilled in the art can deduce the implementation of the embodiments of this application under other specific operating systems, such as AAndroid™.
[0145] As shown in Figure 2, the software architecture of an electronic device can be divided into several layers. In some embodiments, from bottom to top, these layers are: kernel layer, system service layer, framework layer, and application layer. Layers communicate with each other through software interfaces. System functions can be tailored, added, or combined at the subsystem level in different device deployment scenarios, and each subsystem can also be tailored, added, or combined at the functional level.
[0146] The Kernel Abstraction Layer (KAL) provides basic kernel capabilities to upper layers by shielding the differences between multiple kernels, including but not limited to process / thread management, memory management, file system, network management, and peripheral device management.
[0147] Kernel Subsystem: Supports the selection of a suitable OS kernel for different resource-constrained devices, including but not limited to Linux kernel, HarmonyOS kernel, LiteOS (Lite Operating System), etc.
[0148] Driver Subsystem: The driver framework is the foundation for the open system hardware ecosystem, providing unified peripheral access capabilities and a framework for driver development and management. The driver framework includes: display drivers, camera drivers, audio drivers, Bluetooth drivers, sensor drivers, etc.
[0149] The system service layer comprises the core capabilities of the system, providing services to applications through the framework layer. This layer includes, but is not limited to, the following subsystems:
[0150] The system's basic capability subsystem set provides fundamental capabilities for the operation, scheduling, and migration of distributed applications across multiple devices. This set may include distributed soft bus, distributed data management, distributed task scheduling, and Ark multi-language runtime; it may also include multi-modal input subsystem, graphics subsystem, security subsystem, and AI sub-business system.
[0151] Basic software service subsystem set: provides public and general software services; the basic software service subsystem set may include event notification subsystem, telephone service subsystem, multimedia subsystem, etc.
[0152] Enhanced software service subsystem suite: Provides differentiated enhanced software services for different devices; the enhanced software service subsystem suite may include smart screen proprietary business subsystem, wearable proprietary business subsystem, IoT proprietary business subsystem, etc.
[0153] Hardware service subsystem set: Provides hardware services; the hardware service subsystem set may include location service subsystem, user IAM (Identity and Access Management) subsystem, wearable proprietary hardware service subsystem, biometric identification, IoT proprietary hardware service subsystem, etc.
[0154] Distributed task scheduling enables distributed service management (discovery, synchronization, registration, and invocation), supporting remote startup, remote invocation, remote connection, and migration of applications across devices.
[0155] Distributed data management enables data synchronization, data storage, data sharing, and data access across all scenarios and devices.
[0156] The distributed soft bus provides communication-related capabilities for seamless interconnection between multiple devices, including: WLAN service capabilities, Bluetooth service capabilities, soft bus, inter-process communication (IPC), and StarFlash communication capabilities.
[0157] Ark Multilingual Runtime is a unified compilation runtime platform designed to support the joint compilation and execution of multiple programming languages and multiple chip platforms.
[0158] In some embodiments, the system service layer further includes a sharing service module. The sharing service module includes a sharing module and a collaboration framework module.
[0159] The collaboration framework module is used to discover other devices. For example, it can receive device discovery broadcasts from other devices (such as electronic device 200) to confirm that electronic device 200 is near electronic device 100. The collaboration framework module can also send device discovery broadcasts to other devices, allowing devices near electronic device 100 to confirm its proximity to electronic device 200 based on these broadcasts. The sharing module is used to establish a short-range communication connection with electronic device 200. This short-range communication connection includes, but is not limited to, any of the following: Bluetooth, Wi-Fi, NFC, infrared (IR), ultra-wideband (UWB), ZigBee, etc.
[0160] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications in the application layer. The framework layer includes: the ArkUI framework (which provides a complete infrastructure for UI development of system applications, including UI functions such as components, layouts, animations, and interactive events, as well as a real-time interface preview tool), the user application framework, and the Ability framework (an Ability is a lightweight application; the Ability framework schedules and manages the operation and lifecycle of Abilities). Different devices may have different operating systems, and the APIs they support may also differ.
[0161] The HarmonyOS API is a series of open capabilities provided to support HarmonyOS application development. The HarmonyOS API can be set at the framework layer or independently of the framework layer. The HarmonyOS API includes the Audio API (audio service), Push API (push service), and Account API (account service), among others.
[0162] Applications can include system apps and extended / third-party apps. System apps can include the desktop, control bar, settings, contacts, phone, camera, gallery, etc., while extended / third-party apps can include, but are not limited to, social apps, travel apps, etc.
[0163] The following section provides a detailed explanation of the data sharing method provided in this application, using UI diagrams and flowcharts.
[0164] To facilitate understanding of this application, the embodiments of this application will be described using the example of electronic device 100 receiving a user operation to share pictures from a gallery application with electronic device 200.
[0165] In some embodiments, electronic device 100 may receive a user operation to select a picture in a gallery application and share that picture with electronic device 200.
[0166] In other embodiments, electronic device 100 may also receive user operations to select multiple images from a gallery application and share those images with electronic device 200.
[0167] The following explanations will be provided using these two scenarios as examples.
[0168] Understandably, to save storage space on the electronic device 100, it can store images from its gallery application on a server. The electronic device 100 can store thumbnails of the images, allowing users to preview their content. When a user needs to share or edit an image, the electronic device 100 can download it from the server. After downloading, the electronic device 100 then sends the image to the target device.
[0169] 1. A scenario where electronic device 100 receives a user's operation, selects a picture in the gallery application, and shares the picture with electronic device 200.
[0170] Figures 3A-3O illustrate UI diagrams of electronic device 100 sharing images from its gallery to electronic device 200.
[0171] Figure 3A exemplarily illustrates a user interface on an electronic device 100 for displaying applications installed on the electronic device 100. This user interface may include: a status bar 1001, a calendar indicator, a weather indicator, a tray 1004 with icons of commonly used applications, and other application icons 1002. Wherein:
[0172] Other application icons 1002 may include browser application icons, gallery application icons, music application icons, shopping app icons, email application icons, cloud sharing application icons, notes application icons, settings application icons, etc. Below these application icons, a page indicator 1003 may also be displayed to indicate the positional relationship between the currently displayed page and other pages. Below the page indicator is a tray icon 1004 containing frequently used application icons, which may include camera application icons, contacts application icons, messaging application icons, and dialer application icons. The application icons remain displayed when switching pages.
[0173] Electronic device 100 can detect user actions performed on the gallery application icon, and in response to the action, electronic device 100 can display the gallery interface 3100 shown in Figure 3B. The gallery interface 3100 can be the default user interface of the gallery application, on which the local user can view the pictures and / or videos stored in the gallery application.
[0174] It is understood that the user operations mentioned in this application may include, but are not limited to, touch, click, voice control, gesture, etc., and this application does not impose any restrictions on them.
[0175] As shown in Figure 3B, the image library interface 3100 includes thumbnails of multiple images and a selection control 3103. The thumbnails of the multiple images may include thumbnails of image 3101 and image 3102. The user on this device can select any one or more images and send the selected one or more images to the electronic device 200.
[0176] Understandably, to save storage space on the electronic device 100, the electronic device 100 can store images 3101 and 3102 on a server, such as a cloud storage server provided by the device manufacturer of the electronic device 100. The electronic device 100 can store thumbnails of images 3101 and 3102. When a user needs to share images 3101 and / or 3102, the electronic device 100 can download images 3101 and / or 3102 from the server.
[0177] If the user on this end needs to send image 3102 to electronic device 200, as shown in Figures 3B and 3C, electronic device 100 can receive the user's operation on image 3102. In response to the operation, electronic device 100 can display the large image interface 3200 shown in Figure 3C.
[0178] As shown in Figure 3C, the large image interface 3200 includes a thumbnail of image 3102 and multiple operation controls, which may include a share control, a favorite control, an edit control, a delete control, and more. The local user can use the share control to send image 3102 to an application on electronic device 100 or to electronic device 200 that has established a communication connection with electronic device 100. The local user can use the favorite control to favorite image 3102. The local user can use the edit control to edit image 3102, such as cropping or adding a watermark. The local user can use the delete control to delete the thumbnail of image 3102 displayed in the gallery interface 3100. It can be understood that the thumbnail size of image 3102 in Figure 3C is larger than the thumbnail size of image 3102 in Figure 3B; such larger thumbnails can also be called preview images.
[0179] If a user on this device sends image 3102 to electronic device 200, in some embodiments, the user can click a share control, then select the sharing method and the target electronic device (e.g., electronic device 200), triggering electronic device 100 and electronic device 200 to establish a communication connection. Afterwards, electronic device 100 can send the downloaded image 3102 to electronic device 200 through the communication connection. The communication connection can include near-field communication (NFC) or remote connection. NFC connections include, but are not limited to, any one or more of the following: Bluetooth connection, Wi-Fi connection, NFC connection, IR connection, UWB connection, ZigBee connection, etc. Remote connections include, but are not limited to, server connections, etc.
[0180] In other embodiments, electronic device 100 can also bring electronic device 100 close to electronic device 200 to trigger the establishment of a communication connection between electronic device 100 and electronic device 200, without requiring the user on the local end to manually select the sharing method and the target electronic device for sharing, thus saving user operation.
[0181] For example, as shown in Figures 3D and 3E, electronic device 100 can bring itself closer to electronic device 200, and in response to electronic device 100 bringing itself closer to electronic device 200, electronic device 100 can establish a communication connection with electronic device 200.
[0182] In response to electronic device 100 approaching electronic device 200, upon detecting electronic device 200, electronic device 100 can download image 3102 and display a prompt bar 3104 as shown in Figure 3E. The prompt bar 3104 includes a progress bar 3105, text, and a stop download control 3106. The text may include "Downloading photo...10%", indicating that the download progress of image 3102 is 10%. The progress bar 3105 also indicates the download progress of image 3102. As the download progress of image 3102 increases, the area occupied by the black indicator bar in the progress bar 3105 will increase, and the area occupied by the white indicator bar in the progress bar 3105 will decrease until the progress bar 3105 is completely occupied by the black indicator bar, indicating that image 3102 has been downloaded completely. The user on this end can trigger electronic device 100 to stop downloading image 3102 and also stop sending image 3102 to electronic device 200 using the stop download control 3106.
[0183] In response to electronic device 100 approaching electronic device 200, after establishing a communication connection between the two devices, electronic device 100 can display card 3107 and a swipe-up sharing control 3108 as shown in Figure 3F, and / or related instructions to inform the user what action to take to trigger sharing of image 3102. Card 3107 displays a thumbnail of image 3102. The user can confirm sharing image 3102 to electronic device 200 by swiping up the sharing control 3108.
[0184] In response to electronic device 100 approaching electronic device 200, upon detecting electronic device 200, electronic device 100 can simultaneously perform the steps of downloading image 3102 and establishing a communication connection with electronic device 200. Electronic device 100 does not need to wait for the communication connection to be established before performing the image download step 3102, which speeds up the image download process and reduces the user's waiting time. It also speeds up the sharing of image 3102 between electronic device 100 and electronic device 200.
[0185] In this context, "electronic device 100 moving closer to electronic device 200" can refer to a user bringing the sensing areas of both devices close together, ensuring the distance between them is within a preset range. Electronic device 200 can then receive a connection request from electronic device 100 and establish a communication connection. Alternatively, "electronic device 100 moving closer to electronic device 200" can also refer to a "tap" operation. The user can bump electronic device 100 and electronic device 200 together, and upon detecting the vibration generated by the collision, electronic device 100 can send a connection request to electronic device 200, establishing a communication connection.
[0186] It should be noted that, in addition to the above-mentioned methods of establishing a connection, after electronic device 100 comes close to electronic device 200, electronic device 100 and electronic device 200 can also establish a connection in other ways, and this application does not limit this.
[0187] Scenario 1: After the electronic device 100 receives the user's operation on the swipe-up sharing control 3108, the image 3102 has not yet been downloaded. Before the image 3102 is downloaded, the electronic device 200 confirms receipt of the image 3102 (Figures 3F-3K).
[0188] As shown in Figure 3F, the electronic device 100 can receive operations from the local user on the swipe-up sharing control 3108, such as touching the swipe-up sharing control 3108 and swiping upwards. In response to this operation, if the image 3102 is not fully downloaded, the electronic device 100 can display the prompt bar 3104 shown in Figure 3G(a). The prompt bar 3104 shown in Figure 3G(a) is similar to the prompt bar 3104 shown in Figure 3E. The difference is that the download progress of the image 3102 displayed in the prompt bar 3104 shown in Figure 3G(a) is different from that displayed in the prompt bar 3104 shown in Figure 3E. For example, the download progress of the image 3102 displayed in the prompt bar 3104 shown in Figure 3G(a) is 15%, while the download progress of the image 3102 displayed in the prompt bar 3104 shown in Figure 3E is 10%. Figure 3G(a) also shows capsule 3109, which displays the text "Pending Receive". Capsule 3109 is used to prompt the local user to wait for electronic device 200 to confirm receipt of image 3102.
[0189] After electronic device 100 and electronic device 200 establish a communication connection, in response to the user's operation on the swipe-up sharing control 3108, electronic device 200 can send a thumbnail of image 3102 to electronic device 200. Electronic device 200 can display interface 3300 as shown in Figure 3G(b), which includes a thumbnail of image 3102, a receive control 3110, and a reject control 3111. The user on the other end can confirm receipt of image 3102 through the receive control 3110. The user on the other end can also reject receiving image 3102 through the reject control 3111.
[0190] As shown in Figure 3G(b), electronic device 200 can receive input operations from the peer user on the receiving control 3110, such as a click operation. In response to the peer user's input operation, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has confirmed the receipt of image 3102.
[0191] In response to a message sent by electronic device 200, electronic device 100 may display a prompt bar 3104 and a capsule 3112 as shown in Figure 3H(a). The prompt bar 3104 displays the download progress of image 3102 as 20%. The capsule 3112 displays the text "Waiting to download," and is used to prompt the local user to wait for electronic device 100 to download image 3102. During the download of image 3102 by electronic device 100, electronic device 200 may also display a capsule 3113 as shown in Figure 3H(b). The capsule 3113 displays the text "Waiting to receive," and is used to prompt the remote user to wait for electronic device 100 to send image 3102.
[0192] Optionally, the electronic device 100 can also receive operations from the local user on the capsule 3112, displaying the identifier of the receiving device for the image 3102. As shown in Figure 3H(a), the electronic device 100 can receive input operations from the local user on receiving the capsule 3112, such as a click operation. In response to the local user's input operation, the electronic device 100 can display a prompt bar 3114 as shown in Figure 3I(a). The prompt bar 3114 includes the text "Sent to 'Lisa,' waiting to download," which is used to inform the local user that the image 3102 sent to the electronic device 200 (e.g., the identifier of the electronic device 200 is "Lisa") has not yet finished downloading. The prompt bar 3114 also includes a stop download control 3115, which the local user can use to trigger the electronic device 100 to stop downloading the image 3102 and end the sharing operation. The electronic device 100 can also receive input operations from the local user on a blank area outside the prompt bar 3114, stopping the display of the prompt bar 3114 and continuing to display the capsule 3112.
[0193] As the amount of data downloaded by the electronic device 100 to image 3102 increases, the download progress of image 3102 displayed in the prompt bar 3104 will also gradually increase until the download progress of image 3102 displayed in the prompt bar 3104 reaches 100%, indicating that image 3102 has been downloaded completely.
[0194] After image 3102 is downloaded, electronic device 100 can automatically send image 3102 to electronic device 200. It is understandable that since the user has already performed an operation on the swipe-up share control 3108, indicating the intention to share the image, electronic device 100 can automatically send image 3102 to electronic device 200 without further user intervention after downloading. Therefore, even if image 3102 has not yet been downloaded to electronic device 100 when the user performs the swipe-up share control 3108, the user can immediately perform the swipe-up share operation without waiting for image 3102 to be downloaded to electronic device 100 before sharing. The subsequent downloading of image 3102 and its subsequent sending to electronic device 200 can be automatically performed by electronic device 100. This improves the user experience.
[0195] As shown in Figure 3J(a), after image 3102 is downloaded, electronic device 100 can stop displaying prompt bar 3104 and capsule 3112, and start displaying capsule 3116. Capsule 3116 displays the text "Sending". Capsule 3116 is used to indicate that the local user electronic device 100 is sending image 3102 to electronic device 200. As shown in Figure 3J(b), while electronic device 200 is receiving image 3102 sent by electronic device 100, electronic device 200 can display capsule 3117. Capsule 3117 displays the number "10%". Capsule 3117 is used to indicate the progress of the remote user electronic device 200 in receiving image 3102 sent by electronic device 100.
[0196] The value of the number displayed in capsule 3117 will increase as the amount of data of image 3102 sent by electronic device 100 to electronic device 200 increases, until the value of the number displayed in capsule 3117 becomes "100%", which means that electronic device 200 has successfully received image 3102 sent by electronic device 100.
[0197] After electronic device 100 sends image 3102 to electronic device 200, electronic device 100 can display capsule 3118 as shown in Figure 3K(a). Capsule 3118 displays the text "Completed". Capsule 3118 is used to notify the local user that electronic device 100 has successfully sent image 3102 to electronic device 200.
[0198] After electronic device 200 successfully receives image 3102 sent by electronic device 100, electronic device 200 can display interface 3400 as shown in Figure 3K(b). Interface 3400 includes a thumbnail of image 3102 and multiple operation controls. Interface 3400 is used to prompt the user on the other end that electronic device 200 has successfully received image 3102 sent by electronic device 100.
[0199] Optionally, after electronic device 100 sends image 3102 to electronic device 200, electronic device 100 may continue to display the large image interface 3200 shown in Figure 3C.
[0200] Scenario 2: Before the electronic device 100 receives the user's operation on the swipe-up sharing control 3108, the image 3102 is downloaded and the electronic device 200 confirms receipt of the image 3102 (Figures 3L-3M).
[0201] For example, as shown in Figure 3L, after electronic device 100 receives the user's operation on the swipe-up sharing control 3108, if image 3102 has been downloaded, electronic device 100 can send a thumbnail of image 3102 to electronic device 200. Electronic device 100 can display capsule 3109 as shown in Figure 3M(a), which prompts the user to wait for electronic device 200 to confirm receipt of image 3102.
[0202] In response to a thumbnail of image 3102 sent by electronic device 100, electronic device 200 may display interface 3300 as shown in Figure 3M(b). For a description of interface 3300, please refer to the description shown in Figure 3G(b), which will not be repeated here.
[0203] If the other end user confirms receipt of the image 3102 sent by the electronic device 100, as shown in Figure 3M(b), the electronic device 200 can receive the input operation of the other end user on the receiving control 3110, such as a click operation. In response to the input operation of the other end user, the electronic device 200 can send a message to the electronic device 100 to notify the electronic device 100 that the electronic device 200 has confirmed receipt of the image 3102.
[0204] In response to a message sent by electronic device 200, electronic device 100 can send image 3102 to electronic device 200. Electronic devices 100 and 200 can display the interfaces shown in Figures 3J-3K until electronic device 200 successfully receives image 3102 sent by electronic device 100.
[0205] Scenario 3: Before the electronic device 100 receives the user's operation on the swipe-up sharing control 3108, the image 3102 has not been downloaded. After the image 3102 is downloaded, the electronic device 200 confirms receipt of the image 3102 (Figures 3N-3O).
[0206] After electronic device 100 receives the user's operation on the swipe-up sharing control 3108, if image 3102 has not yet finished downloading, electronic device 100 can send a thumbnail of image 3102 to electronic device 200. Electronic device 100 can then display the prompt bar 3104 and capsule 3109 shown in Figure 3N(a). In response to the thumbnail of image 3102 sent by electronic device 100, electronic device 200 can display the interface 3300 shown in Figure 3N(b).
[0207] Afterwards, if image 3102 is downloaded, as shown in Figure 3O(a), electronic device 100 can stop displaying the prompt bar 3104. If electronic device 200 has not yet confirmed receipt of image 3102, as shown in Figure 3O(b), electronic device 100 can continue displaying capsule 3109, and electronic device 200 can continue displaying interface 3300.
[0208] After image 3102 is downloaded, and electronic device 200 confirms receipt of image 3102, as shown in Figure 3O(b), electronic device 200 receives input from the other end user on the receiving control 3110 and sends a message to electronic device 100 to notify electronic device 100 that electronic device 200 has confirmed receipt of image 3102.
[0209] In response to a message sent by electronic device 200, electronic device 100 can send image 3102 to electronic device 200. Electronic devices 100 and 200 can display the interfaces shown in Figures 3J-3K until electronic device 200 successfully receives image 3102 sent by electronic device 100.
[0210] Implementing the method shown in Figures 3A-3O, the electronic device 100 can display different prompts at different sharing stages. For example, while the electronic device 100 is downloading image 3102, it can display the download progress of image 3102. While waiting for electronic device 200 to confirm receipt of image 3102 sent by electronic device 100, the electronic device 100 can display a prompt indicating that it is waiting for confirmation. After electronic device 200 confirms receipt of image 3102 sent by electronic device 100, while electronic device 100 is sending image 3102 to electronic device 200, electronic device 100 can display the sending progress of image 3102, and electronic device 200 can display the receiving progress of image 3102. On the one hand, the user can accurately know which sharing stage is currently in through the different prompts displayed by electronic device 100 at different sharing stages. On the other hand, once electronic devices 100 and 200 are close together, the user only needs to perform a sharing operation once. Afterwards, the user only needs to pay attention to the prompts displayed on electronic device 100 to know which sharing stage it is in. Furthermore, the different prompts displayed by electronic device 100 at different sharing stages can also remind the user that image 3102 has not yet been shared successfully, preventing sharing failures if the user moves electronic device 100 away from electronic device 200, closes the gallery application, or runs the gallery application in the background before image 3102 is successfully sent.
[0211] 2. A scenario where electronic device 100 receives user input, selects multiple images from the gallery application, and shares these images with electronic device 200.
[0212] In some embodiments, electronic device 100 may send multiple images to electronic device 200 after all images have been downloaded.
[0213] In other embodiments, electronic device 100 may send the first image to electronic device 200 after the first image has been downloaded. While the first image is being sent, electronic device 100 may continue downloading the second image. After the second image has been downloaded, electronic device 100 then sends the second image to electronic device 200, and so on.
[0214] First, let's describe the scenario where, after multiple images have been downloaded, electronic device 100 sends those images to electronic device 200.
[0215] 1. After all images have been downloaded, electronic device 100 sends the images to electronic device 200 (Figures 4A-4G).
[0216] For example, multiple images can be two images.
[0217] Figures 4A-4G illustrate a UI diagram of a group of electronic devices 100 simultaneously sending multiple images to electronic device 200.
[0218] As shown in Figures 4A and 4B, the electronic device 100 can receive the user's operation of selecting control 3103 in the gallery interface 3100, such as a click operation. In response to the user's input operation, the electronic device 100 can display the interface 4000 shown in Figure 4B. The user can select thumbnails of multiple images displayed on the interface 4000 and send the selected images to the electronic device 200.
[0219] As shown in Figures 4B and 4C, the electronic device 100 can receive input operations from the local user on the thumbnail of the image 3101, such as a click operation. In response to the input operation of the local user, the electronic device 100 can display a mark 4001 in the lower right corner of the thumbnail of the image 3101. The mark 4001 is used to indicate that the image 3101 is selected.
[0220] As shown in Figures 4C and 4D, the electronic device 100 can receive input operations from the local user on the thumbnail of the image 3102, such as a click operation. In response to the input operation of the local user, the electronic device 100 can display a mark 4002 in the lower right corner of the thumbnail of the image 3102. The mark 4002 is also used to indicate that the image 3102 is selected.
[0221] For example, as shown in Figures 4E and 4F, electronic device 100 can bring electronic device 100 close to electronic device 200, and in response to electronic device 100 bringing itself close to electronic device 200, electronic device 100 can establish a communication connection with electronic device 200.
[0222] In response to electronic device 100 approaching electronic device 200, upon detecting electronic device 200, electronic device 100 can download images 3101 and 3102 and display a prompt bar 4003 as shown in Figure 4F. The prompt bar 4003 includes a progress bar 4004, text, and a stop download control 4005. The function of the prompt bar 4003 and the prompt bar 3104 shown in Figure 3E can be found in the description of prompt bar 3104 in Figure 3E.
[0223] In response to electronic device 100 approaching electronic device 200, after establishing a communication connection between electronic device 100 and electronic device 200, electronic device 100 can display the sharing interface shown in Figure 4G. The sharing interface shown in Figure 4G includes a card 4006 and a sliding sharing control 4007. The card 4006 displays a thumbnail of image 3101 (not shown in Figure 4G) and a thumbnail of image 3102. There can also be multiple cards 4006, and the card corresponding to the thumbnail of image 3101 can be stacked under the card corresponding to the thumbnail of image 3102.
[0224] Scenario 1: After electronic device 100 receives the user's operation on the swipe-up sharing control 4007, images 3101 and 3102 have not yet finished downloading. Before images 3101 and 3102 are fully downloaded, electronic device 200 confirms receipt of images 3101 and 3102. The specific implementation of Scenario 1, in which electronic device 100 sends multiple images to electronic device 200, is similar to Scenario 1 in the embodiment where electronic device 100 sends one image to electronic device 200. Refer to the description in the embodiments shown in Figures 3F-3K; further details are omitted here.
[0225] Scenario 2: Before electronic device 100 receives the user's operation on the swipe-up sharing control 4007, images 3101 and 3102 have been downloaded, and electronic device 200 confirms receipt of images 3101 and 3102. The specific implementation of Scenario 2, where electronic device 100 sends multiple images to electronic device 200, is similar to Scenario 2 in the embodiment where electronic device 100 sends one image to electronic device 200. Refer to the descriptions in the embodiments shown in Figures 3L-3M; further details are omitted here.
[0226] Scenario 3: After electronic device 100 receives the user's operation on the swipe-up sharing control 4007, images 3101 and 3102 have not yet finished downloading. After images 3101 and 3102 are downloaded, electronic device 200 confirms receipt of images 3101 and 3102. The specific implementation of Scenario 3, where electronic device 100 sends multiple images to electronic device 200, is similar to the embodiment where electronic device 100 sends one image to electronic device 200. Refer to the descriptions in the embodiments of Figures 3N-3O; these details will not be repeated here.
[0227] 2. After the first image in a set of multiple images is downloaded, electronic device 100 sends the first image to electronic device 200, then continues to download and send the second image, and so on, until all images are sent to electronic device 200.
[0228] Figures 5A-5D, 6A-6D, 7A-7C, 8, and 9A-9B illustrate UI diagrams of several electronic devices 100 sending multiple images to electronic device 200.
[0229] For example, multiple images can be two images.
[0230] Referring to the descriptions in Figures 4A-4E, after selecting images 3101 and 3102, the user can bring electronic device 100 closer to electronic device 200. In response to electronic device 100 bringing itself closer to electronic device 200, electronic device 100 can establish a communication connection with electronic device 200.
[0231] In response to electronic device 100 approaching electronic device 200, upon detecting electronic device 200, electronic device 100 may first download image 3102. After image 3102 is downloaded, image 3101 will then be downloaded. During the download of image 3102, electronic device 100 may display a notification bar, which may include the text "Downloading first photo...10%". This notification bar is used to inform the user that electronic device 100 is downloading the first image out of a set of multiple images.
[0232] In response to electronic device 100 approaching electronic device 200, after electronic device 100 and electronic device 200 establish a communication connection, electronic device 100 can display the sharing interface shown in Figure 4G.
[0233] Scenario 1: Before electronic device 100 confirms the sharing of images 3101 and 3102, images 3101 and 3102 have already been downloaded (Figures 5A-5D).
[0234] For example, as shown in Figure 5A, after electronic device 100 receives the user's operation on the swipe-up sharing control 4007, if images 3101 and 3102 have been downloaded, electronic device 100 can send thumbnails of images 3101 and 3102 to electronic device 200. Electronic device 100 can display capsule 5001 as shown in Figure 5A(a), which prompts the user to wait for electronic device 200 to confirm receipt of images 3101 and 3102.
[0235] In response to thumbnails of images 3101 and 3102 sent by electronic device 100, electronic device 200 can display interface 5100 as shown in Figure 5A(b). Interface 5100 includes thumbnails of images 3101 (not shown in Figure 5A) and 3102, a receive control 5101, and a reject control 5102. The peer user can confirm receipt of images 3101 and 3102 through the receive control 5101. The peer user can also reject receiving images 3101 and 3102 through the reject control 5102.
[0236] As shown in Figure 5A(b), electronic device 200 can receive input operations from the other end user on the receiving control 5101, such as a click operation. In response to the input operation of the other end user, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has confirmed the receipt of image 3102.
[0237] In response to a message sent by electronic device 200, electronic device 100 can display capsule 5002 as shown in Figure 5B(a), which displays the text "First photo being sent". Capsule 5002 is used to indicate that the local user electronic device 100 is sending the first photo out of a set of multiple photos to electronic device 200. As shown in Figure 5B(b), while electronic device 200 is receiving the first photo sent by electronic device 100, electronic device 200 can display capsule 5003, which displays the text "First photo being received: 10%". Capsule 5003 is used to indicate the progress of the remote user electronic device 200 in receiving the first photo sent by electronic device 100.
[0238] The value displayed in capsule 5003 will increase as the amount of data received by electronic device 200 from the first image sent by electronic device 100 increases, until the value displayed in capsule 5003 becomes "100%", which indicates that electronic device 200 has successfully received the first image sent by electronic device 100.
[0239] After electronic device 100 sends the first picture to electronic device 200, electronic device 100 can continue to send the second picture to electronic device 200.
[0240] During the transmission of the second image from electronic device 100 to electronic device 200, electronic device 100 may display capsule 5004 as shown in Figure 5C(a), which displays the text "Second photo being transmitted". Capsule 5004 serves to indicate that the local user electronic device 100 is transmitting the second image out of a set of images to electronic device 200. As shown in Figure 5C(b), during the transmission of the second image from electronic device 100 to electronic device 200, electronic device 200 may display capsule 5005, which displays the text "Second photo being received: 10%". Capsule 5005 serves to indicate the progress of the remote user electronic device 200 in receiving the second image from electronic device 100.
[0241] The value displayed in capsule 5005 will increase as the amount of data received by electronic device 200 from electronic device 100 for the second image increases, until the value displayed in capsule 5005 becomes "100%", which indicates that electronic device 200 has successfully received the second image sent by electronic device 100.
[0242] After electronic device 100 sends the second image to electronic device 200, electronic device 100 can display capsule 5006 as shown in Figure 5D(a). Capsule 5006 displays the text "Completed". Capsule 5006 is used to notify the local user that electronic device 100 has successfully sent the images 3101 and 3102 selected by the local user to electronic device 200.
[0243] After electronic device 200 successfully receives the second image sent by electronic device 100, electronic device 200 can display interface 5007 as shown in Figure 5D(b). Interface 5007 includes thumbnails of image 3101 and image 3102. Interface 5007 is used to prompt the user that electronic device 200 has successfully received images 3101 and 3102 sent by electronic device 100.
[0244] Scenario 2: After electronic device 200 confirms receipt of images 3101 and 3102, neither image 3101 nor image 3102 is downloaded completely (Figures 6A-6D).
[0245] For example, after electronic device 100 receives the user's operation on the swipe-up sharing control 4007 shown in Figure 5A, if neither image 3101 nor image 3102 has been downloaded completely, electronic device 100 can send thumbnails of image 3101 and image 3102 to electronic device 200. Electronic device 100 can first download image 3102 and display the prompt bar 6001 shown in Figure 6A(a). The prompt bar 6001 includes a progress bar 6002, text, and a stop download control 6003. The text may include "Downloading first photo...10%", which indicates that the download progress of the first image is 10%. The function of prompt bar 6001 is similar to that of prompt bar 3104 shown in Figure 3E, and can be referred to the description in Figure 3E. Electronic device 100 also displays a capsule 6004 shown in Figure 6A(a), which prompts the user to wait for electronic device 200 to confirm receipt of image 3101 and image 3102.
[0246] In response to thumbnails of image 3101 and image 3102 sent by electronic device 100, electronic device 200 can display interface 5100 as shown in (b) of FIG6A.
[0247] As shown in Figure 6A(b), electronic device 200 can receive input operations from the other end user on the receiving control 5101, such as a click operation. In response to the input operation of the other end user, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has confirmed the receipt of image 3102.
[0248] In response to a message sent by electronic device 200, electronic device 100 may display a prompt bar 6001 and capsule 6005 as shown in Figure 6B(a). Capsule 6005 displays the text "Waiting to download," indicating to the peer user that electronic device 100 is downloading the first image from a set of multiple images. While electronic device 100 is downloading the first image from the set of multiple images, electronic device 200 may also display capsule 6006 as shown in Figure 6B(b). Capsule 6006 displays the text "Waiting to receive," indicating to the peer user that they are waiting for electronic device 100 to send the first image from the set of multiple images.
[0249] As the amount of data downloaded by the electronic device 100 for the first image increases, the download progress of the first image displayed in the prompt bar 6001 will also gradually increase until the download progress of the first image displayed in the prompt bar 6001 reaches 100%, indicating that the first image has been downloaded completely.
[0250] After the first image is downloaded, electronic device 100 can automatically send the first image to electronic device 200.
[0251] As shown in Figure 6C(a), after the first image is downloaded, the electronic device 100 can display a notification bar 6007 and a capsule 5002. The notification bar 6007 includes a progress bar 6008, text, and a stop download control 6009. The text may include "Downloading the second photo...30%", which indicates that the download progress of the second image is 30%. The function of the notification bar 6007 is similar to that of the notification bar 3104 shown in Figure 3E, and can be referred to the description in Figure 3E. As shown in Figure 6C(b), during the period when the electronic device 200 receives the first image sent by the electronic device 100, the electronic device 200 can display a capsule 5003.
[0252] As the amount of data downloaded by the electronic device 100 for the second image increases, the download progress of the second image displayed in the prompt bar 6007 will also gradually increase until the download progress of the second image displayed in the prompt bar 6007 reaches 100%, indicating that the second image has been downloaded completely.
[0253] After electronic device 100 sends the first image to electronic device 200, if the second image has been downloaded, electronic device 100 can automatically send the second image to electronic device 200.
[0254] During the transmission of the second image from electronic device 100 to electronic device 200, electronic device 100 may display capsule 5004 as shown in Figure 6D(a). During the transmission of the second image from electronic device 100, electronic device 200 may display capsule 5005 as shown in Figure 6D(b). Until electronic device 200 successfully receives the second image from electronic device 100, exemplarily, reference can be made to the description in the embodiment of Figure 5D.
[0255] Scenario 3: After electronic device 100 confirms the sharing of images 3101 and 3102, neither image 3101 nor image 3102 has been fully downloaded. Before electronic device 200 confirms receipt of images 3101 and 3102, both images 3101 and 3102 have been fully downloaded (Figures 7A-7C).
[0256] For example, after electronic device 100 receives an operation from the local user on the swipe-up sharing control 4007 shown in Figure 4G, electronic device 100 can send thumbnails of image 3101 and image 3102 to electronic device 200. If neither image 3101 nor image 3102 has been downloaded completely, electronic device 100 can download image 3102 first and display the prompt bar 6001 and capsule 6004 shown in Figure 7A(a). In response to the thumbnails of image 3101 and image 3102 sent by electronic device 100, electronic device 200 can display the interface 5100 shown in Figure 7A(b).
[0257] After image 3102 is downloaded, electronic device 100 can continue to download image 3101 and display the prompt bar 6007 and capsule 6004 shown in Figure 7B(a). Electronic device 200 can display the interface 5100 shown in Figure 7B(b).
[0258] After image 3101 is downloaded, electronic device 100 can display capsule 6004 as shown in Figure 7C(a) and stop displaying prompt bar 6007. As shown in Figure 7C(b), electronic device 200 can receive input operations from the other end user on control 5101, such as a click operation. In response to the input operation from the other end user, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has acknowledged receiving images 3101 and 3102.
[0259] In response to a message sent by electronic device 200, electronic device 100 may sequentially send image 3101 and image 3102 to electronic device 200. For example, refer to the description in the embodiments shown in Figures 5B-5D.
[0260] Scenario 4: Before electronic device 100 receives the user's operation on the swipe-up sharing control 4007, image 3102 has finished downloading, but image 3101 has not yet finished downloading. After electronic device 200 confirms receipt of images 3101 and 3102, image 3101 has still not finished downloading (Figure 8).
[0261] For example, after electronic device 100 receives a user's operation on the swipe-up sharing control 4007 shown in Figure 4G, electronic device 100 can send thumbnails of image 3101 and image 3102 to electronic device 200. If image 3102 has been downloaded completely but image 3101 has not, electronic device 100 can continue downloading image 3101 and display the prompt bar 6007 and capsule 6004 shown in Figure 8(a). In response to the thumbnails of image 3101 and image 3102 sent by electronic device 100, electronic device 200 can display the interface 5100 shown in Figure 8(b).
[0262] Before image 3101 is downloaded, as shown in Figure 8(b), electronic device 200 can receive user input operations on control 5101, such as a click operation. In response to the user's input operation, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has acknowledged receiving images 3101 and 3102.
[0263] In response to a message sent by electronic device 200, electronic device 100 may first send image 3102 to electronic device 200. While sending image 3102, electronic device 100 may continue downloading image 3101. After successfully sending image 3102, electronic device 100 needs to confirm whether image 3101 has been completely downloaded. If image 3101 has not been completely downloaded, electronic device 100 may continue downloading image 3101. If image 3101 has been completely downloaded, electronic device 100 may then send image 3101 to electronic device 200. For examples, please refer to the description in Figures 6C-6D.
[0264] Scenario 5: Before electronic device 100 receives the user's operation on the swipe-up sharing control 4007, image 3102 has finished downloading, but image 3101 has not yet finished downloading. After electronic device 200 confirms receipt of images 3101 and 3102, image 3101 has finished downloading (Figures 9A-9B).
[0265] For example, after electronic device 100 receives a user's operation on the swipe-up sharing control 4007 shown in FIG4G, electronic device 100 can send thumbnails of image 3101 and image 3102 to electronic device 200. If image 3102 has been downloaded completely but image 3101 has not been downloaded completely, electronic device 100 can continue to download image 3101 and display the prompt bar 6007 and capsule 6004 shown in FIG9A(a). In response to the thumbnails of image 3101 and image 3102 sent by electronic device 100, electronic device 200 can display the interface 5100 shown in FIG9A(b).
[0266] After image 3101 is downloaded, as shown in Figure 9B(a), electronic device 100 displays capsule 6004 and stops displaying prompt bar 6007. As shown in Figure 9B(b), electronic device 200 can receive user input operations on control 5101, such as click operations. In response to the user's input operation, electronic device 200 can send a message to electronic device 100 to notify electronic device 100 that electronic device 200 has confirmed receipt of image 3102.
[0267] In response to a message sent by electronic device 200, electronic device 100 may first send image 3102 to electronic device 200. After successfully sending image 3102, electronic device 100 then sends image 3101 to electronic device 200. For example, refer to the description in Figures 5B-5D.
[0268] Optionally, the above embodiments are illustrated using the example where none of the multiple images selected by the user are stored in the electronic device 100. In other embodiments, if at least one image is stored in the electronic device 100 and at least one image is stored in the server, in one possible implementation, the electronic device 100 may wait until all images have been downloaded before sending the multiple images to the electronic device 200. In other possible implementations, the electronic device 100 may first send at least one image stored in the electronic device 100 to the electronic device 200 and download at least one image stored in the server. After the at least one image stored in the server has been downloaded, the electronic device 100 then sends the at least one image downloaded from the server to the electronic device 200. The specific implementation is similar to how the electronic device 100 sends multiple images to the electronic device 200 as described in the above embodiments, and can be referred to the description in the above embodiments, which will not be repeated here.
[0269] The above embodiment is illustrated by taking the successful transmission of one or more images from electronic device 100 to electronic device 200 as an example. If any one or more of the following conditions are met, electronic device 100 may stop sending one or more images to electronic device 200.
[0270] Scenario 1: After electronic device 100 receives an operation from its local user on the swipe-up share control, if electronic device 200 refuses to receive one or more images sent by electronic device 100 (e.g., after receiving an input operation from the other user on the refuse control, such as a click), in response to the input operation, electronic device 200 can send a message to electronic device 100. In response to this message, if one or more images have been successfully downloaded, electronic device 100 may choose not to send one or more images to electronic device 200. If one or more images have not yet been successfully downloaded, electronic device 100 may stop downloading one or more images.
[0271] Optionally, if one or more images have been successfully downloaded, in some embodiments, the electronic device 100 may delete the one or more images to save storage space. In other embodiments, the electronic device 100 may choose not to delete the one or more images and continue to store them.
[0272] Scenario 2: While downloading one or more images, the electronic device 100 switches the gallery application to run in the background. In response to switching the gallery application to run in the background, or in response to the gallery application running in the background for a duration exceeding a preset time, the electronic device 100 may stop downloading one or more images.
[0273] Scenario 3: During the connection establishment phase or the download phase of one or more images, if electronic device 100 moves away from electronic device 200 (e.g., the distance between them exceeds a preset distance), electronic device 100 may stop downloading one or more images. Alternatively, during the phase where electronic device 100 sends one or more images to electronic device 200, if electronic device 100 moves away from electronic device 200 (e.g., the distance between them exceeds a preset distance), electronic device 100 may stop sending one or more images to electronic device 200.
[0274] Scenario 4: If the gallery application process is closed while one or more images are being downloaded, the electronic device 100 can stop downloading one or more images.
[0275] Scenario 5: After electronic device 100 detects electronic device 200, or while downloading one or more images, if electronic device 100 is not connected to the internet, electronic device 100 may stop downloading one or more images.
[0276] Case 6: Electronic device 100 can receive operations from the local user, such as inputting the stop download control 3115 in the prompt bar 3114 shown in Figure 3I(a) to stop downloading one or more images or stop sending one or more images to electronic device 200.
[0277] Optionally, when it is detected that any one or more of the above conditions are met, or when it is detected that the duration of meeting any one or more of the above conditions exceeds a preset duration, if electronic device 100 has established a communication connection with electronic device 200, electronic device 100 may automatically disconnect the communication connection with electronic device 200.
[0278] Optionally, when it is detected that any one or more of the above conditions are met, or when it is detected that the duration of meeting any one or more of the above conditions exceeds a preset duration, the electronic device 100 may also output a sharing failure prompt message.
[0279] Figure 10 shows a flowchart of a data sharing method provided in this application.
[0280] As shown in Figure 10, this method is applied to a system comprising electronic device 100, electronic device 200, and server 300. Electronic device 100 includes a first application, a sharing service module, and a display service module. Electronic device 200 includes a sharing service module and a display service module. The sharing service module includes a sharing module and a collaboration framework module.
[0281] S1001, The first application displays a first interface, which includes a thumbnail 1. The thumbnail 1 is a thumbnail of the first data. The first data is not stored in the electronic device 100.
[0282] Understandably, to save storage space on electronic device 100, electronic device 100 can store the first data on server 300. Electronic device 100 can store thumbnails of the first data, allowing local users to preview its content. When a local user needs to share the first data, electronic device 100 can download it from the server.
[0283] The type of data can include, but is not limited to, any of the following: images, videos, files, etc.
[0284] For example, when the first application is a gallery application, the first data can be an image in the gallery application. For instance, the first interface can be the large image interface 3200 shown in Figure 3C, the first data can be the image 3102 shown in Figure 3C, and the thumbnail 1 can be a thumbnail of the image 3102 shown in Figure 3C.
[0285] S1002, The first application sends message 1 to the sharing module in the electronic device 100.
[0286] S1003, The sharing module in electronic device 100 registers the collaboration framework module in electronic device 100.
[0287] Optionally, in response to the first application displaying a first interface including a thumbnail indicating the first data, the first application can determine that the local user intends to share data across devices. The first application can send message 1 to the sharing module. In response to message 1, the sharing module can register with the device collaboration service provided by the collaboration framework. The first application can then call the device collaboration service provided by the collaboration framework to share the first data in the first application with other devices that have established a communication connection with the electronic device 100. The first data may include, but is not limited to, text, images, files, videos, and animated GIFs.
[0288] Optionally, the device collaboration services provided by the collaboration framework can be integrated into a software development kit (SDK), allowing other applications to call the SDK to implement data sharing functionality. For example, when other applications display a user interface including thumbnails indicating the first data, they can also send message 1 to the sharing module. The sharing module can register with the device collaboration services provided by the collaboration framework to share the first data from other applications with other devices that have established a communication connection with the electronic device 100.
[0289] It should be noted that different applications may send message 1 to the sharing module at different times, and each application can set its own timing for sending message 1. For example, for the first application, when a user interface including a thumbnail indicating the first data is displayed, the first application can determine that the local user intends to share data across devices, and the first application can send message 1 to the sharing module. As another example, for the second application, when a user interface including a thumbnail indicating the second data is displayed, the second application can determine that the local user intends to share data across devices, and the second application can send message 1 to the sharing module. The type of the second data can be the same as or different from the type of the first data.
[0290] S1004, The first application downloads the first data from server 300.
[0291] Optionally, after electronic device 100 discovers electronic device 200, for example, after electronic device 100 receives a first response broadcast sent by electronic device 200, the sharing module in electronic device 100 can send a message to the first application. In response to this message, the first application can download first data from server 300.
[0292] For example, the first application can send information about the first data to the server 300. The server 300 can obtain the first data based on the information about the first data and then send the first data to the first application.
[0293] Optionally, during the download of the first data by the first application, the electronic device 100 may also display the download progress of the first data. For example, the electronic device 100 may display the prompt bar 3104 shown in FIG3E.
[0294] S1005, the sharing module in electronic device 100 and the sharing module in electronic device 200 establish a communication connection.
[0295] The establishment of a communication connection between electronic device 100 and electronic device 200 may include two phases: a device discovery phase and a connection establishment phase.
[0296] The device discovery phase can refer to the electronic device 100 discovering other electronic devices located in its vicinity. The device discovery phase may include: in some embodiments, the local user can bring the electronic device 100 closer to the electronic device 200; upon detecting this closeness, the electronic device 100 can issue a device discovery broadcast. In other embodiments, the electronic device 100 can receive input operations from the local user on the sharing control; in response to these input operations, the electronic device 100 can issue a device discovery broadcast. In other embodiments, the electronic device 100 can recognize specific gestures from the local user (e.g., air gestures or gestures applied to the display screen); in response to recognizing these gestures, the electronic device 100 can issue a device discovery broadcast. The electronic device 100 can also issue device discovery broadcasts in other ways to discover devices in its vicinity, and this application does not limit this method. Devices located in the vicinity of the electronic device 100 can receive the device discovery broadcasts issued by the electronic device 100; for example, the electronic device 200 can receive the device discovery broadcasts issued by the electronic device 100. In response to a device discovery broadcast issued by electronic device 100, electronic device 200 may send a first response broadcast to electronic device 100. The first response broadcast is used to notify electronic device 100 that electronic device 200 is in the vicinity of electronic device 100. After receiving the first response broadcast sent by electronic device 200, electronic device 100 can discover electronic device 200.
[0297] The connection establishment phase can refer to the establishment of a communication connection between electronic device 100 and other electronic devices located near electronic device 100. The connection establishment phase may include: in response to a first response broadcast sent by electronic device 200, electronic device 100 may send a connection establishment broadcast to electronic device 200, which requests to establish a communication connection with electronic device 200. In response to the connection establishment broadcast sent by electronic device 100, electronic device 200 may send a second response broadcast to electronic device 100. In response to the second response broadcast, electronic device 100 and electronic device 200 may establish a communication connection.
[0298] Optionally, the communication connection between electronic device 100 and electronic device 200 may include a near-field communication connection or a remote connection. Near-field communication connections include, but are not limited to, any one or more of the following: Bluetooth, Wi-Fi, NFC, IR, UWB, ZigBee, etc. Remote connections include, but are not limited to, server connections, etc.
[0299] S1006, the sharing module in electronic device 100 sends the total amount of the first data to the sharing module in electronic device 200.
[0300] After electronic devices 100 and 200 establish a communication connection, electronic device 100 can also send the total amount of the first data to the sharing module in electronic device 200 via the communication connection through the sharing module in electronic device 100. The total amount of the first data is used by electronic device 200 to display the receiving progress of the first data.
[0301] Optionally, the sharing module in the electronic device 100 can obtain the total amount of data of the first data from the first application.
[0302] S1007, the sharing module in electronic device 100 sends message 3 to the first application.
[0303] In response to the establishment of a communication connection between electronic device 100 and electronic device 200, the sharing module in electronic device 100 can send message 3 to the first application. Message 3 is used to instruct the first application to send the thumbnail 1 of the first data to the sharing service module.
[0304] S1008, The first application sends thumbnail 1 to the sharing module in the electronic device 100.
[0305] S1009, the sharing module in electronic device 100 sends thumbnail 1 to the display service module in electronic device 100.
[0306] S1010, the display service module in electronic device 100 displays a sharing interface, which includes thumbnail 1.
[0307] In response to message 3, the first application can obtain a thumbnail 1 of the first data and send the thumbnail 1 to the sharing module in the electronic device 100. The sharing module in the electronic device 100 then sends the thumbnail 1 to the display service module in the electronic device 100. After obtaining the thumbnail 1, the display service module in the electronic device 100 can display a sharing interface, which includes the thumbnail 1. The sharing interface is used by the local user to confirm whether to share the first data with the electronic device 200.
[0308] For example, the sharing interface can be the interface shown in Figure 3F, which includes card 3107 and a swipe-up sharing control 3108. Thumbnail 1 is displayed in card 3107.
[0309] S1011, the display service module in electronic device 100 receives and responds to the operation of sharing the first data.
[0310] S1012, The display service module in electronic device 100 sends message 4 to the sharing module in electronic device 100.
[0311] S1013, the sharing module in electronic device 100 sends thumbnail 1 to the sharing module in electronic device 200.
[0312] S1014, The sharing module of electronic device 200 sends thumbnail 1 to the display service module in electronic device 200.
[0313] S1015, The display service module in electronic device 200 displays thumbnail 1.
[0314] After the electronic device 100 displays thumbnail 1, the local user can preview the content of the first data through thumbnail 1. If the local user confirms sharing the first data to the electronic device 200, the display service module in the electronic device 100 can receive and respond to the operation of sharing the first data, and the display service module in the electronic device 100 can send message 4 to the sharing module in the electronic device 100. In response to message 4, the sharing module in the electronic device 100 can send thumbnail 1 to the sharing module in the electronic device 200 through the communication connection. The sharing module of the electronic device 200 then sends thumbnail 1 to the display service module in the electronic device 200. After obtaining thumbnail 1, the display service module in the electronic device 200 can display thumbnail 1.
[0315] For example, the operation of sharing the first data can be the operation of the swipe-up sharing control 3108 shown in Figure 3F.
[0316] For example, the thumbnail 1 displayed by the electronic device 200 can be referenced to the interface 3300 shown in (b) of FIG3G.
[0317] S1016, The display service module in the electronic device 200 receives and responds to the operation of confirming receipt of the first data.
[0318] S1017, The display service module in electronic device 200 sends message 5 to the sharing module in electronic device 200.
[0319] S1018, the sharing module in electronic device 200 sends message 6 to the sharing module in electronic device 100.
[0320] S1019, The sharing module in electronic device 100 sends message 7 to the first application.
[0321] S1020, The URL for the first application to obtain the first data.
[0322] The URL of the first data indicates the storage location of the first data in the electronic device 100. After the electronic device 100 downloads the first data, it can store the first data based on the URL.
[0323] In other embodiments, in S1008, the electronic device 100 may also send the URL of the first data and thumbnail 1 to the sharing module simultaneously. In this embodiment, in S1008, after the first application sends the URL of the first data, the first data may not have finished downloading. After the first data has finished downloading, the first application sends a message to the sharing module that the first data download is complete, and the sharing module then retrieves the first data based on the URL of the first data.
[0324] In other embodiments, in S1008, the first application may first send thumbnail 1 to the sharing module. After the first data is downloaded, the first application then sends the URL of the first data to the sharing module. The first data can be downloaded after S1004 and before or after any step before S1022. For a description of the timing of the first data download completion, please refer to the descriptions of timing one to timing three below, which will not be repeated here.
[0325] S1021, The first application sends the URL of the first data to the sharing module in the electronic device 100.
[0326] S1022, the sharing module in electronic device 100 sends the first data to the sharing module in electronic device 200.
[0327] After the electronic device 200 displays thumbnail 1, if the user at the other end confirms receipt of the first data, the display service module in the electronic device 200 can receive and respond to the confirmation of receipt of the first data. In response to the confirmation of receipt of the first data, the display service module in the electronic device 200 can send message 5 to the sharing module in the electronic device 200. The sharing module in the electronic device 200 then sends message 6 to the sharing module in the electronic device 100 via the communication connection. The sharing module in the electronic device 100 then sends message 7 to the first application. In response to message 7, the first application confirms that the electronic device 200 has confirmed receipt of the first data. The first application can obtain the URL of the first data and send the URL of the first data to the sharing module in the electronic device 100. The sharing module in the electronic device 100 can obtain the first data based on the URL of the first data, and the sharing module in the electronic device 100 then sends the first data to the sharing module in the electronic device 200 via the communication connection.
[0328] In some embodiments, if the first application does not receive message 7, the first application may confirm that the electronic device 200 has not confirmed receiving the first data.
[0329] For example, the operation of the peer user confirming receipt of the first data can be an input operation to the receiving control 3110 as shown in Figure 3G(b).
[0330] S1023, the sharing module in the electronic device 100 sends the sending progress of the first data to the display service module in the electronic device 100.
[0331] S1024, The display service module in electronic device 100 displays the transmission progress of the first data.
[0332] During the transmission of the first data, the sharing module in the electronic device 100 can obtain the transmission progress of the first data and send the transmission progress of the first data to the display service module in the electronic device 100. The display service module in the electronic device 100 can display the transmission progress of the first data.
[0333] Optionally, the sharing module in the electronic device 100 can determine the transmission progress of the first data based on the total amount of the first data and the amount of data already sent.
[0334] For example, electronic device 100 displays the transmission progress of the first data, which can be referred to capsule 3116 shown in Figure 3J(a).
[0335] Optionally, capsule 3116 may also display numbers to indicate the progress of the first data transmission. The numbers displayed in capsule 3116 will increase as the amount of the first data transmitted increases.
[0336] S1025, the sharing module in the electronic device 200 sends the receiving progress of the first data to the display service module in the electronic device 200.
[0337] S1026, The display service module in electronic device 200 displays the progress of receiving the first data.
[0338] During the reception of the first data, the sharing module in the electronic device 200 can obtain the transmission progress of the first data and send the transmission progress of the first data to the display service module in the electronic device 200. The display service module in the electronic device 200 can display the reception progress of the first data.
[0339] Optionally, the sharing module in the electronic device 200 can determine the reception progress of the first data based on the total amount of the first data and the amount of data already received.
[0340] For example, electronic device 200 displays the progress of receiving first data, which can be seen in capsule 3117 shown in Figure 3J(b).
[0341] It should be noted that the various method steps in Figure 10 are only used to explain this application, and this application does not limit the execution order of the various method steps in Figure 10.
[0342] Using the method shown in the embodiment of Figure 10, when the first data is not downloaded locally, if electronic device 100 receives an operation from electronic device 200 to share the first data, in response to this operation, if electronic device 200 confirms receipt of the first data sent by electronic device 100, electronic device 100 can confirm whether the first data has been downloaded completely. If electronic device 100 confirms that the first data has not been downloaded completely, electronic device 100 can display a first prompt message to remind the local user to wait for the first data to download. Electronic device 200 can also display a second prompt message to remind the remote user to wait for the first data to be received. If electronic device 100 confirms that the first data has been downloaded completely, electronic device 100 can send the first data to the second electronic device. Electronic device 100 can display the sending progress of the first data, and electronic device 200 can also display the receiving progress of the first data. By implementing this method, electronic device 100 does not need to wait for the first data to be downloaded completely, and can establish a communication connection with the target device. The local user can perform an operation to confirm sharing the first data, and the remote user can also perform an operation to confirm receiving the first data, which can reduce the time the local user waits for electronic device 100 to download the first data and improve the user experience.
[0343] The embodiment in Figure 10 described above uses a thumbnail of the first data stored in the electronic device 100 as an example. In other embodiments, the electronic device 100 may not store a thumbnail of the first data. The electronic device 100 may display a preset thumbnail (e.g., thumbnail 1). After the electronic device 100 detects the electronic device 200, the electronic device 100 may download the thumbnail of the first data from the server 300 in real time.
[0344] In some embodiments, if the thumbnail of the first data is downloaded after the electronic device 100 receives confirmation from the local user to share the first data and the electronic device 100 has sent thumbnail 1 to the electronic device 200, the electronic device 100 may no longer display the thumbnail of the first data. This is because after the electronic device 100 sends thumbnail 1 to the electronic device 200, the electronic device 100 has confirmed that it has sent the first data to the electronic device 200, and the electronic device 100 no longer needs to display the thumbnail of the first data. For example, please refer to the description in the embodiment of FIG11.
[0345] Figure 11 shows a flowchart of another data sharing method provided in this application.
[0346] S1101, The first application displays a first interface, which includes thumbnail 1. Thumbnail 1 is not a thumbnail of the first data, and the first data is not stored in the electronic device 100.
[0347] S1101 is similar to S1001, except that in S1101, thumbnail 1 on the first interface is not a thumbnail of the first data, but a preset thumbnail. For an introduction to S1101, please refer to the description in S1001, which will not be repeated here.
[0348] For example, in a cross-device data migration scenario, other devices can migrate images stored in their gallery applications to electronic device 100. In some embodiments, other devices can send basic image information (e.g., download address, acquisition time, or generation time) to electronic device 100, but not the thumbnail or the original image. After receiving the basic image information from other devices, if it is determined that the thumbnail and the original image do not exist, electronic device 100 can display a preset thumbnail. S1102, the first application sends message 1 to the sharing module in electronic device 100.
[0349] S1102, The first application sends message 1 to the sharing module in the electronic device 100.
[0350] S1103, The sharing module in electronic device 100 registers the collaboration framework module in electronic device 100.
[0351] For a description of S1102 and S1103, please refer to the descriptions in S1002 and S1003. This application will not repeat them here.
[0352] S1104. The first application downloads the first data and a thumbnail of the first data from server 300.
[0353] S1104 is similar to S1004, except that in S1104, the first application also needs to download a thumbnail of the first data from server 300.
[0354] Optionally, the first application can download a thumbnail of the first data first, and then download the first data. Optionally, the first application can also download both the first data and its thumbnail simultaneously.
[0355] For a description of S1104, please refer to the description in S1004; this application will not repeat it here.
[0356] S1105, Electronic device 100 executes S1005-S1013.
[0357] After electronic device 100 and electronic device 200 establish a communication connection, if the thumbnail of the first data has not yet been successfully downloaded, electronic device 100 can display a sharing interface. The sharing interface includes thumbnail 1, which is used to prompt the local user to confirm whether to share the first data. For example, refer to the description in S1005-S1013.
[0358] S1106, The first application obtains a thumbnail of the first data.
[0359] If the first application obtains the thumbnail of the first data after the electronic device 100 receives confirmation from the local user to share the first data and sends thumbnail 1 to the electronic device 200, the electronic device 100 may stop displaying the thumbnail of the first data.
[0360] S1107, electronic device 100 and electronic device 200 execute S1014-S1026.
[0361] After electronic device 100 confirms that it will send the first data to electronic device 200, and after the first data download is complete, electronic device 100 can send the first data to electronic device 200. For details, please refer to the descriptions in S1014-S1026, which will not be repeated here.
[0362] Figure 11 illustrates an example where electronic device 100 receives confirmation from the local user to share the first data, and electronic device 100 has already sent thumbnail 1 to electronic device 200, after which electronic device 100 obtains the thumbnail of the first data. In other embodiments, if electronic device 100 obtains the thumbnail of the first data before receiving confirmation from the local user to share the first data, electronic device 100 can stop displaying thumbnail 1 and display the thumbnail of the first data, allowing the local user to preview the content of the first data through the thumbnail. For illustrative examples, please refer to the descriptions in Figures 12 and 13.
[0363] Figure 12 shows a flowchart of another data sharing method provided in this application.
[0364] S1201, Electronic device 100 executes S1101-S1104.
[0365] For a description of S1201, please refer to the descriptions in S1101-S1104. This application will not repeat them here.
[0366] S1202, the sharing module in electronic device 100 and the sharing module in electronic device 200 establish a communication connection.
[0367] S1203, the sharing module in electronic device 100 sends the total amount of the first data to the sharing module in electronic device 200.
[0368] S1204, the sharing module in electronic device 100 sends message 3 to the first application.
[0369] For a description of S1202-S1204, please refer to the description in S1005-S1007. This application will not repeat it here.
[0370] S1205, The first application obtains a thumbnail of the first data.
[0371] After electronic device 100 and electronic device 200 establish a communication connection, if the thumbnail of the first data has been downloaded before the first application sends the thumbnail to the sharing module in electronic device 100, electronic device 100 can send the thumbnail of the first data to electronic device 200, so that the user at the other end can preview the content of the first data through the thumbnail to confirm whether to receive the first data. For example, refer to the description in S1206-S1213.
[0372] S1206, The first application sends a thumbnail of the first data to the sharing module in the electronic device 100.
[0373] S1207, the sharing module in the electronic device 100 sends a thumbnail of the first data to the display service module in the electronic device 100.
[0374] S1208, the display service module in electronic device 100 displays a sharing interface, which includes a thumbnail of the first data.
[0375] S1209, The display service module in electronic device 100 receives and responds to the operation of sharing the first data.
[0376] S1210, the display service module in electronic device 100 sends message 4 to the sharing module in electronic device 100.
[0377] S1211, the sharing module in electronic device 100 sends a thumbnail of the first data to the sharing module in electronic device 200.
[0378] S1212, the sharing module of electronic device 200 sends a thumbnail of the first data to the display service module in electronic device 200.
[0379] S1213, The display service module in electronic device 200 displays a thumbnail of the first data.
[0380] S1206-S1213 is similar to S1008-S1015, except that in S1206-S1213, electronic device 100 displays a thumbnail of the first data, electronic device 100 sends a thumbnail of the first data to electronic device 200, and electronic device 200 also displays a thumbnail of the first data. For details, please refer to the description in S1008-S1015, which will not be repeated here.
[0381] S1214, electronic device 100 and electronic device 200 execute S1016-S1026.
[0382] After electronic device 200 confirms receipt of the first data, and after the first data download is complete, electronic device 100 can send the first data back to electronic device 200. For details, please refer to the descriptions in S1016-S1026, which will not be repeated here.
[0383] Figure 13 shows a flowchart of another data sharing method provided in this application.
[0384] The embodiment in Figure 13 is similar to that in Figure 12, except that in Figure 13, after the electronic device 100 displays the sharing interface but before the electronic device 100 receives the shared first data, the thumbnail of the first data is downloaded. Then, the electronic device 100 can stop displaying thumbnail 1 and display the thumbnail of the first data, allowing the user to preview the content of the first data through the thumbnail. For illustrative examples, please refer to the description in the embodiment of Figure 13.
[0385] S1301, Electronic device 100 executes S1101-S1104.
[0386] For a description of S1301, please refer to the descriptions in S1101-S1104. This application will not repeat them here.
[0387] S1302, Electronic device 100 executes S1005-S1010.
[0388] After electronic device 100 and electronic device 200 establish a communication connection, if the thumbnail of the first data has not been downloaded completely before electronic device 100 displays the sharing interface, electronic device 100 can display thumbnail 1 in the sharing interface. For example, please refer to the description in S1005-S1010, which will not be repeated here.
[0389] S1303, The first application obtains a thumbnail of the first data.
[0390] S1304, The first application sends a thumbnail of the first data to the sharing module in the electronic device 100.
[0391] S1305, the sharing module in the electronic device 100 sends a thumbnail of the first data to the display service module in the electronic device 100.
[0392] S1306, the display service module in electronic device 100 switches the thumbnail 1 displayed on the sharing interface to a thumbnail of the first data.
[0393] After the electronic device 100 displays the sharing interface, but before the electronic device 100 receives the shared first data, if the thumbnail of the first data has been downloaded, the first application can send the thumbnail of the first data to the sharing module in the electronic device 100. The sharing module in the electronic device 100 then sends the thumbnail of the first data to the display service module in the electronic device 100. The display service module in the electronic device 100 can switch the thumbnail 1 displayed in the sharing interface to the thumbnail of the first data. The user on this end can preview the content of the first data through the thumbnail of the first data displayed in the sharing interface.
[0394] S1307, electronic device 100 and electronic device 200 execute S1209-S1214.
[0395] After electronic device 100 displays a thumbnail of the first data, electronic device 100 can receive and respond to the operation of sharing the first data. After electronic device 200 confirms receipt of the first data, and waits for the first data to be downloaded, electronic device 100 can send the first data to electronic device 200. For details, please refer to the description in S1209-S1214, which will not be repeated here.
[0396] It should be noted that in the embodiments shown in Figures 10-13, the timing of the completion of the first data download is different, and the prompt information displayed by the electronic device 100 is also different.
[0397] Figure 14A shows a timing diagram of the first data download completion.
[0398] As shown in Figure 14A, there are three possible times when the first data download is complete. Time 1: The first data is not fully downloaded before electronic device 200 confirms receipt of the first data; the first data is fully downloaded after electronic device 200 confirms receipt of the first data. Time 2: The first data is fully downloaded before electronic device 100 receives the operation to share the first data. Time 3: The first data is not fully downloaded after electronic device 100 receives the operation to share the first data; the first data is fully downloaded before electronic device 200 confirms receipt of the first data.
[0399] The process of electronic device 100 sending the first data to electronic device 200 will be explained in detail below, taking into account the three times when the first data download is completed. The times when the first data download is completed include, but are not limited to, the following:
[0400] Timing 1: Before electronic device 200 confirms receipt of the first data, the first data has not been completely downloaded. After electronic device 200 confirms receipt of the first data, the first data has been completely downloaded.
[0401] Figure 14B shows a timing diagram of the first electronic device 100 sending first data to the electronic device 200.
[0402] After electronic device 100 receives the first data and before electronic device 200 confirms receipt of the first data, if the first data has not been downloaded completely, electronic device 100 can display the download progress of the first data and prompt message 1. Prompt message 1 is used to prompt the local user to wait for electronic device 200 to confirm receipt of the first data. For example, the download progress of the first data can be a prompt bar 3104, and prompt message 1 can be the capsule 3109 shown in Figure 3G.
[0403] After electronic device 200 confirms receipt of the first data, if the first data is still not downloaded completely, electronic device 100 can continue to display the download progress of the first data and prompt message 2. Prompt message 2 is used to prompt the local user to wait for electronic device 100 to download the first data. Electronic device 200 can also display prompt message 3, which is used to prompt the remote user to wait for electronic device 100 to send the first data. For example, prompt message 2 can be capsule 3112 as shown in Figure 3I, and prompt message 3 can be capsule 3113 as shown in Figure 3I.
[0404] After the first data download is complete, electronic device 100 can send the first data to electronic device 200. Electronic device 100 can stop displaying the download progress of the first data and display prompt message 4, which notifies electronic device 100 that it is sending the first data to electronic device 200. Electronic device 200 can display prompt message 5, which notifies electronic device 200 of the progress of receiving the first data. For example, prompt message 4 can be capsule 3116 as shown in Figure 3J(a), and prompt message 5 can be capsule 3117 as shown in Figure 3J(b).
[0405] Specifically, please refer to the description in Case 1 of the embodiment in which electronic device 100 sends an image to electronic device 200, which will not be repeated here.
[0406] Timing 2: The first data is downloaded before the electronic device 100 receives and shares the first data.
[0407] Figure 14C shows a timing diagram of the second electronic device 100 sending the first data to the electronic device 200.
[0408] Before the electronic device 100 receives the operation of sharing the first data, if the first data has not been downloaded completely, the electronic device 100 can display the download progress of the first data. After the first data is downloaded, the electronic device 100 can stop displaying the download progress of the first data and start displaying prompt message 1.
[0409] After electronic device 100 receives the first data and before electronic device 200 confirms receipt of the first data, electronic device 100 may continue to display prompt message 1.
[0410] After electronic device 200 confirms receipt of the first data, electronic device 100 may stop displaying prompt message 1 and display prompt message 4, and electronic device 200 may display prompt message 5.
[0411] Specifically, please refer to the description in Case 2 of the embodiment in which electronic device 100 sends an image to electronic device 200, which will not be repeated here.
[0412] Thirdly, after electronic device 100 receives and shares the first data, the first data is not yet fully downloaded. The first data is downloaded completely before electronic device 200 confirms receipt of the first data.
[0413] Figure 14D shows a timing diagram of the second electronic device 100 sending the first data to the electronic device 200.
[0414] Before the electronic device 100 receives the operation of sharing the first data, if the first data has not been downloaded completely, the electronic device 100 can display the download progress of the first data.
[0415] After the electronic device 100 receives the first data and before the electronic device 200 confirms receipt of the first data, if the first data has not yet been downloaded, the electronic device 100 may continue to display the download progress and prompt information 1 of the first data.
[0416] Before the electronic device 200 confirms receipt of the first data, if the first data has been downloaded completely, the electronic device 100 may stop displaying the download progress of the first data and display prompt message 1.
[0417] After electronic device 200 confirms receipt of the first data, electronic device 100 may stop displaying prompt message 1 and display prompt message 4, and electronic device 200 may display prompt message 5.
[0418] Specifically, please refer to the description in Case 3 of the embodiment in which electronic device 100 sends an image to electronic device 200, which will not be repeated here.
[0419] It should be noted that Figures 10-13 illustrate the example of electronic device 100 sharing one piece of data with electronic device 200. In other embodiments, electronic device 100 may also select multiple pieces of data and share them with electronic device 200.
[0420] In some embodiments, electronic device 100 may send multiple data items to electronic device 200 after all data items have been downloaded. The specific implementation is similar to the implementation of electronic device 100 sending a single data item to electronic device 200; please refer to the description of how electronic device 100 sends the first data item to electronic device 200 above, which will not be repeated here.
[0421] In other embodiments, electronic device 100 may also transmit multiple data to electronic device 200 in a time-sharing manner.
[0422] This application uses multiple data, including first data and second data, as an example for illustration.
[0423] It should be noted that the first and second data downloads are completed at different times, and the prompts displayed by the electronic device 100 are also different.
[0424] Figure 15A shows a timing diagram of the completion of the download of the first and second data.
[0425] As shown in Figure 15A, there are five possible times when the first and second data downloads are complete: Time 1: Before electronic device 100 receives and shares the first and second data, both the first and second data have been downloaded. Time 2: After electronic device 200 confirms receipt of the first and second data, neither the first nor the second data has been downloaded. Time 3: After electronic device 100 receives and shares the first and second data, neither the first nor the second data has been downloaded. Before electronic device 200 confirms receipt of the first and second data sent by electronic device 100, both the first and second data have been downloaded. Time 4: After electronic device 100 receives and shares the first and second data, the first data is downloaded, but the second data is not. After electronic device 200 confirms receipt of the first and second data sent by electronic device 100, the second data is still not downloaded. Time 5: After electronic device 100 receives and shares the first and second data, the first data is downloaded, but the second data is not. Before electronic device 200 confirms receipt of the first and second data sent by electronic device 100, the second data has been downloaded.
[0426] Next, we will explain in detail the process of electronic device 100 sending the first and second data to electronic device 200, taking into account the timing of the completion of the download of these five first and second data.
[0427] The timing of the completion of the download of the first and second data includes, but is not limited to, the following:
[0428] Timing 1: Before the electronic device 100 receives and shares the first and second data, both the first and second data have been downloaded.
[0429] Figure 15B shows a timing diagram of the first electronic device 100 sending first data and second data to the electronic device 200.
[0430] Before the electronic device 100 receives and shares the first and second data, if both the first and second data have been downloaded, the electronic device 100 can display the download progress of the first data and the download progress of the second data respectively. After the first and second data are downloaded, the electronic device 100 can stop displaying the download progress of the first data and the download progress of the second data. For example, the download progress of the first data can be the prompt bar 6001 shown in Figure 6A(a). The download progress of the second data can be the prompt bar 6007 shown in Figure 6C(a).
[0431] After electronic device 100 receives and shares the first and second data, but before electronic device 200 confirms receipt of the first and second data sent by electronic device 100, electronic device 100 may display a prompt message 6. The prompt message 6 is used to prompt the user to wait for electronic device 200 to confirm receipt of the first and second data. For example, the prompt message 6 may be capsule 5001 as shown in Figure 5A.
[0432] After electronic device 200 confirms receipt of the first and second data sent by electronic device 100, electronic device 100 may first send the first data to electronic device 200. During the transmission of the first data, electronic device 100 may display a prompt message 7 to inform the user that electronic device 100 is sending the first data to electronic device 200. Electronic device 200 may display a prompt message 8 to notify the user of the progress of receiving the first data. For example, prompt message 7 may be capsule 5002 as shown in Figure 5B(a), and prompt message 8 may be capsule 5003 as shown in Figure 5B(b).
[0433] After the first data transmission is completed, electronic device 100 can then send the second data to electronic device 200. During the transmission of the second data, electronic device 100 can display a prompt message 9 to inform the user that electronic device 100 is sending the second data to electronic device 200. Electronic device 200 can display a prompt message 10 to notify the user of the progress of receiving the second data. For example, prompt message 9 can be capsule 5004 as shown in Figure 5C(a), and prompt message 10 can be capsule 5005 as shown in Figure 5C(b).
[0434] Specifically, please refer to the description in Case 1 of the embodiment in which electronic device 100 sends multiple images to electronic device 200, which will not be repeated here.
[0435] Second, after electronic device 200 confirms receipt of the first and second data sent by electronic device 100, neither the first nor the second data has been fully downloaded.
[0436] Figure 15C shows a timing diagram of the second electronic device 100 sending first data and second data to the electronic device 200.
[0437] Before the electronic device 100 receives and shares the first data and the second data, if neither the first data nor the second data has been downloaded completely, the electronic device 100 may display the download progress of the first data.
[0438] After electronic device 100 receives and shares the first and second data, if the first and second data are still not downloaded completely before electronic device 200 confirms receipt of the first and second data, electronic device 100 may continue to display the download progress of the first data. During the display of the download progress of the first data, electronic device 100 may display a prompt message 11, which instructs the user to wait for electronic device 200 to confirm receipt of the first and second data. For example, prompt message 11 may be capsule 6004 as shown in Figure 6A(a).
[0439] After electronic device 200 confirms receipt of the first and second data, if the first data is still not fully downloaded, electronic device 100 can continue to display the download progress of the first and second data. During this display, electronic device 100 can display prompt message 12, instructing the user to wait for electronic device 100 to download the first data. Electronic device 200 can also display prompt message 13, instructing the user to wait for electronic device 100 to send the first data. For example, prompt message 12 can be capsule 6005 as shown in Figure 6B(a). Prompt message 13 can be capsule 6006 as shown in Figure 6B(b).
[0440] After the first data download is complete, electronic device 100 can send the first data to electronic device 200 to begin downloading the second data. Electronic device 100 can display prompt message 7 and the download progress of the second data. Electronic device 200 can display prompt message 8.
[0441] After the first data is sent, if the second data has not yet been downloaded, the electronic device 100 can continue to display the download progress of the second data. The electronic device 100 can display prompt message 14, which instructs the user to wait for the electronic device 100 to download the second data. The electronic device 200 can display prompt message 15, which instructs the user to wait for the electronic device 100 to send the second data. Prompt messages 14 and 15 are not shown in Figure 15C.
[0442] After the first data transmission is completed, if the second data has been downloaded, electronic device 100 can send the second data to electronic device 200. Electronic device 100 can display prompt message 9, and electronic device 200 can display prompt message 10.
[0443] Specifically, please refer to the description in Case 2 of the embodiment in which electronic device 100 sends multiple images to electronic device 200, which will not be repeated here.
[0444] Thirdly, after electronic device 100 receives and shares the first and second data, neither the first nor the second data has been fully downloaded. Before electronic device 200 confirms receipt of the first and second data sent by electronic device 100, both the first and second data have already been fully downloaded.
[0445] Figure 15D shows a timing diagram of a third electronic device 100 sending first and second data to an electronic device 200.
[0446] Before the electronic device 100 receives and shares the first data and the second data, if neither the first data nor the second data has been downloaded completely, the electronic device 100 may display the download progress of the first data.
[0447] After the electronic device 100 receives and shares the first data and the second data, before the electronic device 200 confirms the receipt of the first data and the second data, if the first data and the second data are still not downloaded, the electronic device 100 may continue to display the download progress of the first data and the download progress of the second data respectively. During the period when the electronic device 100 displays the download progress of the first data and the download progress of the second data, the electronic device 100 may display the prompt message 11.
[0448] Before the electronic device 200 confirms receipt of the first and second data, if the first and second data have been downloaded, the electronic device 100 may continue to display the prompt message 11.
[0449] After electronic device 200 confirms receipt of the first data and the second data, electronic device 100 may first send the first data to electronic device 200. During the transmission of the first data, electronic device 100 may display prompt message 7, and electronic device 200 may display prompt message 8.
[0450] After the first data transmission is completed, electronic device 100 can then transmit the second data to electronic device 200. During the transmission of the second data, electronic device 100 can display prompt message 9, and electronic device 200 can display prompt message 10.
[0451] Specifically, please refer to the description in Case 3 of the embodiment in which electronic device 100 sends multiple images to electronic device 200, which will not be repeated here.
[0452] Timing 4: After electronic device 100 receives and shares the first and second data, the first data is downloaded completely, but the second data is not. After electronic device 200 confirms receipt of the first and second data sent by electronic device 100, the second data is still not downloaded completely.
[0453] Figure 15E shows a timing diagram of the fourth electronic device 100 sending first and second data to electronic device 200.
[0454] Before the electronic device 100 receives and shares the first data and the second data, if neither the first data nor the second data has been downloaded completely, the electronic device 100 may display the download progress of the first data.
[0455] After the electronic device 100 receives and shares the first and second data, if the first data has been downloaded completely but the second data has not, the electronic device 100 can display the download progress of the first data and a prompt message 11. After the first data has been downloaded completely, the electronic device 100 can start downloading the second data and display the download progress of the second data and a prompt message 11.
[0456] After electronic device 200 confirms receipt of the first and second data, if the first data has been downloaded completely but the second data has not, electronic device 100 can send the first data to electronic device 200 to continue downloading the second data. During the sending of the first data, electronic device 100 can display prompt message 7 and the download progress of the second data, and electronic device 200 can display prompt message 8.
[0457] After the first data is sent, if the second data has not yet been downloaded, the electronic device 100 can continue to display the download progress of the second data. During the download of the second data, the electronic device 100 can display prompt message 14, and the electronic device 200 can display prompt message 15. Prompt messages 14 and 15 are not shown in Figure 15E.
[0458] After the first data transmission is completed, if the second data has been downloaded, electronic device 100 can send the second data to electronic device 200. Electronic device 100 can display prompt message 9, and electronic device 200 can display prompt message 10.
[0459] Specifically, please refer to the description in Case 4 of the embodiment in which electronic device 100 sends multiple images to electronic device 200, which will not be repeated here.
[0460] Fifthly, after electronic device 100 receives and shares the first and second data, the first data is downloaded completely, but the second data is not yet downloaded. Before electronic device 200 confirms receipt of the first and second data sent by electronic device 100, the second data has already been downloaded.
[0461] Figure 15F shows a timing diagram of the fifth electronic device 100 sending first and second data to the electronic device 200.
[0462] Before the electronic device 100 receives and shares the first data and the second data, if neither the first data nor the second data has been downloaded completely, the electronic device 100 may display the download progress of the first data.
[0463] After the electronic device 100 receives and shares the first and second data, if the first data has been downloaded completely but the second data has not, the electronic device 100 can display the download progress of the second data and a prompt message 11. After the first data has been downloaded completely, the electronic device 100 can start downloading the second data and display the download progress of the second data and a prompt message 11.
[0464] After electronic device 200 confirms receipt of the first and second data, if the second data has also been downloaded, electronic device 100 may first send the first data to electronic device 200. During the transmission of the first data, electronic device 100 may display prompt message 7, and electronic device 200 may display prompt message 8.
[0465] After the first data transmission is completed, electronic device 100 can then transmit the second data to electronic device 200. During the transmission of the second data, electronic device 100 can display prompt message 9, and electronic device 200 can display prompt message 10.
[0466] Specifically, please refer to the description in Case 5 of the embodiment in which electronic device 100 sends multiple images to electronic device 200, which will not be repeated here.
[0467] Figure 16 shows a flowchart illustrating the fifth data sharing method provided in this application.
[0468] S1601. The first electronic device displays a first interface, which displays a first thumbnail. The first thumbnail is used to indicate the first data.
[0469] S1602, The first electronic device receives a first operation, which instructs the first electronic device to share the first data to the second electronic device.
[0470] S1603. In response to the first operation, the first electronic device downloads the first data and displays the download progress of the first data.
[0471] S1604. The first electronic device establishes a communication connection with the second electronic device.
[0472] S1605. After the first electronic device and the second electronic device establish a communication connection, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device; if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device.
[0473] The first electronic device does not store the first data, thus saving storage space. After the first electronic device detects the second electronic device, it can download the first data from the server in real time.
[0474] The downloading of first data by the first electronic device and the establishment of a communication connection between the first electronic device and the second electronic device are performed in parallel.
[0475] The first data may include, but is not limited to, any one or more of the following: images, videos, GIFs, files, application installation packages, etc. The first operation includes, but is not limited to, any one of the following: bringing the first electronic device close to the second electronic device, air gesture operation, gesture operation applied to the display screen of the first electronic device, and input operation on the sharing control in the first interface.
[0476] Implementing this method, in response to the first operation, when the first electronic device discovers the second electronic device, the first electronic device can simultaneously perform the steps of downloading first data and establishing a communication connection with the second electronic device. The first electronic device does not need to wait for the communication connection to be established before performing the step of downloading the first data, which can speed up the downloading process, reduce the user's waiting time, and also accelerate the sharing of first data between the first and second electronic devices.
[0477] For example, the first data can be an image from a gallery application, such as image 3102; the first operation can be the operation of bringing electronic device 100 closer to electronic device 200 as shown in Figure 3D; and the download progress of the first data can be the prompt bar 3104 shown in Figure 3E.
[0478] In one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: the first electronic device displaying a first sharing interface; the first electronic device receiving and responding to a second operation on the first sharing interface and sending a first message to the second electronic device; in response to the first message, the second electronic device displaying a second sharing interface; and the second electronic device receiving and responding to a third operation on the second sharing interface and sending a second message to the first electronic device, the second message being used to instruct the second electronic device to confirm receipt of the first data.
[0479] In one possible implementation, if the first electronic device does not receive the second message sent by the second electronic device, the first electronic device confirms that the second electronic device has not confirmed receiving the first data.
[0480] By implementing this method, after the first electronic device and the second electronic device establish a communication connection, the first electronic device can display a first sharing interface, and the first electronic device can confirm the sharing of first data through a second operation performed by the user on the first sharing interface. The second electronic device can display a second sharing interface, and the second electronic device can confirm the receipt of the first data through a third operation performed by the user on the second sharing interface.
[0481] Optionally, before or after the first data download is complete, the first electronic device may receive and respond to a second operation on the first sharing interface, and / or the second electronic device may receive and respond to a third operation on the second sharing interface.
[0482] Preferably, before the first data download is completed, the first electronic device may receive and respond to a second operation on the first sharing interface, or / or the second electronic device may receive and respond to a third operation on the second sharing interface.
[0483] By implementing this method, there is no need to wait for the first data to be downloaded completely. The first electronic device can establish a communication connection with the second electronic device. The user on the local end can perform the operation of confirming the sharing of the first data, and the user on the other end can also perform the operation of confirming the receipt of the first data. This can reduce the time that the user on the local end has to wait for the electronic device to download the first data, thus improving the user experience.
[0484] For example, the first sharing interface can be the sharing interface shown in FIG3F, which may include an upward swipe sharing control 3108. The second operation on the first sharing interface can be the operation on the upward swipe sharing control 3108 shown in FIG3F, such as touching the upward swipe sharing control 3108 and swiping upwards. The first message can be a message sent by the sharing module in electronic device 100 to the sharing module in electronic device 200 after the display service module in electronic device 100 receives and responds to the operation of sharing the first data. The second message can be message 5 and / or message 6 and / or message 7 shown in FIG10.
[0485] For example, the second sharing interface can be interface 3300 as shown in Figure 3G(b), and the third operation for the second sharing interface can be the input operation for the receiving control 3110 as shown in Figure 3G(b), Figure 3M(b), or Figure 3O(b).
[0486] In one possible implementation, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device. Specifically, this includes responding to a second message sent by the second electronic device, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device.
[0487] In one possible implementation, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device, specifically including: in response to a second message sent by the second electronic device, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device.
[0488] In this way, the local user can confirm the sharing of the first data before or after the first data download is complete, and the remote user can confirm the receipt of the first data, without having to wait for the first data to finish downloading. This reduces the time the local user spends waiting for the first electronic device to download the first data, thus improving the user experience.
[0489] In one possible implementation, after the first electronic device and the second electronic device establish a communication connection, the method further includes: after the first electronic device receives and responds to a second operation for the first sharing interface, and before receiving a second message sent by the second electronic device, the first electronic device displays a first prompt message, which is used to indicate waiting for the second electronic device to confirm receipt of the first data.
[0490] For example, the first prompt message may be capsule 3109 as shown in Figure 3G(a), Figure 3M(a), or Figure 3N(a).
[0491] Optionally, while the first electronic device is displaying the first prompt message, if the first data has not yet been downloaded, the first electronic device may display the download progress of the first data.
[0492] In one possible implementation, if the first data is not fully downloaded, the first electronic device waits for the first data to finish downloading before sending the first data to the second electronic device, specifically including:
[0493] If the first data is not downloaded completely, the first electronic device displays a second prompt message, and the second electronic device displays a third prompt message. The second prompt message is used to instruct the first electronic device to wait for the first data to be downloaded, and the third prompt message is used to instruct the second electronic device to wait for the first data to be received. After the first data is downloaded, the first electronic device sends the first data to the second electronic device. The first electronic device displays a fourth prompt message, and the second electronic device displays a fifth prompt message. The fourth prompt message is used to instruct the first electronic device to send the first data, and the fifth prompt message is used to instruct the second electronic device to indicate the progress of the first data reception.
[0494] In some embodiments, the method further includes: after receiving a second message sent by a second electronic device, the first electronic device displays the download progress of the first data. That is, the first data is not completed before the second electronic device confirms receipt of the first data, and the first data is completed after the second electronic device confirms receipt of the first data. For example, refer to the description in the embodiments of Figures 3G-3K.
[0495] Implementing this method, after the second electronic device confirms receipt of the first data, if the first data has not yet been downloaded completely, the first electronic device can display a second prompt message, and the second electronic device can display a third prompt message. After the first data has been downloaded completely, the first electronic device can send the first data to the second electronic device, at which point the first electronic device can display a third prompt message, and the second electronic device can display a fourth prompt message.
[0496] For example, the second prompt message may be capsule 3112 as shown in Figure 3H(a) or Figure 3I(a). The third prompt message may be capsule 3113 as shown in Figure 3H(b) or Figure 3I(b). The fourth prompt message may be capsule 3116 as shown in Figure 3J(a). The fifth prompt message may be capsule 3117 as shown in Figure 3J(b).
[0497] In one possible implementation, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device. Specifically, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device, the first electronic device displays a fourth prompt message, and the second electronic device displays a fifth prompt message.
[0498] In some embodiments, the method further includes: after the first electronic device receives the first operation, the first electronic device displays the download progress of the first data; after the first electronic device receives and responds to the second operation for the first sharing interface, the first electronic device stops displaying the download progress of the first data. That is, the first data is downloaded before the first electronic device confirms sending the first data. For example, refer to the description in the embodiments of Figures 3L-3M.
[0499] In some embodiments, the method further includes: after the first electronic device receives and responds to a second operation on the first sharing interface, and before the first electronic device receives a second message sent by a second electronic device, the first electronic device further displays the download progress of the first data; after the first electronic device receives the second message sent by the second electronic device, the first electronic device stops displaying the download progress of the first data. That is, after the first electronic device confirms sending the first data, the first data has not yet been downloaded completely. Before the second electronic device confirms receiving the first data, the first data has been downloaded completely. For examples, please refer to the description in the embodiments of Figures 3N-3O.
[0500] Optionally, if the first data has been downloaded completely before the first electronic device confirms the transmission of the first data, the first electronic device may not display the download progress of the first data. For example, refer to the description in the embodiments shown in Figures 3L-3M.
[0501] Implementing this method, after the second electronic device confirms receipt of the first data, if the first data has been downloaded completely, the first electronic device sends the first data to the second electronic device, and the electronic device may display a third prompt message, while the second electronic device may display a fourth prompt message.
[0502] For example, the fourth prompt message could be capsule 3116 as shown in Figure 3J(a). The fifth prompt message could be capsule 3117 as shown in Figure 3J(b).
[0503] In summary, the timing of the first electronic device sending the first data to the second electronic device differs, and the prompts displayed by the first electronic device also differ.
[0504] Timing 1: The first data is not fully downloaded before the second electronic device confirms receipt of the first data, and the first data is fully downloaded after the second electronic device confirms receipt of the first data.
[0505] The prompts displayed by the first and second electronic devices may be as follows: After the first electronic device receives and responds to the second operation on the first sharing interface, but before the second electronic device receives and responds to the third operation on the second sharing interface, if the first data has not been downloaded completely, the first electronic device may display the download progress of the first data and the first prompt. After the second electronic device receives and responds to the third operation on the second sharing interface, if the first data has still not been downloaded completely, the first electronic device may continue to display the download progress of the first data and the second prompt, while the second electronic device displays the third prompt. After the first data is downloaded completely, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display the fourth prompt, and the second electronic device may display the fifth prompt.
[0506] For example, reference can be made to the description in the embodiments of Figures 3F-3K.
[0507] Timing 2: The first data is downloaded before the first electronic device confirms the transmission of the first data.
[0508] The prompts displayed by the first and second electronic devices may be as follows: First data download is completed before the first electronic device receives and responds to the second operation on the first sharing interface. After the first electronic device receives and responds to the second operation on the first sharing interface, and before the second electronic device receives and responds to the third operation on the second sharing interface, the first electronic device displays the first prompt. After the second electronic device receives and responds to the third operation on the second sharing interface, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display the fourth prompt, and the second electronic device may display the fifth prompt.
[0509] For example, reference can be made to the description in the embodiments shown in Figures 3L-3M.
[0510] Timing 3: The first data is not fully downloaded before the first electronic device confirms the transmission of the first data. The first data is fully downloaded after the first electronic device confirms the transmission of the first data but before the second electronic device confirms the receipt of the first data.
[0511] The prompts displayed by the first and second electronic devices may be as follows: After the first electronic device receives and responds to the second operation on the first sharing interface, if the first data has not been downloaded completely before the second electronic device confirms receipt of the first data, the first electronic device displays the download progress of the first data and a first prompt. If the first data has been downloaded completely before the second electronic device confirms receipt of the first data, the first electronic device may continue to display the first prompt. After the second electronic device confirms receipt of the first data, the first electronic device may send the first data to the second electronic device. During the sending of the first data, the first electronic device may display a fourth prompt, and the second electronic device may display a fifth prompt.
[0512] For example, reference can be made to the description in the embodiments of Figures 3N-3O.
[0513] By implementing this method, the first electronic device can display different prompts at different sharing stages. For example, during the download of first data by the first electronic device, the electronic device 100 can display the download progress of the first data. During the waiting period for the second electronic device to confirm receipt of the first data sent by the first electronic device, the first electronic device can display a prompt indicating that it is waiting for the second electronic device to confirm receipt. After the second electronic device confirms receipt of the first data sent by the first electronic device, during the period when the first electronic device sends the first data to the second electronic device, the first electronic device can display the sending progress of the first data, and the second electronic device can display the receiving progress of the first data. On the one hand, the user can accurately know which sharing stage they are in by observing the different prompts displayed by the first electronic device at different sharing stages. On the other hand, after the first electronic device moves closer to the second electronic device, the user only needs to perform a sharing operation once. Subsequently, the user only needs to pay attention to the prompts displayed by the first electronic device to know which sharing stage they are in. Furthermore, the different prompts displayed by the first electronic device at different sharing stages can also remind the user that the first data has not yet been shared, preventing the user from moving the first electronic device away from the second electronic device, closing the gallery application process, or running the gallery application in the background before the first data is successfully sent, which could lead to sharing failure.
[0514] In one possible implementation, the first thumbnail is a thumbnail of the first data, and the first thumbnail is displayed in both the first and second sharing interfaces.
[0515] In this way, when the first electronic device stores a thumbnail of the first data, the first electronic device can display the first thumbnail on the first sharing interface, so that the user can preview the content of the first data through the thumbnail of the first data to confirm the content of the first data sent to the second device.
[0516] In some embodiments, the first electronic device may not store a thumbnail of the first data, saving storage space. After receiving the first operation, the first electronic device then downloads the first data from the server.
[0517] In one possible implementation, the first thumbnail is not a thumbnail of the first data, and the method further includes: if the first electronic device has obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then when the first electronic device displays the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface.
[0518] Thus, if the first electronic device has already obtained a thumbnail of the first data before the electronic device 100 displays the sharing interface, the first electronic device can stop displaying the first thumbnail and display the thumbnail of the first data instead. The user on this end can preview the content of the first data through the thumbnail of the first data. For example, please refer to the description in the embodiment of Figure 12.
[0519] In one possible implementation, the first thumbnail is not a thumbnail of the first data; the method further includes: if the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then the first electronic device displays the first thumbnail in the first sharing interface; after the first electronic device displays the first sharing interface, and before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device obtains a thumbnail of the first data, then the first electronic device displays the thumbnail of the first data in the first sharing interface.
[0520] Thus, before the first electronic device receives confirmation from the local user to share the first data, if the first electronic device has already obtained a thumbnail of the first data, it can stop displaying the first thumbnail and instead display the thumbnail of the first data. The local user can then preview the content of the first data through the thumbnail. For example, please refer to the description in the embodiment shown in Figure 13.
[0521] In one possible implementation, a thumbnail of the first data is displayed on the second sharing interface; the method further includes: in response to a second operation, the first electronic device also sends the thumbnail of the first data to the second electronic device. In this way, the user at the other end can also preview the content of the first data through the thumbnail to confirm its content.
[0522] In one possible implementation, the first thumbnail is not a thumbnail of the first data, but the first thumbnail is displayed on the first sharing interface; the method further includes: if the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, then the first electronic device displays the first thumbnail on the first sharing interface; after the first electronic device displays the first sharing interface, but before the first electronic device receives and responds to the second operation for the first sharing interface, if the first electronic device has not yet obtained a thumbnail of the first data, then the first electronic device continues to display the first thumbnail on the first sharing interface.
[0523] In some embodiments, the first thumbnail may also be referred to as a preset thumbnail.
[0524] Thus, once the first electronic device receives confirmation from the user to share the first data, and the thumbnail of the first data has been downloaded, the first electronic device no longer needs to update and display the thumbnail. This is because after the first electronic device sends the first thumbnail to the second electronic device, it has confirmed that the first data has been sent to the second electronic device, and the first electronic device no longer needs to display the thumbnail of the first data. For example, please refer to the description in the embodiment shown in Figure 11.
[0525] In conjunction with the first aspect, in one possible implementation, the method further includes: in response to the second operation, the first electronic device also sends a first thumbnail to the second electronic device. Thus, the first electronic device can also send a preset thumbnail to the second electronic device, which can then display the preset thumbnail.
[0526] This application provides an electronic device, namely a first electronic device, which includes one or more processors and one or more memories, wherein the one or more memories are coupled to one or more processors, and the one or more memories are used to store a computer program. When the one or more processors execute the computer program, they perform the steps in the above-described method embodiments.
[0527] This application also provides a computer-readable storage medium, which includes instructions that, when executed by a processor, can implement the steps in the various method embodiments described above.
[0528] This application also provides a computer program product, including a computing program, which, when run on a computer, enables the computer to perform the steps in the various method embodiments described above.
[0529] This application also provides a chip system, which includes a processing circuit interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.
[0530] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. A data sharing method, the method being applied to a system comprising a first electronic device and a second electronic device, characterized in that, The method includes: A first electronic device displays a first interface, which displays a first thumbnail, and the first thumbnail is used to indicate first data. The first electronic device receives a first operation, which instructs the first electronic device to share the first data with the second electronic device; In response to the first operation, the first electronic device downloads the first data and displays the download progress of the first data; The first electronic device establishes a communication connection with the second electronic device; After the first electronic device establishes a communication connection with the second electronic device, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device. If the first data has been downloaded, the first electronic device will send the first data to the second electronic device.
2. The method of claim 1, wherein, The downloading of the first data by the first electronic device and the establishment of a communication connection between the first electronic device and the second electronic device are performed in parallel.
3. The method according to claim 1 or 2, characterized in that, After the first electronic device and the second electronic device establish a communication connection, the method further includes: The first electronic device displays the first sharing interface; The first electronic device receives and responds to a second operation on the first sharing interface, and sends a first message to the second electronic device; In response to the first message, the second electronic device displays a second sharing interface; The second electronic device receives and responds to a third operation on the second sharing interface, and sends a second message to the first electronic device, the second message being used to instruct the second electronic device to confirm receipt of the first data.
4. The method of claim 3, wherein, The method further includes: If the first electronic device does not receive the second message sent by the second electronic device, then the first electronic device confirms that the second electronic device has not confirmed receiving the first data.
5. The method according to claim 3 or 4, characterized in that, If the first data is not downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device, specifically including: In response to the second message sent by the second electronic device, if the first data has not been downloaded completely, the first electronic device waits for the first data to be downloaded completely before sending the first data to the second electronic device.
6. The method according to claim 3 or 4, characterized in that, If the first data has been downloaded completely, the first electronic device will send the first data to the second electronic device, specifically including: In response to the second message sent by the second electronic device, if the first data has been downloaded, the first electronic device sends the first data to the second electronic device.
7. The method according to any one of claims 3-6, characterized in that, After the first electronic device and the second electronic device establish a communication connection, the method further includes: After the first electronic device receives and responds to the second operation for the first sharing interface, and before receiving the second message sent by the second electronic device, the first electronic device displays a first prompt message, which indicates that it is waiting for the second electronic device to confirm receipt of the first data.
8. The method of claim 5, wherein, If the first data is not downloaded, the first electronic device displays second prompt information, and the second electronic device displays third prompt information, the second prompt information is used to indicate that the first electronic device is waiting for downloading the first data, and the third prompt information is used to indicate that the second electronic device is waiting for receiving the first data. If the first data is downloaded, the first electronic device sends the first data to the second electronic device, and the first electronic device displays fourth prompt information, and the second electronic device displays fifth prompt information. The method further comprises:
9. The method of claim 6, wherein, After receiving the second message sent by the second electronic device, the first electronic device displays the downloading progress of the first data. The method further comprises:
10. The method of claim 5 or 8, wherein, After the first electronic device receives the first operation, the first electronic device displays the downloading progress of the first data. After the first electronic device receives and responds to the second operation on the first sharing interface, the first electronic device stops displaying the downloading progress of the first data.
11. The method according to claim 6 or 9, characterized in that, The method further comprises: After the first electronic device receives and responds to the second operation on the first sharing interface, before the first electronic device receives the second message sent by the second electronic device, the first electronic device also displays the downloading progress of the first data. After the first electronic device receives the second message sent by the second electronic device, the first electronic device stops displaying the downloading progress of the first data.
12. The method according to claim 6 or 9, characterized in that, The first thumbnail is a thumbnail of the first data, and the first sharing interface and the second sharing interface display the first thumbnail. The first thumbnail is not a thumbnail of the first data, and the method further comprises: If the first electronic device has obtained the thumbnail of the first data before the first electronic device displays the first sharing interface, when the first electronic device displays the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface.
13. The method according to any one of claims 3-12, characterized in that, The first thumbnail is not a thumbnail of the first data, and the method further comprises:
14. The method according to any one of claims 3-12, characterized in that, If the first electronic device has obtained the thumbnail of the first data before the first electronic device displays the first sharing interface, when the first electronic device displays the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface. The first thumbnail is not a thumbnail of the first data, and the method further comprises:
15. The method according to any one of claims 3-12, characterized in that, If the first electronic device does not obtain the thumbnail of the first data before the first electronic device displays the first sharing interface, the first electronic device displays the first thumbnail in the first sharing interface. If the first electronic device obtains the thumbnail of the first data after the first electronic device displays the first sharing interface and before the first electronic device receives and responds to a second operation for the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface.
16. The method according to any one of claims 13-15, characterized in that, The second sharing interface displays the thumbnail of the first data; and the method further includes: In response to the second operation, the first electronic device further sends the thumbnail of the first data to the second electronic device.
17. The method according to any one of claims 3-12, characterized in that, The first thumbnail is not the thumbnail of the first data, and the first sharing interface displays the first thumbnail; and the method further includes: If the first electronic device does not obtain the thumbnail of the first data before the first electronic device displays the first sharing interface, the first electronic device displays the first thumbnail in the first sharing interface. If the first electronic device does not obtain the thumbnail of the first data after the first electronic device displays the first sharing interface and before the first electronic device receives and responds to a second operation for the first sharing interface, the first electronic device continues to display the first thumbnail in the first sharing interface.
18. The method of claim 17, wherein, The method further includes: In response to the second operation, the first electronic device further sends the first thumbnail to the second electronic device.
19. The method according to any one of claims 1 to 18, characterized in that, The first operation includes any one of the following: an operation of bringing the first electronic device close to the second electronic device, a gesture operation in the air, a gesture operation on the display screen of the first electronic device, and an input operation for a sharing control in the first interface.
20. A data sharing method, comprising: The method includes: A first electronic device displays a first interface, and the first interface displays a first thumbnail, where the first thumbnail is used to indicate first data. The first electronic device receives a first operation, and the first operation is used to instruct the first electronic device to share the first data to a second electronic device. In response to the first operation, the first electronic device downloads the first data and displays a download progress of the first data. The first electronic device establishes a communication connection with the second electronic device. After the first electronic device establishes the communication connection with the second electronic device, if the first data is not downloaded completely, the first electronic device waits until the first data is downloaded completely, and then sends the first data to the second electronic device. If the first data is downloaded completely, the first electronic device sends the first data to the second electronic device.
21. The method of claim 20, wherein, The first electronic device downloads the first data and the first electronic device establishes the communication connection with the second electronic device are performed in parallel.
22. The method of claim 20 or 21, wherein, After the first electronic device establishes the communication connection with the second electronic device, the method further includes: The first electronic device displays a first sharing interface; The first electronic device receives and responds to a second operation on the first sharing interface, and sends a first message to the second electronic device; The first electronic device receives a second message sent by the second electronic device, and the second message is used to indicate that the second electronic device confirms to receive the first data.
23. The method of claim 22, wherein, The method further comprises: If the first electronic device does not receive the second message sent by the second electronic device, the first electronic device confirms that the second electronic device does not confirm to receive the first data.
24. The method of claim 22 or 23, wherein, If the first data is not downloaded completely, the first electronic device waits until the first data is downloaded completely, and then sends the first data to the second electronic device, specifically comprising: If the first data is not downloaded completely, the first electronic device waits until the first data is downloaded completely, and then sends the first data to the second electronic device in response to the second message sent by the second electronic device.
25. The method of claim 22 or 23, wherein, If the first data is downloaded completely, the first electronic device sends the first data to the second electronic device, specifically comprising: If the first data is downloaded completely, the first electronic device sends the first data to the second electronic device in response to the second message sent by the second electronic device.
26. The method of any one of claims 22-25, wherein, After the first electronic device and the second electronic device establish a communication connection, the method further comprises: After the first electronic device receives and responds to the second operation on the first sharing interface, before receiving the second message sent by the second electronic device, the first electronic device displays a first prompt information, and the first prompt information is used to indicate waiting for the second electronic device to confirm to receive the first data.
27. The method of claim 24, wherein, If the first data is not downloaded completely, the first electronic device displays a second prompt information, and the second prompt information is used to indicate that the first electronic device waits to download the first data; After the first data is downloaded completely, the first electronic device sends the first data to the second electronic device, and the first electronic device displays a fourth prompt information, and the fourth prompt information is used to indicate that the first electronic device is sending the first data. If the first data is downloaded completely, the first electronic device sends the first data to the second electronic device, and the first electronic device displays a fourth prompt information.
28. The method of claim 25, wherein, If the first data is downloaded completely, the first electronic device sends the first data to the second electronic device, and the first electronic device displays a fourth prompt information. The method further comprises:
29. The method of claim 24 or 27, wherein, After receiving the second message sent by the second electronic device, the first electronic device displays a download progress of the first data. The method further comprises:
30. The method of claim 25 or 28, wherein, After the first electronic device receives the first operation, the first electronic device displays a download progress of the first data; The method further comprises: After the first electronic device receives and responds to the second operation on the first sharing interface, the first electronic device stops displaying the download progress of the first data.
31. The method of claim 25 or 28, wherein, The method further includes: After the first electronic device receives and responds to the second operation on the first sharing interface, the first electronic device displays the download progress of the first data before the first electronic device receives the second message sent by the second electronic device; After the first electronic device receives the second message sent by the second electronic device, the first electronic device stops displaying the download progress of the first data.
32. The method of any one of claims 22-31, wherein, The first thumbnail is a thumbnail of the first data, and the first thumbnail is displayed in the first sharing interface and the second sharing interface.
33. The method of any one of claims 22-31, wherein, The first thumbnail is not a thumbnail of the first data, and the method further includes: If the first electronic device has obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface when the first electronic device displays the first sharing interface.
34. The method of any one of claims 22-31, wherein, The first thumbnail is not a thumbnail of the first data; the method further includes: If the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, the first electronic device displays the first thumbnail in the first sharing interface; After the first electronic device displays the first sharing interface, if the first electronic device obtains a thumbnail of the first data before the first electronic device receives and responds to the second operation on the first sharing interface, the first electronic device displays the thumbnail of the first data in the first sharing interface.
35. The method of any one of claims 32-34, wherein, The second sharing interface displays a thumbnail of the first data; the method further includes: In response to the second operation, the first electronic device further sends the thumbnail of the first data to the second electronic device.
36. The method of any one of claims 22-31, wherein, The first thumbnail is not a thumbnail of the first data, and the first thumbnail is displayed in the first sharing interface; the method further includes: If the first electronic device has not obtained a thumbnail of the first data before the first electronic device displays the first sharing interface, the first electronic device displays the first thumbnail in the first sharing interface; After the first electronic device displays the first sharing interface, if the first electronic device has not obtained a thumbnail of the first data before the first electronic device receives and responds to the second operation on the first sharing interface, the first electronic device continues to display the first thumbnail in the first sharing interface.
37. The method of claim 36, wherein, The method further includes: In response to the second operation, the first electronic device further sends the first thumbnail to the second electronic device.
38. The method of any one of claims 22-37, wherein, The first operation includes any one of the following: an operation of approaching the first electronic device to the second electronic device, a midair gesture operation, a gesture operation acting on a display screen of the first electronic device, and an input operation for a sharing control in the first interface.
39. An electronic device, being a first electronic device, comprising: The first electronic device includes one or more processors, one or more memories, wherein the one or more memories are coupled to the one or more processors, and the one or more memories are configured to store a computer program, and when the one or more processors execute the computer program, the communication method according to any one of claims 1-38 is executed.
40. A computer-readable storage medium, characterized in that, An instruction is included, and when the instruction is executed by a processor, the communication method according to any one of claims 1-38 is executed.
41. A computer program product, characterised in that, A computer program is included, and when the computer program is executed by a processor, the communication method according to any one of claims 1-38 is executed.
42. A chip system, characterized by An interface circuit is included, and the interface circuit is configured to receive code instructions and transmit the code instructions to a processing circuit, and the processing circuit is configured to execute the code instructions to execute the communication method according to any one of claims 1-38.
