File transmission method and device, electronic equipment and readable storage medium
By obtaining cloud storage space link information within the near-field communication area of devices with different operating systems, and using lightweight application cards to achieve cross-platform file transfer, the problem of high usage threshold and high operating cost of cross-platform file transfer is solved, realizing convenient and efficient file sharing.
Patent Information
- Application Number
- CN202511576892.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-31
- Publication Date
- 2026-01-06
AI Technical Summary
Cross-platform data transfer, especially file transfer between different operating systems, faces challenges in terms of usage barriers and operational costs. For example, specific applications need to be installed for data transfer between Android and iOS devices.
By obtaining the link information of the cloud storage space within the device's near-field communication area, and using near-field communication tags to achieve file transfer, the system avoids the need for users to manually install applications and perform complex pairing operations, and uses lightweight application cards as the entry point for file transfer.
It lowers the barrier to entry and operational costs for file transfer between different operating systems, enabling a fast and convenient file sharing process, improving operational efficiency and ensuring file security.
Smart Images

Figure CN121284023A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of electronic equipment technology, specifically relating to a file transfer method, apparatus, electronic device, and readable storage medium. Background Technology
[0002] With the widespread adoption of mobile smart devices, users frequently need to share various types of data, such as photos and videos, between different devices in their daily lives. However, cross-platform data transfer, especially file transfer between different operating systems, has long faced significant challenges. For example, the common method for data transfer between Android and iOS operating systems requires both the sending and receiving devices to have specific file transfer applications pre-installed. For users unfamiliar with such applications, they need to spend extra time understanding, searching for, downloading, and installing the application, which undoubtedly increases the barrier to entry and operational costs for users. Summary of the Invention
[0003] The purpose of this application is to provide a file transfer method, apparatus, electronic device, and readable storage medium that can reduce the usage threshold and operating cost of file transfer between different operating systems.
[0004] In a first aspect, embodiments of this application provide a file transfer method, executed by a first device, the method comprising:
[0005] When the near-field communication area of the first device and the near-field communication area of the second device are within a preset communication distance, the link information of the cloud storage space is obtained according to the near-field communication tag of the second device;
[0006] The cloud storage space is displayed according to the link information of the cloud storage space; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0007] Secondly, embodiments of this application provide a file transfer method, executed by a second device, the method comprising:
[0008] When the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance, the link information of the cloud storage space is sent to the first device through the near-field communication tag; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0009] Thirdly, embodiments of this application provide a file transfer device applied to a first device, the device comprising:
[0010] The first acquisition module is used to acquire the link information of the cloud storage space based on the near-field communication tag of the second device when the near-field communication area of the first device and the near-field communication area of the second device are within a preset communication distance.
[0011] The first processing module is used to display the cloud storage space according to the link information of the cloud storage space; wherein the cloud storage space is used for file transfer between the first device and the second device.
[0012] Fourthly, embodiments of this application provide a file transfer device applied to a second device, the device comprising:
[0013] The first sending module is used to send cloud storage space link information to the first device via a near-field communication tag when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0014] Fifthly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first or second aspect.
[0015] In a sixth aspect, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first or second aspect.
[0016] In a seventh aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the methods described in the first or second aspect.
[0017] Eighthly, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method as described in the first or second aspect.
[0018] In this embodiment, when the near-field communication areas of the first device and the second device are within a preset communication distance, the first device can obtain the link information of the cloud storage space based on the near-field communication tag of the second device, and display the cloud storage space according to the link information. The first device and the second device then perform file transfer interaction through the cloud storage space. This file transfer scheme can reduce the usage threshold and operational costs of file transfer between different operating systems. Attached Figure Description
[0019] Figure 1 This is one of the flowcharts of the file transfer method in the embodiments of this application;
[0020] Figure 2 This is one of the schematic diagrams of the interactive interface of the second device in the embodiments of this application;
[0021] Figure 3 This is the second schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0022] Figure 4 This is the third schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0023] Figure 5 This is one of the schematic diagrams of the interactive interface of the first device in the embodiments of this application;
[0024] Figure 6 This is the second schematic diagram of the interactive interface of the first device in the embodiments of this application;
[0025] Figure 7 This is the third schematic diagram of the interactive interface of the first device in the embodiments of this application;
[0026] Figure 8 This is the fourth schematic diagram of the interactive interface of the first device in the embodiments of this application;
[0027] Figure 9 This is the fifth schematic diagram of the interactive interface of the first device in the embodiments of this application;
[0028] Figure 10 This is the sixth schematic diagram of the interactive interface of the first device in the embodiments of this application;
[0029] Figure 11 This is the fourth schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0030] Figure 12 This is the fifth schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0031] Figure 13 This is the sixth schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0032] Figure 14 This is the seventh schematic diagram of the interactive interface of the second device in the embodiments of this application;
[0033] Figure 15 This is the second flowchart of the file transfer method in the embodiments of this application;
[0034] Figure 16 This is one of the structural block diagrams of the file transfer device in the embodiments of this application;
[0035] Figure 17 This is the second structural block diagram of the file transfer device in the embodiments of this application;
[0036] Figure 18 This is one of the hardware structure diagrams of the first device in the embodiments of this application;
[0037] Figure 19 This is the second schematic diagram of the hardware structure of the first device in the embodiments of this application;
[0038] Figure 20 This is one of the hardware structure diagrams of the second device in the embodiments of this application;
[0039] Figure 21 This is the second schematic diagram of the hardware structure of the second device in the embodiments of this application. Detailed Implementation
[0040] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0041] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0042] The file transfer method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0043] It should be noted that the file transfer method provided in this application can be executed by electronic devices such as mobile phones, tablets, laptops, PDAs, and in-vehicle electronic devices. Some embodiments of this application use electronic devices as the executing entity to illustrate the file transfer method provided in this application.
[0044] The file transfer method provided in this application can be applied to file sharing application scenarios that require cross-device sharing, especially across different operating system platforms. One specific application scenario is that a user on a second device wants to share pictures or videos with a first device. Another specific application scenario is that a user needs to quickly synchronize documents or data generated on a second device to a first device for further processing. Yet another specific application scenario is that a user on a first device wants to share pictures or videos with a second device. Still another specific application scenario is that a user needs to quickly synchronize documents or data generated on a first device to a second device for further processing.
[0045] See Figure 1 This application provides a file transfer method, executed by a first device, the method comprising:
[0046] Step 101: When the near-field communication area of the first device and the near-field communication area of the second device are within a preset communication distance, obtain the link information of the cloud storage space based on the near-field communication tag of the second device.
[0047] In specific implementation, the near-field communication area of the first device and the near-field communication area of the second device within a preset communication distance may include: the user bringing the NFC sensing area of the first device close to the NFC sensing area of the second device, or even making slight contact.
[0048] For example, when the first device and the second device are in contact or close to each other in the Near Field Communication (NFC) area, the first device obtains the link information of the cloud storage space based on the NFC tag of the second device.
[0049] Optionally, the near-field communication tag may specifically be an NFC tag.
[0050] For example, when the NFC sensing areas of the first mobile phone and the second mobile phone are tapped together, the first mobile phone can read the pre-configured link information pointing to the temporary cloud storage space, such as the Uniform Resource Locator (URL), through the NFC tag provided by the second mobile phone.
[0051] Step 102: Display the cloud storage space according to the link information of the cloud storage space; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0052] Optionally, cloud storage space is temporary cloud service space, meaning that the link information of cloud storage space is only valid for a period of time, such as within 10 minutes.
[0053] In the above embodiments, when the near-field communication areas of the first device and the second device are within a preset communication distance, the first device reads the link information of the cloud storage space from the near-field communication tag provided by the second device; and enters and displays the cloud storage space based on the link information, and performs file transfer interaction with the second device through the cloud storage space. This solution can provide a file interaction service entry point in real time when the user needs it by intuitively observing the near-field communication areas of the two devices approaching or touching each other, avoiding the cumbersome operation of manually entering a URL, installing a file transfer application, or performing complex pairing, thus reducing the user's operating threshold and operating cost.
[0054] In some embodiments of this application, the first device and the second device use different operating systems.
[0055] For example, when a first device running iOS and a second device running Android make near-field communication (NFC) contact, the first device can quickly obtain the cloud storage space link information carried in the second device's NFC tag and automatically or guide the user to access the cloud storage space based on this link information. Simultaneously, the first device displays the cloud service space. Subsequently, the user on the first device can access files uploaded to the cloud storage space by the second device, or the user on the first device can upload files to be transferred to the cloud storage space, allowing the second device to download the uploaded files from the cloud storage space, thus completing the file transfer interaction. This entire process in this example does not require the installation of any specific applications on either the first or second device, nor does it require copying cloud account logins, reducing the user's learning curve and operational costs.
[0056] For example, in scenarios where documents or data generated on a second device running an Android system need to be quickly synchronized to a first device running an iOS operating system for further processing, the user only needs to tap or bring the first and second devices close together to establish a near-field communication connection. The first device can then obtain the link information of the cloud storage space provided by the second device and use this cloud storage space as a file transfer relay station. The second device uploads files to the cloud storage space, and the first device then downloads the files from the cloud storage space; or, the first device uploads files to the cloud storage space for the second device to download, achieving an efficient file sharing process and reducing the complexity of establishing file transfer links in traditional methods.
[0057] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0058] It's important to note that the iOS operating system imposes numerous restrictions on the use of NFC tags, and direct data transfer between Android and iOS devices is not possible via NFC; data exchange can only occur indirectly through NFC tags as an intermediary. Furthermore, for iOS devices to launch lightweight applications by reading the URL from the NFC tag, the URL must be a valid link conforming to Apple's universal link specifications (Apple Developer).
[0059] For example, iOS phones support launching App Clips via NFC tags. When an iOS phone touches an NFC tag with a URL, if the URL is a valid universal link compatible with the first device, the iOS phone routes the message to the Apple Developer application registered with that universal link. If no application is registered, Safari handles the link through Apple Developer. It's important to note that to implement this functionality, the App Clip experience needs to be configured in App Store Connect, including setting the App Clip card's metadata, a set of calling URLs, and calling methods through Apple Developer. The App Clip card displays relevant application information and action buttons; users can launch the App Clip by clicking the button and obtain the transmitted URL to perform the corresponding function.
[0060] In some embodiments of this application, step 102 above, displaying the cloud storage space according to the link information, includes:
[0061] The lightweight application card is invoked based on the link information of the cloud storage space. The lightweight application card includes a jump control corresponding to the link information of the cloud storage space.
[0062] Receive the user's first input to the navigation control;
[0063] In response to the first input, the cloud storage space is displayed.
[0064] For example, when the first device detects an NFC tag containing the link information, it obtains the link information from the NFC tag; the first device recognizes that the link information is associated with a certain app clip, passes the read link information as a parameter to the app clip that is about to be launched, and displays an app clip card on the screen; then, based on the user's input operation on the jump control displayed on the app clip card, it enters and displays the cloud storage space.
[0065] The first input can be a first operation. For example, the first input includes, but is not limited to: touch input from the user on a jump link on a mini-application card, a voice command input by the user, a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not limit it. The specific gesture in this embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the first input can be: a user's click input on a jump control displayed on a mini-application card.
[0066] For example, in an application scenario where the first device receives file sharing from the second device, when the near-field communication areas of the first device and the second device are close to or in contact with each other, the first device displays as shown below. Figure 5 The illustrated app card 20 displays an "Open" control 21 as a navigation control; upon receiving a first input to the "Open" control 21, it responds to the first input by displaying... Figure 6 or Figure 7 The cloud storage space management interface 30 is shown. Among them, Figure 6 The diagram shown is a schematic of the cloud storage management interface on the second device side, before user A has uploaded any photos. Figure 7 The diagram shows the cloud storage management interface for photos uploaded by user A on the second device side. Figure 7 In the interface shown, user B on the first device side can select the file to be downloaded based on the option controls for each file, and download the selected file to the first device for storage based on the "Download" control 31.
[0067] For example, in an application scenario where a first device shares files with a second device, when the near-field communication areas of the first device and the second device are close to or in contact with each other, the first device displays as follows: Figure 8 The app card 20 shown has an "Open" control 21 that redirects to the app. Upon receiving the first input from user B to the "Open" control 21, the app responds to the first input, enters, and displays the app as shown in the image. Figure 9 The cloud storage space management interface 30 shown allows user B to select a file to be transferred based on their input to the "Select File to Share" control 32 on the management interface 30, and then proceed to... Figure 10 The management interface 30 shown; Figure 10In the management interface shown, user B can select the file to be shared based on the option controls for each file, and upload the selected file to the cloud storage space based on the "Share to Second Device" control 33, so that user A on the second device can download it from the cloud storage space.
[0068] In the above embodiments, the first device displays a lightweight application card, allowing users to access the cloud storage space for file interaction and transfer based on the lightweight application card. Compared to downloading interactive applications or logging into a personal cloud account, the solution of this application lowers the barrier to entry and operational costs. Moreover, lightweight application cards typically pop up quickly when they are close to or in contact with each other in the near-field communication area, enabling users to quickly access the upload or management interface of the cloud storage space, thus improving the efficiency of file interaction.
[0069] In some embodiments of this application, the first device sets the link information of the cloud storage space as the calling link of the lightweight application card.
[0070] For example, in a scenario where a second phone running Android transfers photos or videos to a first phone running iOS, the user selects the photos or videos to send from the album on the second phone and then makes near-field communication (NFC) contact with the first phone. During this contact, the second phone's NFC tag transmits a configuration URL to the first phone, which points to cloud storage. The first phone, acting as the reader, retrieves the NFC tag from the second phone, associates the URL in the NFC tag with a specific mini-application, and configures the call URL. It's important to note that this URL defines the relevant functions for triggering the mini-application, sending all the services required by the user touching the NFC tag to the mini-application; the mini-application then accesses the cloud storage based on the URL to complete the actual transfer of the photos or videos.
[0071] It should be noted that the above-mentioned method of accessing cloud storage space based on a lightweight application card is only one optional implementation. It is not a limitation in specific implementations. For example, after obtaining the link information, the first device can automatically open the link information to access the cloud storage space. Alternatively, the first device can display a prompt box with a control associated with the cloud storage space's link information; in response to user input on this control, access to the cloud storage space can be initiated.
[0072] In some embodiments of this application, the allocated cloud storage space is temporary cloud service space, and the link information is valid for a limited time.
[0073] In the above embodiments, when the allocated cloud storage space is a temporary cloud service space and the link information is valid for a limited time, the lightweight application card serves as the entry point to the cloud storage space, providing a highly secure one-time or short-term transmission channel. Users can access the cloud storage space for file transfer without logging into their personal cloud accounts, avoiding the risk of personal account information leakage. After the file transfer is completed, the temporary link becomes invalid, and the temporary cloud storage space is cleared, further ensuring file security.
[0074] In some embodiments of this application, the above file transfer method further includes:
[0075] Download the first file uploaded by the second device from the cloud storage space; and / or,
[0076] Upload the second file from the first device to the cloud storage space.
[0077] For example, such as Figure 7 In the diagram, user B on the first device can view photos uploaded by user A on the second device in the cloud storage management interface 30. User B can select the desired photos and download them to the first device for storage using the "download" control 31, thus completing the sharing of photos between the second and first devices. In the diagram, images or videos marked with a "√" are selected files.
[0078] For example, such as Figure 9 In the process, user A on the first device side can select photos and videos to be shared through the cloud storage space management interface 30, and based on... Figure 10 The "Share with Second Device" control 33 shown uploads the selected photos and videos to cloud storage so that user A on the second device can download them from the cloud storage. In the diagram, images or videos marked with a "√" are selected files.
[0079] See Figure 15 This application also provides a file transfer method, executed by a second device, the method comprising:
[0080] Step 1501: When the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance, the link information of the cloud storage space is sent to the first device through the near-field communication tag; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0081] Accordingly, the first device obtains the link information of the cloud storage space based on the near-field communication tag of the second device; and displays the cloud storage space based on the link information; the first device and the second device transfer files through the cloud storage space.
[0082] In the above embodiments, when the near-field communication areas of the first device and the second device are within a preset communication distance, the first device reads the link information of the cloud storage space from the near-field communication tag provided by the second device; and enters and displays the cloud storage space based on the link information, and performs file transfer interaction with the second device through the cloud storage space. This solution can provide a file interaction service entry point in real time when the user needs it through the intuitive action of the near-field communication areas of the two devices approaching or touching each other, avoiding the cumbersome operation of manually entering a URL, installing a file transfer application, or performing complex pairing, thus reducing the user's operating threshold and operating cost.
[0083] In some embodiments of this application, the second device and the first device use different operating systems.
[0084] For example, when a first device running iOS and a second device running Android make near-field communication (NFC) contact, the first device can quickly obtain the cloud storage space link information carried in the second device's NFC tag and automatically or guide the user to access the cloud storage space based on this link information. Simultaneously, the first device displays the cloud service space. Subsequently, the user on the first device can access files uploaded to the cloud storage space by the second device, or the user on the first device can upload files to be transferred to the cloud storage space, allowing the second device to download the uploaded files from the cloud storage space, thus completing the file transfer interaction. This entire process in this example does not require the installation of any specific applications on either the first or second device, reducing the user's learning curve and operational costs.
[0085] For example, in scenarios where documents or data generated on a second device running an Android system need to be quickly synchronized to a first device running an iOS operating system for further processing, the user only needs to tap or bring the first and second devices close together to establish a near-field communication connection. The first device can then obtain the link information of the cloud storage space provided by the second device and use this cloud storage space as a file transfer relay station. The second device uploads files to the cloud storage space, and the first device then downloads the files from the cloud storage space; or, the first device uploads files to the cloud storage space for the second device to download, achieving an efficient file sharing process and reducing the complexity of establishing file transfer links in traditional methods.
[0086] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0087] It's important to note that the iOS operating system imposes numerous restrictions on the use of NFC tags, and direct data transfer between Android and iOS devices cannot be achieved directly via NFC; data interaction can only occur indirectly through NFC tags as an intermediary. Furthermore, for iOS devices to launch lightweight applications by reading the URL from the NFC tag, the URL must be a valid link conforming to Apple's universal link specifications (Apple Developer). Specific examples can be found in the first device-side introduction, which will not be repeated here.
[0088] In some embodiments of this application, the near-field communication tag includes a first message, which includes link information for cloud storage space.
[0089] For example, Android phones can leverage their strong NFC tag writing capabilities to write URLs containing information about photos or videos to NFC tags. In an Android application, NFC permission needs to be obtained, and the NdefMessage and NdefRecord classes are used to construct an NDEF message containing the URL before writing it to the NFC tag.
[0090] In some embodiments of this application, the above file transfer method further includes:
[0091] Receive a second input from the user, which is used to select the first file;
[0092] In response to the second input, select the first file to be uploaded to the cloud storage space;
[0093] When in near-field communication contact with the first device, and when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance, the first file is uploaded to the cloud storage space.
[0094] The second input can be a second operation. For example, the second input includes, but is not limited to: user touch input to the cloud storage space, or voice commands input by the user, or specific gestures input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not limit it. The specific gestures in this embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the second input mentioned above can be: the user's click input on the file selection control corresponding to each file in the cloud storage space.
[0095] For example, such as Figure 2 The image shows a diagram on the second device side where user A selects a photo file to share from their local photo album. Figure 2 The box in the upper right corner of each photo is a file selection control. Figure 2 Images marked with a checkmark ("√") are selected files, i.e., files to be shared with the first device; files without a checkmark are unselected. After user A selects a photo to share on the second device, the user brings the near-field communication (NFC) areas of the second device and the first device close together or into contact. During this process, the second device uploads the selected photo to cloud storage and simultaneously sends a link to the cloud storage to the first device via an NFC tag. Correspondingly, the first device reads the link information via the NFC tag, identifies the associated mini-application, and displays the following: Figure 5 The shown is a lightweight application card; based on user B's input operation on the jump control displayed on the lightweight application card on the first device side, the first device displays as shown... Figure 6 or Figure 7 Cloud storage space. In the cloud storage space, user B can view and download photo files uploaded by the second device.
[0096] In some embodiments of this application, the above file transfer method further includes:
[0097] The upload progress information of the first file is displayed in the task status display area.
[0098] For example, such as Figure 3 In the task status display area 10, the upload progress information is displayed as "Sending," meaning that the shared file is being transferred to the cloud storage space. For example... Figure 4 In the task status display area 10, the upload progress information is displayed as "Sent Successfully," meaning the file transfer to the cloud storage space is complete. This allows users to easily track the file upload progress, facilitating their management of the file transfer process.
[0099] In some alternative embodiments, after the file upload to the cloud storage space is completed, the file receiving status of the first device is displayed in real time on the second device.
[0100] like Figure 14 As shown, the file receiving status displayed on the second device includes the file data that the first device is waiting to receive, such as the number of remaining photos and thumbnail information for the remaining photos. After the user clicks the "Cancel" control, the cloud service space deletes the remaining files and revokes the first device's download permission for the remaining files.
[0101] In some embodiments of this application, the above file transfer method further includes:
[0102] Display a first window, which includes first information and a first control. The first information is used to prompt the user to receive a file transmitted by the first device.
[0103] Receive third input from the user onto the first control;
[0104] In response to a third input, the cloud storage space is displayed;
[0105] Download the second file uploaded by the first device from the cloud storage space.
[0106] The third input can be a third operation. For example, the third input includes, but is not limited to: user touch input to the first control, or a voice command input by the user, or a specific gesture input by the user, or other feasible inputs. The specific input can be determined according to actual usage needs, and this embodiment of the invention does not impose limitations. The specific gesture in this embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture; the click input in this embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the second input mentioned above can be: user click input to the first control.
[0107] For example, such as Figure 11 In the event that the near-field communication area of the second device is within a preset distance of the near-field communication area of the first device, the second device sends the cloud storage space link information to the first device via the NFC tag, and the second device displays as shown below. Figure 11 The first window 40 shown displays first information and a first control 41 for prompting the user to receive a file transmitted by the first device; in response to the user's second input to the first control, the user can enter... Figure 12 or Figure 13 The cloud storage space management interface 30 is shown; the second device can select the desired files in the cloud storage space and download and save the selected files locally based on the "download" control 31. Figure 12 The diagram shown is a schematic of the cloud storage space management interface for user B on the first device side before uploading photo files; Figure 13 The diagram shows the cloud storage management interface for user B's uploaded photos on the first device side.
[0108] The file transfer method provided in this application can be executed by a file transfer device. This application uses a file transfer device executing the file transfer method as an example to illustrate the file transfer device provided in this application.
[0109] See Figure 16This application provides a file transfer device applied to a first device, the device comprising:
[0110] The first acquisition module 1601 is used to acquire the link information of the cloud storage space based on the near-field communication tag of the second device when the near-field communication area of the first device and the near-field communication area of the second device are within a preset communication distance.
[0111] The first processing module 1602 is used to display the cloud storage space according to the link information of the cloud storage space; wherein the cloud storage space is used for file transfer between the first device and the second device.
[0112] In some embodiments of this application, the first device and the second device use different operating systems.
[0113] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0114] In some embodiments of this application, the first processing module is specifically used for:
[0115] The app card is invoked based on the link information of the cloud storage space; the app card includes the jump control corresponding to the link information of the cloud storage space.
[0116] Receive the user's first input to the navigation control;
[0117] In response to the first input, the cloud storage space is displayed.
[0118] In some embodiments of this application, the above-described apparatus 1600 further includes:
[0119] The settings module is used to set the link information of the cloud storage space as the calling link of the lightweight application card.
[0120] In some embodiments of this application, the above-described device 1600 further includes:
[0121] The second processing module is used to download the first file uploaded by the second device from the cloud storage space; and / or,
[0122] The third processing module is used to upload the second file from the first device to the cloud storage space.
[0123] The file transfer device 1600 is a device corresponding to the method executed by the first device described above. All implementation means in the above method embodiments are applicable to the embodiments of the file transfer device 1600 and can achieve the same technical effect.
[0124] The file transfer device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0125] The file transfer device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0126] The file transfer device provided in this application embodiment can achieve... Figure 1 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0127] See Figure 17 This application provides a file transfer device applied to a second device. The device 1700 includes:
[0128] The first sending module 1701 is used to send cloud storage space link information to the first device via a near-field communication tag when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance; wherein, the cloud storage space is used for file transfer between the first device and the second device.
[0129] In some embodiments of this application, the second device and the first device use different operating systems.
[0130] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0131] In some embodiments of this application, the near-field communication tag includes a first message, which includes link information of the cloud storage space.
[0132] In some embodiments of this application, the above-described apparatus 1700 further includes:
[0133] The first receiving module is used to receive a second input from the user, the second input being used to select a first file;
[0134] The first response module is configured to respond to the second input and upload the first file to the cloud storage space when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance.
[0135] In some embodiments of this application, the above-described apparatus 1700 further includes:
[0136] The first display module is used to display the upload progress information of the first file in the task status display area.
[0137] In some embodiments of this application, the above-described apparatus 1700 further includes:
[0138] The second display module is used to display a first window, the first window including first information and a first control, the first information being used to prompt the user to receive the file transmitted by the first device;
[0139] The second receiving module is used to receive the user's third input to the first control;
[0140] The second response module is used to display the cloud storage space in response to the third input;
[0141] The download module is used to download the second file uploaded by the first device from the cloud storage space.
[0142] The file transfer device 1700 is a device corresponding to the method executed by the second device described above. All implementation means in the above method embodiments are applicable to the embodiments of the file transfer device 1700 and can achieve the same technical effect.
[0143] The file transfer device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the device.
[0144] The file transfer device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit the specific operating system.
[0145] The file transfer device provided in this application embodiment can achieve... Figure 15 The various processes implemented in the method implementation examples will not be described again here to avoid repetition.
[0146] Optionally, such as Figure 18 As shown, this application embodiment also provides a first device 1800, including a processor 1801 and a memory 1802. The memory 1802 stores a program or instructions that can run on the processor 1801. When the program or instructions are executed by the processor 1801, they implement the various steps of the above-described file transfer method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0147] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0148] Figure 19 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0149] The electronic device 1900, as the first device, includes, but is not limited to: a radio frequency unit 1901, a network module 1902, an audio output unit 1903, an input unit 1904, a sensor 1905, a display unit 1906, a user input unit 1907, an interface unit 1908, a memory 1909, and a processor 1910.
[0150] Those skilled in the art will understand that the electronic device 1900 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 1910 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 19 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0151] Among them, the radio frequency unit 1901 is used to obtain the link information of the cloud storage space according to the near-field communication tag of the second device when the near-field communication area of the first device and the near-field communication area of the second device are within a preset communication distance;
[0152] Display unit 1906 is used to display cloud storage space according to the link information of cloud storage space; wherein, cloud storage space is used for file transfer between the first device and the second device.
[0153] In some embodiments of this application, the first device and the second device use different operating systems.
[0154] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0155] In some embodiments of this application, the processor 1910 is further configured to invoke a lightweight application card based on the link information of the cloud storage space; the lightweight application card includes a jump control corresponding to the link information of the cloud storage space.
[0156] User input unit 1907 is used to receive the user's first input to the jump control;
[0157] Display unit 1906 is used to display cloud storage space in response to a first input.
[0158] In some embodiments of this application, the processor 1910 is also configured to set the link information of the cloud storage space as the calling link of the lightweight application card.
[0159] In some embodiments of this application, the processor 1910 is further configured to download a first file uploaded by a second device from a cloud storage space; and / or upload a second file from the first device in the cloud storage space.
[0160] In the above embodiments, when the near-field communication areas of the first device and the second device are within a preset communication distance, the first device reads the link information of the cloud storage space from the near-field communication tag provided by the second device; and enters and displays the cloud storage space based on the link information, and performs file transfer interaction with the second device through the cloud storage space. This solution can provide a file interaction service entry point in real time when the user needs it by intuitively observing the near-field communication areas of the two devices approaching or touching each other, avoiding the cumbersome operation of manually entering a URL, installing a file transfer application, or performing complex pairing, thus reducing the user's operating threshold and operating cost.
[0161] It should be understood that, in this embodiment, the input unit 1904 may include a graphics processing unit (GPU) 19041 and a microphone 19042. The GPU 19041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 1906 may include a display panel 19061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 1907 includes at least one of a touch panel 19071 and other input devices 19072. The touch panel 19071 is also called a touch screen. The touch panel 19071 may include a touch detection device and a touch controller. Other input devices 19072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0162] The memory 1909 can be used to store software programs and various data. The memory 1909 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 1909 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 1909 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0163] Processor 1910 may include one or more processing units; optionally, processor 1910 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 1910.
[0164] Optionally, such as Figure 20 As shown, this application embodiment also provides a second device 2000, including a processor 2001 and a memory 2002. The memory 2002 stores a program or instructions that can run on the processor 2001. When the program or instructions are executed by the processor 2001, they implement the various steps of the above-described file transfer method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0165] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0166] Figure 21 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of this application.
[0167] The electronic device 2100, as a second device, includes, but is not limited to, components such as: radio frequency unit 2101, network module 2102, audio output unit 2103, input unit 2104, sensor 2105, display unit 2106, user input unit 2107, interface unit 2108, memory 2109, and processor 2110.
[0168] Those skilled in the art will understand that the electronic device 2100 may also include a power supply (such as a battery) for supplying power to various components. The power supply may be logically connected to the processor 2110 through a power management system, thereby enabling functions such as managing charging, discharging, and power consumption through the power management system. Figure 21 The electronic device structure shown does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0169] The processor 2110 is used to send cloud storage space link information to the first device via a near-field communication tag when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance; wherein the cloud storage space is used for file transfer between the first device and the second device.
[0170] In some embodiments of this application, the second device and the first device use different operating systems.
[0171] In some embodiments of this application, the link information of the cloud storage space is link information that conforms to the general link specifications of the first device.
[0172] In some embodiments of this application, the near-field communication tag includes a first message, which includes link information for cloud storage space.
[0173] In some embodiments of this application, the user input unit 2107 is used to receive a second input from a user, the second input being used to select a first file;
[0174] The processor 2110 is also configured to, in response to the second input, upload the first file to the cloud storage space when the near-field communication area of the second device and the near-field communication area of the first device are within a preset communication distance.
[0175] In some embodiments of this application, the display unit 2106 is used to display the upload progress information of the first file in the task status display area.
[0176] In some embodiments of this application, the display unit 2106 is used to display a first window, the first window including first information and a first control, the first information being used to prompt the user to receive a file transmitted by a first device;
[0177] User input unit 2107 is used to receive third input from the user to the first control;
[0178] The processor 2110 is also configured to, in response to a third input, display the cloud storage space; and download the second file uploaded by the first device from the cloud storage space.
[0179] In the above embodiments, when the near-field communication areas of the first device and the second device are within a preset communication distance, the first device reads the link information of the cloud storage space from the near-field communication tag provided by the second device; and enters and displays the cloud storage space based on the link information, and performs file transfer interaction with the second device through the cloud storage space. This solution can provide a file interaction service entry point in real time when the user needs it by intuitively observing the near-field communication areas of the two devices approaching or touching each other, avoiding the cumbersome operation of manually entering a URL, installing a file transfer application, or performing complex pairing, thus reducing the user's operating threshold and operating cost.
[0180] It should be understood that, in this embodiment, the input unit 2104 may include a graphics processing unit (GPU) 21041 and a microphone 21042. The GPU 21041 processes image data of still images or videos obtained by an image capture device (such as a camera) in video capture mode or image capture mode. The display unit 2106 may include a display panel 21061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 2107 includes at least one of a touch panel 21071 and other input devices 21072. The touch panel 21071 is also called a touch screen. The touch panel 21071 may include a touch detection device and a touch controller. Other input devices 21072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0181] The memory 2109 can be used to store software programs and various data. The memory 2109 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 2109 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 2109 in the embodiments of this application includes, but is not limited to, these and any other suitable types of memory.
[0182] Processor 2110 may include one or more processing units; optionally, processor 2110 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 2110.
[0183] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described file transfer method embodiments and achieve the same technical effects. To avoid repetition, they will not be described again here.
[0184] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0185] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described file transfer method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0186] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0187] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the file transfer method embodiments described above, and achieves the same technical effects. To avoid repetition, further details are omitted here.
[0188] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0189] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0190] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A file transfer method characterized by, The method is executed by a first device, and the method comprises: In a case where a near field communication area of the first device and a near field communication area of a second device are within a preset communication distance, obtaining, according to a near field communication tag of the second device, link information of a cloud storage space; Displaying the cloud storage space according to the link information of the cloud storage space; wherein the cloud storage space is used for file transmission between the first device and the second device.
2. The method of claim 1, wherein, The first device and the second device are different operating systems.
3. The method of claim 1, wherein, The link information of the cloud storage space is link information conforming to a universal link specification of the first device.
4. The method of claim 1, wherein, The displaying of the cloud storage space according to the link information comprises: Calling a light application card according to the link information of the cloud storage space; the light application card comprises a jump control corresponding to the link information of the cloud storage space; Receiving a first input of a user to the jump control; In response to the first input, displaying the cloud storage space.
5. The method of claim 4, wherein, The method further comprises: Setting the link information of the cloud storage space as a calling link of the light application card.
6. The method of claim 1, wherein, The method further comprises: Downloading a first file uploaded by the second device from the cloud storage space; and / or Uploading a second file in the first device to the cloud storage space.
7. A file transfer method characterized by, The method is executed by a second device, and the method comprises: In a case where a near field communication area of the second device and a near field communication area of a first device are within a preset communication distance, sending, by a near field communication tag, link information of a cloud storage space to the first device; wherein the cloud storage space is used for file transmission between the first device and the second device.
8. The method of claim 7, wherein, The second device and the first device are different operating systems.
9. The method of claim 8, wherein, The link information of the cloud storage space is link information conforming to a universal link specification of the first device.
10. The method of claim 7, wherein, The near field communication tag comprises a first message, and the first message comprises the link information of the cloud storage space.
11. The method of claim 7, wherein, The method further comprises: Receiving a second input of a user, the second input being used for selecting a first file; In response to the second input, in a case where a near field communication area of the second device and a near field communication area of a first device are within a preset communication distance, uploading the first file to the cloud storage space.
12. The method of claim 11, wherein, The method further comprises: Displaying, in a task state display area, upload progress information of the first file.
13. The method of claim 7, wherein, The method further comprises: Displaying a first window, the first window comprising first information and a first control, the first information being used for prompting a user to receive a file transmitted by the first device; Receiving a third input of a user to the first control; In response to the third input, displaying the cloud storage space; Downloading a second file uploaded by the first device from the cloud storage space.
14. A file transfer apparatus characterized by comprising: The apparatus is applied to a first device, and the apparatus comprises: A first obtaining module, configured to, in a case where a near field communication area of the first device and a near field communication area of a second device are within a preset communication distance, obtain, according to a near field communication tag of the second device, link information of a cloud storage space; The first processing module is configured to display a cloud storage space according to link information of the cloud storage space, wherein the cloud storage space is used for file transmission between the first device and the second device.
15. The apparatus of claim 14, wherein, The first processing module is specifically configured to: invoke a light application card according to the link information of the cloud storage space, wherein the light application card comprises a jump control corresponding to the link information of the cloud storage space; receive a first input of the jump control by a user; display the cloud storage space in response to the first input.
16. A file transfer apparatus characterized by comprising: The device is applied to a second device, and the device comprises: a first sending module configured to send link information of a cloud storage space to a first device through a near field communication tag when a near field communication area of the second device and a near field communication area of the first device are within a preset communication distance, wherein the cloud storage space is used for file transmission between the first device and the second device.
17. The apparatus of claim 16, wherein, The device further comprises: a first receiving module configured to receive a second input of a user, wherein the second input is used for selecting a first file; a first response module configured to upload the first file to the cloud storage space in response to the second input when the near field communication area of the second device and the near field communication area of the first device are within the preset communication distance.
18. The apparatus of claim 16, wherein, The device further comprises: a second display module configured to display a first window, wherein the first window comprises first information and a first control, and the first information is used to prompt a user to receive a file transmitted by the first device; a second receiving module configured to receive a third input of the first control by a user; a second response module configured to display the cloud storage space in response to the third input; a downloading module configured to download a second file uploaded by the first device from the cloud storage space.
19. An electronic device, comprising: A processor and a memory are included, the memory stores programs or instructions that can be run on the processor, and the programs or instructions are executed by the processor to implement the steps of the file transmission method according to any one of claims 1 to 3, or to implement the steps of the file transmission method according to any one of claims 4 to 7.
20. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the file transmission method according to any one of claims 1 to 6, or to implement the steps of the file transmission method according to any one of claims 7 to 13.