File transmission method, electronic device and computer readable storage medium

By responding to the user's application selection on electronic devices, it automatically displays a list of files in the target application's storage path, solving the problem of finding files when transferring between different devices and improving the user experience.

CN116418799BActive Publication Date: 2026-07-07HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-12-31
Publication Date
2026-07-07

AI Technical Summary

Technical Problem

When users transfer files between different electronic devices, they need to search through each folder in the file system one by one, which consumes a lot of time and effort and results in a poor user experience.

Method used

By responding to the user's application selection, the target application is identified, and a list of files in the application's storage path is automatically retrieved and displayed. Users can select the file to be transferred from the list, simplifying the search process.

Benefits of technology

It reduces the difficulty for users to find files to be transferred, improves the simplicity of operation and user experience, and eliminates the need for users to remember storage paths or search through folders one by one.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116418799B_ABST
    Figure CN116418799B_ABST
Patent Text Reader

Abstract

The application is suitable for the technical field of data management, and provides a file transmission method, an electronic device and a computer readable storage medium. In the file transmission method provided by the application, the first device can determine a target application program in response to an application selection operation of a user. Then, the first device can automatically acquire a first storage path corresponding to the target application program, and show a file list corresponding to the first storage path to the user. Through the above method, the user can directly find the to-be-transmitted file in the file list, without the need for the user to check each folder one by one in the file system of the first device, greatly reducing the difficulty of the user to find the to-be-transmitted file, and the operation is simple and convenient to use, which can effectively improve the user experience, and has strong ease of use and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data management, and more particularly to a file transfer method, an electronic device, and a computer-readable storage medium. Background Technology

[0002] When a user wants to transfer files between different electronic devices, the user needs to locate and identify the file to be transferred in the file system of the sending device.

[0003] At this point, if the user knows the storage path of the file to be transferred, the user can directly access the folder corresponding to that storage path and find the file to be transferred in that folder.

[0004] However, most users may not know the storage path of the file to be transferred. Therefore, users might need to search through each folder in the file system to find the file, which undoubtedly consumes a lot of their time and effort, resulting in a poor user experience. Summary of the Invention

[0005] This application provides a file transfer method, an electronic device, and a computer-readable storage medium, which can solve the problems of existing file transfer schemes being difficult to operate and requiring a lot of time and effort from users.

[0006] In a first aspect, embodiments of this application provide a file transfer method, applied to a first device, comprising:

[0007] In response to the user's application selection, determine the target application;

[0008] Obtain the first storage path corresponding to the target application;

[0009] Display the list of files corresponding to the first storage path;

[0010] In response to a user's file selection action, determine the file to be transferred from the file list;

[0011] The file to be transmitted is sent to the second device.

[0012] It should be noted that the first device mentioned above stores files to be transferred, which can be understood as files that the user wants to transfer to the second device.

[0013] The files to be transferred can include any one or more of the following file types: documents, images, videos, audio files, compressed files, etc.

[0014] When a user wants to locate the aforementioned file to be transferred, the user can perform an application selection operation on the first device.

[0015] The above application selection operation can be used to select target applications, and the presentation of the above application selection operation can be set according to actual needs.

[0016] For example, the above application selection operation may include any one or more combinations of operation methods such as clicking, long-pressing, and swiping on the display screen of the first device.

[0017] After detecting an application selection operation, the first device can respond to the application selection operation and determine the target application.

[0018] The target application mentioned above can be understood as an application that obtains the file to be transferred; or, the target application mentioned above can also be understood as an application that manages the file to be transferred.

[0019] Then, the first device can obtain the first storage path corresponding to the target application and display a list of files corresponding to the first storage path to the user. The first storage path is the path where the target application stores files.

[0020] After viewing the file list, if the user can find the file to be transferred in the file list, the user can perform a file selection operation on the file to be transferred.

[0021] At this point, the first device can respond to the user's file selection operation, determine the file to be transferred, and send the file to be transferred to the second device.

[0022] With the above file transfer method, users only need to perform simple interface interaction with the first device, and the first device can directly display the file list corresponding to the first storage path to the user. Users do not need to actively remember the first storage path, nor do they need to search through each folder in the file system of the first device. This greatly reduces the difficulty for users to find the files to be transferred. The operation is simple and convenient, which can effectively improve the user experience.

[0023] In one possible implementation of the first aspect, displaying the file list corresponding to the first storage path includes:

[0024] Scan the first storage path to obtain file information for each file under the first storage path;

[0025] The file list is constructed and displayed based on the file information.

[0026] It should be noted that after obtaining the first storage path, the first device can scan the first storage path to obtain the file information of each file stored under the first storage path.

[0027] The above file information may include any one or more of the following: file name, file type, file size, modification date, etc.

[0028] Then, the first device can compile the file information of each file into an information list and display it.

[0029] In one possible implementation of the first aspect, the file list is a first storage folder corresponding to the first storage path;

[0030] The process of displaying the file list corresponding to the first storage path includes:

[0031] Open the first storage folder corresponding to the first storage path.

[0032] It should be noted that after obtaining the first storage path, the first device can also directly open the first storage folder corresponding to the first storage path and show the user the files stored in the first storage folder.

[0033] In one possible implementation of the first aspect, after displaying the file list corresponding to the first storage path information, the method further includes:

[0034] The file information in the file list is sorted according to a preset sorting rule.

[0035] It should be noted that when the first device displays the file list, in order to facilitate the user in finding the file to be transferred, the first device can sort the file information in the file list according to a preset sorting rule.

[0036] The content of the above preset sorting rules can be set according to actual needs.

[0037] For example, in one example, the first device can sort the file information of each file in the file list in descending order of time based on the modification date of each file;

[0038] In another example, the first device can also arrange the file information of files with the same file type together according to the file type corresponding to each file;

[0039] In another example, the first device can also sort the file information of each file in the file list according to the file name, in descending or ascending alphabetical order.

[0040] In other examples, the first device may also sort the file information in the above file list using other sorting rules. This application does not limit the specific content of the above-mentioned preset sorting rules.

[0041] In one possible implementation of the first aspect, obtaining the first storage path corresponding to the target application includes:

[0042] Query the first storage path corresponding to the target application in the pre-established path information table.

[0043] It should be noted that the first device can pre-establish a path information table, which records the file storage paths corresponding to each application.

[0044] After the first device identifies the target application, it can query the file storage path corresponding to the target application in the aforementioned path information table and determine the file storage path corresponding to the target application as the first storage path.

[0045] In one possible implementation of the first aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0046] It should be noted that a communication connection is established between the first device and the second device, which can be used to transmit signaling and files.

[0047] The type of communication connection can be configured according to actual needs. For example, the communication connection can include any one or more of the following: Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, Cellular network connection, etc.

[0048] The embodiments of this application do not limit the specific type of communication connection between the first device and the second device.

[0049] Secondly, embodiments of this application provide a file transfer method applied to a first device, comprising:

[0050] In response to the user's application selection operation, the target application is determined, wherein the target application is an application that manages the file to be transferred;

[0051] Obtain the first storage path corresponding to the target application;

[0052] Send the original path information to the second device. The original path information includes the first storage path. The original path information is used to instruct the second device to display the first mapped folder corresponding to the first storage path.

[0053] It should be noted that after obtaining the first storage path, the first device can also directly send the original path information to the second device, which may include the aforementioned first storage path.

[0054] When the second device receives the original path information, the second device can open the first mapped folder corresponding to the first storage path.

[0055] The aforementioned first mapped folder can be understood as the folder mapped from the aforementioned first storage folder to the second device.

[0056] After the second device opens the first mapped folder, it can display the files under the first storage path within that folder. The user can then search for the file to be transferred within the first mapped folder.

[0057] When a user finds the file to be transferred, the user can save the file.

[0058] At this time, the second device can respond to the above file saving operation, determine the file to be transferred, and save the file to be transferred in the memory of this device.

[0059] Using the file transfer method described above, users can directly view the first mapped folder on the second device after a simple interface interaction with the first device, and then search for the file to be transferred in the first mapped folder. This eliminates the need for users to search for the file to be transferred level by level in the file system mapped on the first device, greatly reducing the difficulty of finding the file to be transferred. The operation is simple and convenient, which can effectively improve the user experience.

[0060] In one possible implementation of the second aspect, obtaining the first storage path corresponding to the target application includes:

[0061] Query the first storage path corresponding to the target application in the pre-established path information table.

[0062] In one possible implementation of the second aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0063] Thirdly, embodiments of this application provide a file transfer method applied to a first device, comprising:

[0064] In response to the user's application selection, determine the target application;

[0065] Obtain the first storage path corresponding to the target application;

[0066] Display the list of files corresponding to the first storage path;

[0067] In response to a user's file selection action, determine the file to be transferred from the file list;

[0068] The file to be transferred is copied to the second storage folder, and the transfer path information is sent to the second device. The transfer path information includes the second storage path of the second storage folder and is used to instruct the second device to display the second mapped folder corresponding to the second storage path.

[0069] It should be noted that after the first device identifies the file to be transferred, it can copy the file to the second storage folder.

[0070] The second storage folder may be created by the first device before the file to be transferred is determined, or it may be created by the first device after the file to be transferred is determined.

[0071] Then, the first device can send transmission path information to the second device, which may include the second storage path corresponding to the aforementioned second storage folder.

[0072] After receiving the second storage path, the second device can access the file system mapped by the first device and open the second mapped folder corresponding to the second storage path.

[0073] The aforementioned second mapped folder can be understood as the second storage folder of the first device being mapped to a folder on the second device.

[0074] Afterwards, the user can find the file to be transferred in the second mapped folder opened on the second device.

[0075] When a user finds the file to be transferred, the user can save the file.

[0076] At this time, the second device can respond to the above file saving operation and store the file to be transferred into the memory of this device.

[0077] In the above file transfer method, after identifying the file to be transferred, the first device can copy the file to be transferred to a second storage folder and send the second storage path corresponding to the second storage folder to the second device. Subsequently, the files to be transferred that the user sees on the second device, as well as the files to be transferred from the first device to the second device, are all files copied from the second storage folder.

[0078] In other words, even if unexpected situations such as misoperation or system failure occur during file transfer, only the file to be transferred copied to the second storage path will be damaged, and the original file to be transferred to the first storage path will not be affected, thus effectively improving the security of the file to be transferred.

[0079] In one possible implementation of the third aspect, displaying the file list corresponding to the first storage path includes:

[0080] Scan the first storage path to obtain file information for each file under the first storage path;

[0081] The file list is constructed and displayed based on the file information.

[0082] In one possible implementation of the third aspect, the file list is the first storage folder corresponding to the first storage path;

[0083] The process of displaying the file list corresponding to the first storage path includes:

[0084] Open the first storage folder corresponding to the first storage path.

[0085] In one possible implementation of the third aspect, after displaying the file list corresponding to the first storage path information, the method further includes:

[0086] The file information in the file list is sorted according to a preset sorting rule.

[0087] In one possible implementation of the third aspect, the method further includes:

[0088] When the conditions for terminating the transfer are met, delete the second storage folder.

[0089] It should be noted that the content of the above-mentioned termination conditions can be set according to actual needs. For example, in one example, when the communication connection between the first device and the second device is broken, the first device can delete the second storage folder; in another example, when the first device exits file transfer mode, the first device can delete the second storage folder; in other examples, the content of the above-mentioned termination conditions can also be set to other conditions. The embodiments of this application do not limit the specific content of the above-mentioned termination conditions.

[0090] When the termination condition is met, it indicates that the first and second devices have stopped transferring files. At this point, the files in the second storage folder can be considered expired files.

[0091] Therefore, when the conditions for terminating transmission are met, the first device can promptly clean up invalid files, release the storage space occupied by invalid files, avoid accumulating a large number of invalid files, and ensure the smooth operation of the first device.

[0092] In one possible implementation of the third aspect, obtaining the first storage path corresponding to the target application includes:

[0093] Query the first storage path corresponding to the target application in the pre-established path information table.

[0094] In one possible implementation of the third aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0095] Fourthly, embodiments of this application provide a file transfer device, applied to a first device, comprising:

[0096] The first interaction module is used to determine the target application in response to the user's application selection operation;

[0097] The first query module is used to obtain the first storage path corresponding to the target application;

[0098] The first display module is used to display a list of files corresponding to the first storage path;

[0099] The first file module is used to determine the file to be transferred from the file list in response to the user's file selection operation;

[0100] The first sending module is used to send the file to be transmitted to the second device.

[0101] In one possible implementation of the fourth aspect, the first display module includes:

[0102] The first scanning submodule is used to scan the first storage path and obtain file information of each file under the first storage path;

[0103] The first list submodule is used to construct and display the file list based on the file information.

[0104] In one possible implementation of the fourth aspect, the file list is the first storage folder corresponding to the first storage path;

[0105] The first display module is specifically used to open the first storage folder corresponding to the first storage path.

[0106] In one possible implementation of the fourth aspect, the device further includes:

[0107] The first sorting module is used to sort the file information in the file list according to a preset sorting rule.

[0108] In one possible implementation of the fourth aspect, the first query module is specifically used to query the first storage path corresponding to the target application in a pre-established path information table.

[0109] In one possible implementation of the fourth aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0110] Fifthly, embodiments of this application provide a file transfer device applied to a first device, comprising:

[0111] The second interaction module is used to respond to the user's application selection operation and determine the target application, which is an application that manages the file to be transferred;

[0112] The second query module is used to obtain the first storage path corresponding to the target application;

[0113] The second sending module is used to send original path information to the second device. The original path information includes the first storage path and is used to instruct the second device to display the first mapped folder corresponding to the first storage path.

[0114] In one possible implementation of the fifth aspect, the second query module is specifically used to query the first storage path corresponding to the target application in a pre-established path information table.

[0115] In one possible implementation of the fifth aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0116] Sixthly, embodiments of this application provide a file transfer device, applied to a first device, comprising:

[0117] The third interaction module is used to respond to the user's application selection operation and determine the target application;

[0118] The third query module is used to obtain the first storage path corresponding to the target application;

[0119] The third display module is used to display the file list corresponding to the first storage path;

[0120] The third file module is used to determine the file to be transferred from the file list in response to the user's file selection operation;

[0121] The third sending module is used to copy the file to be transmitted to the second storage folder and send transmission path information to the second device. The transmission path information includes the second storage path of the second storage folder and is used to instruct the second device to display the second mapped folder corresponding to the second storage path.

[0122] In one possible implementation of the sixth aspect, the third display module includes:

[0123] The third scanning submodule is used to scan the first storage path and obtain the file information of each file under the first storage path;

[0124] The third list submodule is used to construct and display the file list based on the file information.

[0125] In one possible implementation of the sixth aspect, the file list is the first storage folder corresponding to the first storage path;

[0126] The third display module is specifically used to open the first storage folder corresponding to the first storage path.

[0127] In one possible implementation of the sixth aspect, the apparatus further includes:

[0128] The third sorting module is used to sort the file information in the file list according to a preset sorting rule.

[0129] In one possible implementation of the sixth aspect, the apparatus further includes:

[0130] The file deletion module is used to delete the second storage folder when the conditions for terminating the transfer are met.

[0131] In one possible implementation of the sixth aspect, the third query module is specifically used to query the first storage path corresponding to the target application in a pre-established path information table.

[0132] In one possible implementation of the sixth aspect, the communication connection between the first device and the second device includes one or more of Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular Network connection.

[0133] In a seventh aspect, embodiments of this application provide an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the electronic device is configured to implement the method as described in any of the first to third aspects when executing the computer program.

[0134] Eighthly, embodiments of this application provide a computer-readable storage medium configured to store a computer program, characterized in that the computer program, when executed by a processor, implements the method described in any one of the first to third aspects.

[0135] Ninthly, embodiments of this application provide a computer program product configured to run on an electronic device, causing the electronic device to perform the method described in any of the first to third aspects.

[0136] In a tenth aspect, embodiments of this application provide a chip system including a memory and a processor, the processor being configured to execute a computer program stored in the memory to implement the method as described in any of the first to third aspects.

[0137] The beneficial effects of the embodiments in this application compared with the prior art are:

[0138] In the file transfer method provided in this application, the first device can determine the target application in response to the user's application selection operation. Then, the first device can automatically obtain the first storage path corresponding to the target application and display the file list corresponding to the first storage path to the user.

[0139] In other words, through the above file transfer method, users can directly view the file list corresponding to the first storage path after a simple interface interaction with the first device. Users do not need to actively remember the first storage path, nor do they need to search through each folder in the file system of the first device. This greatly reduces the difficulty for users to find the files to be transferred. The operation is simple and convenient, which can effectively improve the user experience and has strong usability and practicality. Attached Figure Description

[0140] Figure 1 A system architecture diagram of a file transfer system provided in this application embodiment;

[0141] Figure 2 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application;

[0142] Figure 3 A flowchart illustrating a file transfer method provided in an embodiment of this application;

[0143] Figure 4 A system architecture diagram of another file transfer system provided in this application embodiment;

[0144] Figure 5 A scenario diagram provided for an embodiment of this application;

[0145] Figure 6 This is another scenario illustration provided for an embodiment of this application;

[0146] Figure 7 This is another scenario illustration provided for an embodiment of this application;

[0147] Figure 8 A flowchart illustrating another file transfer method provided in an embodiment of this application;

[0148] Figure 9 A system architecture diagram of another file transfer system provided in this application embodiment;

[0149] Figure 10 A signaling interaction diagram of a file transfer method provided in an embodiment of this application;

[0150] Figure 11 This is another scenario illustration provided for an embodiment of this application;

[0151] Figure 12 This is another scenario illustration provided for an embodiment of this application;

[0152] Figure 13 This is another scenario illustration provided for an embodiment of this application;

[0153] Figure 14 A flowchart illustrating another file transfer method provided in an embodiment of this application;

[0154] Figure 15 A system architecture diagram of another file transfer system provided in this application embodiment;

[0155] Figure 16 Signaling interaction diagram for another file transfer method provided in the embodiments of this application;

[0156] Figure 17 This is another scenario illustration provided for an embodiment of this application;

[0157] Figure 18 This is another scenario illustration provided for an embodiment of this application;

[0158] Figure 19 This is a schematic diagram of another scenario provided for an embodiment of this application. Detailed Implementation

[0159] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0160] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0161] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0162] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0163] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0164] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0165] In people's daily work and life, it is sometimes necessary to transfer files between two or more electronic devices.

[0166] For example, in some scenarios, after downloading a document on their phone, a user might want to transfer the document to their laptop for viewing; in other scenarios, after taking some photos with their phone, a user might want to transfer those photos to their desktop computer for processing.

[0167] Therefore, in order to meet people's needs for transferring files between different electronic devices, researchers have proposed many file transfer solutions.

[0168] For example, in some file transfer schemes, after a connection is established between the sender and receiver, the user can locate the file to be transferred in the sender's file system and control the sender to send the file to the receiver.

[0169] In other file transfer schemes, after a connection is established between the sender and receiver, the sender can map its own file system to the receiver.

[0170] Users can view the file system mapped by the sender on the receiving end, find the file to be transferred in the file system mapped by the sender, and control the receiving end to request the file to be transferred from the sender.

[0171] In these file transfer schemes, users need to locate the file to be transferred in the sender's file system.

[0172] At this point, if the user is familiar with the storage path of the file to be transferred, the user can easily find the file to be transferred in the file system of the sending end.

[0173] However, most users may not know the storage path of the file to be transferred.

[0174] Therefore, users may need to search through each folder in the file system to find the file to be transferred, which will undoubtedly consume a lot of users' time and energy and result in a poor user experience.

[0175] In view of this, embodiments of this application provide a file transfer method. A user can perform an application selection operation on a first device. In response to this operation, the first device can determine a target application and display a file list corresponding to the target application to the user. This file list displays file information for each file under a first storage path corresponding to the target application. Through this file list, users can easily find the file to be transferred, reducing the difficulty of finding the file and demonstrating strong usability and practicality.

[0176] First, please refer to Figure 1 . Figure 1An exemplary embodiment of a file transfer system to which this application applies is shown. This file transfer system may include one or more first devices 101 ( Figure 1 Only one first device 101 and one or more second devices 102 are shown in the figure. Figure 1 Only one second device 102 is shown in the image.

[0177] The first device 101 can be understood as an electronic device that stores the file to be transmitted, and the second device 102 can be understood as an electronic device that receives the file to be transmitted.

[0178] A communication connection is established between the first device 101 and the second device 102. This communication connection may include one or more of the following: Wi-Fi connection, Bluetooth connection, Universal Serial Bus (USB) connection, Registered Jack 45 (RJ45) connection, Power Line Communication (PLC) connection, etc.

[0179] Furthermore, the first device 101 and the second device 102 described above can be the same type of electronic device, or they can be different types of electronic devices.

[0180] The first device 101 and the second device 102 mentioned above may include one or more electronic devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), personal digital assistants (PDAs), netbooks, etc. The embodiments of this application do not impose any restrictions on the specific types of the first device 101 and the second device 102.

[0181] refer to Figure 2 , Figure 2 An exemplary schematic diagram of the structure of an electronic device 200 provided in an embodiment of this application is shown. The electronic device 200 may be the first device 101 described above, and / or the electronic device 200 may also be the second device 102 described above.

[0182] Electronic device 200 may include processor 210, external memory interface 220, internal memory 221, universal serial bus (USB) interface 230, charging management module 240, power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, sensor module 280, button 290, motor 291, indicator 292, camera 293, display screen 294, and subscriber identification module (SIM) card interface 295, etc. The sensor module 280 may include a pressure sensor 280A, a gyroscope sensor 280B, a barometric pressure sensor 280C, a magnetic sensor 280D, an accelerometer sensor 280E, a distance sensor 280F, a proximity sensor 280G, a fingerprint sensor 280H, a temperature sensor 280J, a touch sensor 280K, an ambient light sensor 280L, a bone conduction sensor 280M, etc.

[0183] Processor 210 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.

[0184] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0185] The processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. This memory can store instructions or data that the processor 210 has just used or that are used repeatedly. If the processor 210 needs to use the instruction or data again, it can directly retrieve it from the memory. This avoids repeated accesses, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0186] In some embodiments, the processor 210 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0187] USB port 230 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, or USB Type-C port. USB port 230 can be used to connect a charger to charge electronic device 200, and can also be used for data transfer between electronic device 200 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.

[0188] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.

[0189] The charging management module 240 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 receives charging input from the wired charger via a USB interface 230. In some wireless charging embodiments, the charging management module 240 receives wireless charging input via the wireless charging coil of the electronic device 200. While charging the battery 242, the charging management module 240 can also supply power to the electronic device via the power management module 241.

[0190] The power management module 241 connects the battery 242, the charging management module 240, and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, providing power to the processor 210, internal memory 221, display screen 294, camera 293, and wireless communication module 260, etc. The power management module 241 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 241 may also be located within the processor 210. In other embodiments, the power management module 241 and the charging management module 240 may be located in the same device.

[0191] The wireless communication function of electronic device 200 can be implemented through antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, modem processor, and baseband processor.

[0192] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 200 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0193] The mobile communication module 250 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 200. The mobile communication module 250 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 250 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 250 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 250 may be housed in the processor 210. In some embodiments, at least some functional modules of the mobile communication module 250 and at least some modules of the processor 210 may be housed in the same device.

[0194] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 270A, receiver 270B, etc.) or displays images or videos through the display screen 294. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 210 and may be housed in the same device as the mobile communication module 250 or other functional modules.

[0195] The wireless communication module 260 can provide solutions for wireless communication applications on the electronic device 200, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 210. The wireless communication module 260 can also receive signals to be transmitted from processor 210, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0196] In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 250, and antenna 2 is coupled to wireless communication module 260, enabling electronic device 200 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0197] Electronic device 200 implements display functions through a GPU, a display screen 294, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 294 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 210 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0198] Display screen 294 is used to display images, videos, etc. Display screen 294 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 200 may include one or N displays 294, where N is a positive integer greater than 1.

[0199] Electronic device 200 can perform shooting functions through ISP, camera 293, video codec, GPU, display screen 294 and application processor.

[0200] The ISP (Image Signal Processor) is used to process data fed back from the camera 293. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 293.

[0201] Camera 293 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. The photosensitive element can be a charge-coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 200 may include one or N cameras 293, where N is a positive integer greater than 1.

[0202] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 200 selects a frequency, the DSP is used to perform Fourier transforms on the frequency energy.

[0203] Video codecs are used to compress or decompress digital video. Electronic device 200 may support one or more video codecs. Thus, electronic device 200 can play or record video in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.

[0204] An NPU (Neural Processing Unit) is a neural network (NN) computing processor that, by borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, rapidly processes input information and can continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0205] The external storage interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200. The external memory card communicates with the processor 210 through the external storage interface 220 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0206] Internal memory 221 can be used to store computer executable program code, which includes instructions. Internal memory 221 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 200 (such as audio data, phonebook, etc.). Furthermore, internal memory 221 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 210 executes various functional applications and data processing of electronic device 200 by running instructions stored in internal memory 221 and / or instructions stored in memory disposed in the processor.

[0207] Electronic device 200 can implement audio functions such as music playback and recording through audio module 270, speaker 270A, receiver 270B, microphone 270C, headphone jack 270D, and application processor.

[0208] The audio module 270 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 270 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 270 may be located in the processor 210, or some functional modules of the audio module 270 may be located in the processor 210.

[0209] The speaker 270A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 200 can listen to music or make hands-free calls through the speaker 270A.

[0210] The receiver 270B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 200 answers a telephone call or voice message, the receiver 270B can be brought close to the ear to listen to the voice.

[0211] Microphone 270C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 270C, inputting the sound signal into microphone 270C. Electronic device 200 may have at least one microphone 270C. In some embodiments, electronic device 200 may have two microphones 270C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 200 may also have three, four, or more microphones 270C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.

[0212] The headphone jack 270D is used to connect wired headphones. The headphone jack 270D can be a USB 230 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.

[0213] Buttons 290 include a power button, volume buttons, etc. Buttons 290 can be mechanical buttons or touch-sensitive buttons. Electronic device 200 can receive button input and generate key signal inputs related to user settings and function control of electronic device 200.

[0214] Motor 291 can generate vibration alerts. Motor 291 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can be corresponding to touch operations applied to different applications (such as taking photos, playing audio, etc.). Motor 291 can also correspond to different vibration feedback effects for touch operations applied to different areas of the display screen 294. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

[0215] Indicator 292 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0216] The SIM card interface 295 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 295 to make contact with and separate from the electronic device 200. The electronic device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 295 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 295 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 295 is also compatible with different types of SIM cards. The SIM card interface 295 is also compatible with external memory cards. The electronic device 200 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the electronic device 200 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 200 and cannot be separated from the electronic device 200.

[0217] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 200. In other embodiments of this application, the electronic device 200 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0218] The following will be based on Figure 1 The file transfer system shown Figure 2 The electronic devices shown and specific application scenarios illustrate the file transfer method provided in this application.

[0219] In real-world applications, when a user wants to transfer a file from a first device, the user usually knows which application the first device used to acquire the file. However, because different applications may store files in different storage paths, it is difficult for most users to know the specific storage path of the file to be transferred.

[0220] For example, in one scenario, suppose a user downloads a document in their browser on a first device and then wants to transfer that document to a second device.

[0221] At this point, the user can know that the first device downloaded the document through a browser, but it is difficult for the user to know which storage path the browser of the first device stored the document in.

[0222] In another example, after a user takes several photos using the camera app on a first device, they want to transfer those photos to a second device.

[0223] At this point, the user knows that the first device took the above photos through the camera application, but the user has difficulty knowing which storage path the first device's camera application stores the above photos.

[0224] Therefore, in the file transfer method provided in this application embodiment, the first device can interact with the user through a simple interface (UI) to determine the target application where the file to be transferred is located.

[0225] Then, the first device can obtain the first storage path corresponding to the target application and display the files under the first storage path to the user so that the user can find the file to be transferred and transfer the file on the first device.

[0226] Alternatively, the first device can map files under the first storage path to the second device, so that the user can find the file to be transferred and transfer the file on the second device.

[0227] Specifically, please refer to Figure 3 , Figure 3 A schematic flowchart of a file transfer method provided in an embodiment of this application is shown. Figure 3 As shown, the file transfer method includes:

[0228] Step S301: In response to the user's application selection operation, determine the target application.

[0229] In this embodiment of the application, the first device stores a file to be transferred, which can be understood as a file that the user wishes to transfer to the second device.

[0230] The files to be transferred can include any one or more of the following file types: documents, images, videos, audio files, compressed files, etc.

[0231] When a user wants to locate the aforementioned file to be transferred, the user can perform an application selection operation on the first device.

[0232] The above application selection operation can be used to select target applications, and the presentation of the above application selection operation can be set according to actual needs.

[0233] For example, in one example, the application selection operation described above can be represented by a user clicking on the icon of the target application; in another example, it can be represented by a user long-pressing the icon of the target application; in yet another example, it can be represented by a user clicking on the floating button after opening the program interface of the target application; in other examples, the application selection operation can also be represented by other forms of operation. This application embodiment does not limit the specific form of the application selection operation.

[0234] After detecting an application selection operation, the first device can respond to the application selection operation and determine the target application.

[0235] The target application mentioned above can be understood as an application that obtains the file to be transferred; or, the target application mentioned above can also be understood as an application that manages the file to be transferred.

[0236] For example, in one instance, after a document is downloaded to the browser on the first device, if the user wants to transfer the document to the second device, the user can perform an application selection operation on the first device, selecting the aforementioned browser as the target application.

[0237] In another example, after the camera application on the first device has taken several photos, if the user wants to transfer these photos to the second device, the user can perform an application selection operation on the first device, selecting the aforementioned camera application as the target application.

[0238] Step S302: Obtain the first storage path corresponding to the target application.

[0239] After identifying the target application, the first device can obtain the first storage path corresponding to the target application, which is the path where the target application stores its files.

[0240] In some embodiments, the first device may pre-establish a path information table, which records the file storage paths corresponding to each application.

[0241] After the first device identifies the target application, it can query the file storage path corresponding to the target application in the aforementioned path information table and determine the file storage path corresponding to the target application as the first storage path.

[0242] In other embodiments, after determining the target application, the first device may also query the target application for the file storage path of the target application and determine the file storage path corresponding to the target application as the first storage path.

[0243] In other embodiments, the first device may also obtain the first storage path through other means. This application does not limit the specific method by which the first device obtains the first storage path.

[0244] Step S303: Display the list of files corresponding to the first storage path mentioned above.

[0245] After obtaining the first storage path, the first device can display a list of files corresponding to the first storage path to the user.

[0246] The aforementioned file list may be the first storage folder corresponding to the first storage path, or it may be an information list composed of file information of each file stored under the first storage path.

[0247] Specifically, in some embodiments, after obtaining the first storage path, the first device can directly open the first storage folder corresponding to the first storage path and display the files stored in the folder to the user.

[0248] At this point, users can browse the file information of each file in the first storage folder and find the file to be transferred in the first storage folder.

[0249] In other embodiments, after the first device obtains the first storage path, the first device may also scan the first storage path to obtain file information of each file stored under the first storage path.

[0250] The above file information may include any one or more of the following: file name, file type, file size, modification date, etc.

[0251] Then, the first device can compile the file information of each file into an information list and display it.

[0252] At this point, the user can view the file information displayed in the above information list and find the file information corresponding to the file to be transferred from the above information list.

[0253] In addition, when displaying the file list, the first device can sort the file information in the file list according to a preset sorting rule to facilitate the user's search for the file to be transferred.

[0254] The content of the above preset sorting rules can be set according to actual needs.

[0255] For example, in one example, the first device can sort the files / file information in the file list in descending order of time based on the modification date corresponding to each file;

[0256] In another example, the first device can also group files / file information of the same file type together according to the file type corresponding to each file;

[0257] In another example, the first device can also sort the files / file information in the file list according to their filenames, either in descending or ascending alphabetical order.

[0258] In other examples, the first device may also sort the files / file information in the above file list using other sorting rules. This application does not limit the specific content of the above-mentioned preset sorting rules.

[0259] Step S304: In response to the user's file selection operation, determine the file to be transferred.

[0260] After viewing the file list, if the user can find the file to be transferred or its corresponding file information in the file list, the user can perform a file selection operation on the file to be transferred or its corresponding file information.

[0261] At this point, the first device can respond to the user's file selection operation and determine the file to be transferred.

[0262] The files to be transferred can include one or more files. That is, the user can select one file to be transferred through the file selection operation; or, the user can select multiple files to be transferred through the file selection operation.

[0263] Step S305: Send the aforementioned file to be transmitted to the second device.

[0264] After identifying the file to be transmitted, the first device can send the file to the second device through the communication connection between the first and second devices.

[0265] The second device can receive the file to be transmitted sent by the first device and save the file to be transmitted in the memory of the second device.

[0266] To facilitate understanding, the above embodiments will be described in detail below with reference to specific application scenarios.

[0267] Example 1:

[0268] like Figure 4 As shown, the file transfer system in this example may include a mobile phone 41 and a laptop computer 42, which are connected via Bluetooth.

[0269] like Figure 5 As shown, a user takes a photo using the camera application on mobile phone 41 and wants to transfer the photo to laptop 42 for processing. In this case, mobile phone 41 can be understood as the first device mentioned above, and laptop 42 can be understood as the second device mentioned above.

[0270] When transferring photos, users can pull down the menu bar 411 of the phone 41 and click the "Transfer Mode" control 412.

[0271] like Figure 6 As shown, the mobile phone 41 can respond to the user's operation, enter the transmission mode, and display a floating button 413 on the mobile phone's screen.

[0272] Then, the user can operate the phone 41 to return to the camera application's program interface 414 and click the floating button 413.

[0273] When the mobile phone 41 detects that the user clicks on the floating button 413, and the mobile phone 41 detects that the application currently in the foreground is the camera application, the mobile phone 41 can query the first storage path corresponding to the camera application from the pre-set path information table.

[0274] After finding the first storage path, the mobile phone 41 can scan the first storage path and display a file list 415, which displays the file information of each file under the first storage path.

[0275] In some embodiments, when displaying the file list 415, the mobile phone 41 can also sort the file information corresponding to each file according to a preset sorting rule. The preset sorting rule can be set according to actual needs. In this example, the preset sorting rule can be to sort the file information of each file in the file list in descending order of time based on the modification date of each file.

[0276] After viewing the file list 415, the user selects the photo taken today 416 and clicks the "Send" control 417.

[0277] At this time, as Figure 7As shown, the mobile phone 41 can respond to the user's file selection operation, identify the photo 416 as the file to be transferred, and send a file transfer request to the laptop 42 through the Bluetooth connection mentioned above.

[0278] After receiving a file transfer request, the laptop computer 42 can display a prompt box 421 on its screen, displaying the text "The mobile phone wants to send you a photo (1.7MB)" and "Accept the file?", and providing "Yes" control 422 and "No" control 423.

[0279] After the user clicks the "Yes" control 422, the laptop 42 can send a notification of agreement to the mobile phone.

[0280] After receiving the consent to transmit notification, mobile phone 41 sends photo 416 to laptop computer 42.

[0281] The laptop receives photo 416 and saves photo 416 to the device's memory, completing this file transfer process.

[0282] As can be seen from the above example, in the file transfer method provided in this embodiment, the first device can determine the target application in response to the user's application selection operation. Then, the first device can automatically obtain the first storage path corresponding to the target application and display the file list corresponding to the first storage path.

[0283] In other words, in the above file transfer method, after a simple UI interaction with the first device, the user can directly view the file list corresponding to the first storage path and search for the file to be transferred in the file list. The user does not need to search through each folder in the file system of the first device, which greatly reduces the difficulty of finding the file to be transferred. The operation is simple and convenient, which can effectively improve the user experience.

[0284] Furthermore, in the file transfer method provided in the above embodiments, the user can locate the file to be transferred on the first device. In other embodiments, the user can also locate the file to be transferred on the second device.

[0285] Please see Figure 8 , Figure 8 A flowchart illustrating another file transfer method provided in an embodiment of this application is shown. Figure 8 As shown, the file transfer method includes:

[0286] Step S801: In response to the user's application selection operation, determine the target application.

[0287] Step S802: Obtain the first storage path corresponding to the target application.

[0288] The contents of steps S801 and S802 can be referred to the description of steps S301 and S302 in the above embodiments, and will not be repeated in this embodiment.

[0289] Step S803: Send the original path information to the second device, which includes the first storage path mentioned above.

[0290] In this embodiment, the first device can map its file system to the second device, and the second device can access the file system mapped by the first device on its own device.

[0291] After determining the first storage path, the first device can send the original path information to the second device, which may include the aforementioned first storage path.

[0292] After receiving the original path information, the second device can access the file system mapped by the first device and open the first mapped folder corresponding to the first storage path.

[0293] The aforementioned first mapped folder can be understood as the folder mapped from the aforementioned first storage folder to the second device.

[0294] The method by which the second device opens the first mapped folder can be configured according to actual needs. For example, in some embodiments, the second device can pop up the first mapped folder on the current display interface; in other embodiments, the second device can jump to the first mapped folder corresponding to the first storage path from an already opened folder; in still other embodiments, the second device can also open the first mapped folder in other ways. This application does not limit the specific method by which the second device opens the first mapped folder.

[0295] After the second device opens the first mapped folder, it can display all the files under the first storage path within the first mapped folder. Users can then locate the file to be transferred within the first mapped folder and perform a file save operation.

[0296] The second device can respond to the above file saving operation, determine the file to be transferred, and save the file to be transferred on the memory of this device.

[0297] To facilitate understanding, the above embodiments will be described in detail below with reference to specific application scenarios.

[0298] Example 2:

[0299] like Figure 9 As shown, the file transfer system in this example may include a mobile phone 91 and a desktop computer 92.

[0300] After downloading document A in the browser of mobile phone 91, the user connects mobile phone 91 and desktop computer 92 with a USB cable, wanting to transfer document A to desktop computer 92.

[0301] At this time, as Figure 10 As shown, mobile phone 91 and desktop computer 92 can establish a USB connection based on the USB connection cable mentioned above, and exchange data through the USB connection, as shown in step S101.

[0302] When mobile phone 91 and desktop computer 92 interact via USB connection, the communication protocol used by mobile phone 91 and desktop computer 92 may include one or more protocols such as Media Transfer Protocol (MTP) and Picture Transfer Protocol (PTP). In this example, mobile phone 91 and desktop computer 92 can interact via MTP.

[0303] like Figure 11 As shown, after the mobile phone 91 and the desktop computer 92 establish a USB connection, the mobile phone 91 can display a mode selection box 911 on its display screen, which shows three options: "Transfer Photos", "Transfer Files", and "Charging Only".

[0304] After viewing the mode selection box 911, the user clicked the "Transfer File" option. At this point, as... Figure 12 As shown, the mobile phone 91 can respond to the user's operation, enter the file transfer mode, and display the floating button 912 on the device's display screen, as shown in step S102.

[0305] Then, the user clicked the browser icon. The phone 91 responded to the user's action and entered the browser's application interface 913.

[0306] Then, the user clicked the floating button 912. When the mobile phone 91 detects the user's click on the floating button 913, the mobile phone 91 detects that the application currently in the foreground is a browser. Then, the mobile phone 91 can query the first storage path corresponding to the browser from the pre-set path information table, as shown in step S103.

[0307] After finding the first storage path, such as Figure 13 As shown, mobile phone 91 can send original path information to desktop computer 92, which includes the first storage path mentioned above, as shown in step S014.

[0308] After receiving the original path information, the desktop computer 92 opens and displays the first mapped folder 921 corresponding to the first storage path, as shown in step S105.

[0309] The first mapping folder 921 can be used to display various files under the first storage path, such as document A, image B, and video C.

[0310] Users can find document A in the first mapped folder 921 and drag document A to the desktop of desktop computer 92.

[0311] At this time, the desktop computer 92 can respond to the user's operation, identify document A as the file to be transferred, and send a file acquisition request to the mobile phone 91, as shown in steps S106 and S107.

[0312] After receiving the file retrieval request, mobile phone 91 sends document A to desktop computer 92, as shown in step S108.

[0313] After receiving document A, desktop computer 92 saves document A on its local storage, completing the file transfer process as shown in step S109.

[0314] As can be seen from the above example, in the file transfer method provided in this embodiment, the first device can determine the target application in response to the user's application selection operation. Then, the first device can automatically obtain the first storage path corresponding to the target application and send the first storage path to the second device. Afterwards, the second device can open the first mapped file corresponding to the first storage path and display the various files under the first storage path.

[0315] In other words, in the above file transfer method, after a simple interface interaction with the first device, the user can directly view the first mapped folder on the second device and search for the file to be transferred in the first mapped folder. The user does not need to search for the file to be transferred level by level in the file system mapped on the first device, which greatly simplifies the operation of the user to find the file to be transferred. The operation is simple and convenient, which can effectively improve the user experience.

[0316] Furthermore, in the file transfer methods provided in the above embodiments, the first device sends the file to be transferred from the first storage path to the second device.

[0317] In other embodiments, to improve the security of file transfer and avoid damaging the file to be transferred in the first storage path during the file transfer process, the first device may not directly send the file to be transferred in the first storage path.

[0318] At this time, please refer to Figure 14 , Figure 14 This illustrates another file transfer method provided by an embodiment of this application. For example... Figure 14 As shown, the file transfer method includes:

[0319] Step S1401: In response to the user's application selection operation, determine the target application.

[0320] Step S1402: Obtain the first storage path corresponding to the target application.

[0321] Step S1403: Display the list of files corresponding to the first storage path mentioned above.

[0322] Step S1404: In response to the user's file selection operation, determine the file to be transferred.

[0323] The contents of steps S1401 to S1404 above can be referred to the description of steps S301 to S304 in the above embodiment, and will not be repeated in this embodiment.

[0324] Step S1405: Copy the file to be transferred to the second storage folder and send the transfer path information to the second device. The transfer path information includes the second storage path corresponding to the second storage folder.

[0325] In this embodiment, the first device can map its file system to the second device, and the second device can access the file system mapped by the first device on its own device.

[0326] After identifying the file to be transferred, the first device can copy the file to the second storage folder.

[0327] The second storage folder may be created by the first device before the file to be transferred is determined, or it may be created by the first device after the file to be transferred is determined.

[0328] For example, in one example, a second storage folder may be set by default on the first device; in another example, the first device may create the second storage folder after detecting an application selection operation; in yet another example, the first device may also create the second storage folder after detecting a file selection operation; in other examples, the first device may also create the second storage folder at other times. This application does not limit the creation time of the second storage folder.

[0329] Then, the first device can send transmission path information to the second device, which may include the second storage path corresponding to the aforementioned second storage folder.

[0330] After receiving the second storage path, the second device can access the file system mapped by the first device and open the second mapped folder corresponding to the second storage path.

[0331] The second mapped folder can be understood as the second storage folder of the first device being mapped to a folder on the second device.

[0332] The method by which the second device opens the second mapped folder can be configured according to actual needs. For example, in one example, the second device can pop up the second mapped folder on the current display interface; in another example, if the second device has other folders open, it can jump to the second mapped folder corresponding to the aforementioned second storage path from one of the open folders; in other examples, the second device can also open the second mapped folder in other ways. This application does not limit the specific method by which the second device opens the second mapped folder.

[0333] At this point, the user can view the file to be transferred in the second mapped folder opened on the second device and perform a file save operation on the file to be transferred.

[0334] The second device can store the file to be transferred into the memory of this device after detecting a file save operation.

[0335] In some embodiments, when the conditions for terminating transmission are met, the first device may also delete the second storage folder.

[0336] The content of the above-mentioned termination conditions can be set according to actual needs. For example, in one example, when the communication connection between the first device and the second device is broken, the first device can delete the second storage folder; in another example, when the first device exits file transfer mode, the first device can delete the second storage folder; in other examples, the content of the above-mentioned termination conditions can also be set to other conditions. The embodiments of this application do not limit the specific content of the above-mentioned termination conditions.

[0337] When the termination condition is met, it indicates that the first and second devices have stopped transferring files. At this point, the files in the second storage folder can be considered expired files.

[0338] Therefore, when the conditions for terminating transmission are met, the first device can promptly clean up invalid files, release the storage space occupied by invalid files, avoid accumulating a large number of invalid files, and ensure the smooth operation of the first device.

[0339] To facilitate understanding, the above embodiments will be described in detail below with reference to specific application scenarios.

[0340] Example 3:

[0341] like Figure 15 As shown, the file transfer system in this example may include a mobile phone 151 and a laptop computer 152.

[0342] After taking a photo D using the camera application on mobile phone 151, the user connects mobile phone 151 and laptop 152 using a USB cable, wanting to transfer photo D to laptop 152 for processing.

[0343] At this time, as Figure 16 As shown, mobile phone 151 and laptop computer 152 can establish a USB connection based on the USB connection cable mentioned above, and perform data interaction through the USB connection, as shown in step S161.

[0344] When mobile phone 151 and laptop 152 interact via USB connection, the communication protocol used by mobile phone 151 and laptop 152 may include one or more protocols such as MTP and PTP. In this example, mobile phone 151 and laptop 152 can interact via MTP.

[0345] like Figure 17 As shown, after the mobile phone 151 and the laptop 152 establish a USB connection, the mobile phone 151 can display a mode selection box 1511 on its display screen, which shows three options: "Transfer Photos", "Transfer Files", and "Charging Only".

[0346] After viewing the mode selection box 1511, the user clicks the "Transfer File" option. At this time, the phone 151 can respond to the user's operation, enter the file transfer mode, and display the floating button 1512 on the device's screen, as shown in step S162.

[0347] Then, the user taps the camera application icon. The phone 151 responds to the user's action and enters the camera application's program interface 1513.

[0348] Then, the user clicked the floating button 1512. When the mobile phone 151 detects the user's click operation on the floating button 1512, the mobile phone 151 detects that the application currently in the foreground is the camera application. Then, the mobile phone 151 can query the first storage path corresponding to the camera application from the pre-set path information table, as shown in step S163.

[0349] like Figure 18 As shown, after finding the first storage path, the mobile phone 151 can scan the first storage path and display a file list 1514, which displays the file information of each file under the first storage path.

[0350] In some embodiments, when displaying the file list 1514, the mobile phone 151 can also sort the file information corresponding to each file according to a preset sorting rule. The preset sorting rule can be set according to actual needs. In this example, the preset sorting rule can be to sort the file information of each file in the file list 1514 in descending order of time based on the modification date of each file.

[0351] After viewing the file list 1514, the user selects photo D taken today and clicks the "Send" control 1515. At this time, the mobile phone 151 can respond to the user's file selection operation and confirm photo D as the file to be transferred, as shown in step S164.

[0352] Then, as Figure 19 As shown, mobile phone 151 can copy photo D to the second storage folder and send storage path information to laptop computer 152, as shown in steps S165 and S166. The storage path information includes the second storage path of the aforementioned second storage folder.

[0353] After receiving the aforementioned storage path information, the laptop 152 opens and displays the second mapped folder 1521 corresponding to the second storage path, as shown in step S167.

[0354] The second mapping folder 1521 is used to display the various files under the second storage path. For example, photo D and video E.

[0355] Users can find photo D in the second mapping folder 1521 and drag photo D to the desktop of laptop 152.

[0356] At this time, the laptop 152 can respond to the user's operation, identify the photo D as the file to be transferred, and send a file acquisition request to the mobile phone 151, as shown in step S168.

[0357] After receiving the file retrieval request, mobile phone 151 sends photo D to laptop computer 152, as shown in step S169.

[0358] After receiving the photo D, the laptop 152 saves the photo D to the memory of the device, completing the file transfer process as shown in step S170.

[0359] As can be seen from the above examples, during file transfer, the file being transferred may be corrupted due to user error, system failure, or other factors.

[0360] Therefore, in the file transfer method provided in this embodiment, after determining the file to be transferred, the first device can copy the file to be transferred to the second storage folder and send the second storage path corresponding to the second storage folder to the second device.

[0361] Subsequently, the files to be transferred that the user sees on the second device, as well as the files to be transferred from the first device to the second device, are all copied files from the second storage folder.

[0362] In other words, even if unexpected situations such as misoperation or system failure occur during file transfer, only the file to be transferred copied to the second storage path will be damaged, and the original file to be transferred to the first storage path will not be affected, thus effectively improving the security of the file to be transferred.

[0363] Furthermore, in the various embodiments described above, the first device and the second device may establish one communication connection, or they may establish multiple communication connections.

[0364] When the first device and the second device have established multiple communication connections, the first device can transfer files through the default target communication connection; or, the first device can select the target communication connection from the above multiple communication connections for file transfer according to preset routing rules.

[0365] The content of the above-mentioned preset routing rules can be set according to actual needs. For example, the above-mentioned preset routing rules may include one or more rules such as selecting the target communication connection based on file size or selecting the target communication connection based on file type.

[0366] For example, suppose the first device and the second device have established a Bluetooth connection and a Wi-Fi connection.

[0367] In one example, if the first device detects that the file size of the file to be transferred is less than or equal to a first threshold, the first device can choose the Bluetooth connection to send the file to be transferred, thereby reducing the power consumption of file transfer; if the first device detects that the file size of the file to be transferred is greater than the first threshold, the first device can choose the Wi-Fi connection to send the file to be transferred, thereby improving the transfer efficiency of file transfer.

[0368] In another example, if the first device detects that the file type of the file to be transferred is a document, the first device can choose the Bluetooth connection mentioned above to send the file to be transferred; if the first device detects that the file type of the file to be transferred is a video, the first device can choose the Wi-Fi connection mentioned above to send the file to be transferred.

[0369] In other examples, the first device may also select a suitable target communication connection for file transfer based on other routing rules. This application does not limit the specific content of the aforementioned preset routing rules.

[0370] In addition, in the various embodiments described above, the first device may refer to a single electronic device, or the first device may be a combination of multiple electronic devices.

[0371] When the first device is an independent electronic device, the first device can be any of the following types of electronic devices: independent mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), personal digital assistant (PDA), netbook, etc.

[0372] When the first device is a combination of multiple electronic devices, the multiple electronic devices that make up the first device can be electronic devices of the same type, or they can be electronic devices of different types.

[0373] For example, in some embodiments, the first device may be a server cluster consisting of multiple servers of the same type; in other embodiments, the first device may be a super terminal consisting of mobile phones and tablets; in still other embodiments, the first device may also be composed of other types of electronic devices. This application does not limit the types of the various electronic devices constituting the first device.

[0374] Furthermore, when the first device is a combination of multiple electronic devices, the multiple electronic devices that make up the first device can establish communication connections with each other to exchange data.

[0375] The aforementioned communication connections may include wired communication connections and / or wireless communication connections. For example, the aforementioned communication connections may include one or more of the following connection methods: Bluetooth connection, Wi-Fi connection, USB connection, RJ45 connection, PLC connection, etc.

[0376] When the first device and the second device are transferring files, any electronic device in the first device can transfer the file to be transferred to the second device using the file transfer method described above.

[0377] For example, suppose a tablet and a mobile phone form a super terminal via a soft bus, and the mobile phone establishes a communication connection with a laptop.

[0378] When a user wants to transfer files from their phone to their laptop, the phone can use the file transfer method described above to transfer the files to the laptop.

[0379] When a user wants to transfer files from a tablet to a laptop, the tablet and phone can be treated as a single unit. The tablet can then perform the file transfer method described above, transferring the file to be transferred from the phone to the laptop.

[0380] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0381] The Bluetooth and USB connections listed in the above embodiments and examples are merely illustrative examples of the communication connection between the first device and the second device. In other scenarios, the communication connection between the first device and the second device may include any one or more of the following connection methods: Wi-Fi connection (such as Wi-Fi peer-to-peer (P2P) connection), Ultra Wide Band (UWB) connection, etc.

[0382] In practical application scenarios, the file transfer method implemented by the first device may have more or fewer steps than the method described in the above embodiments, or it may replace some steps of the method described in the above embodiments, or combine the steps of the methods described in the above multiple embodiments.

[0383] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0384] In the embodiments provided in this application, it should be understood that the disclosed devices / electronic devices and methods can be implemented in other ways. For example, the device / electronic device embodiments described above are merely illustrative. For instance, the division of modules or units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

[0385] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0386] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0387] If the integrated modules / units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by a computer program instructing related hardware. The computer program described above can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program described above includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. The computer-readable storage medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a portable hard drive, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable storage medium can be appropriately added or removed according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.

[0388] Finally, it should be noted that the above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A file transfer method, applied to a first device, wherein the first device and a second device establish a communication connection, characterized in that, include: In response to user input, the system enters transmission mode and displays a floating button upon entering transmission mode. In response to a click operation on the floating button on the first interface, the first storage path corresponding to the target application is obtained, the first interface is the interface of the target application and is the current display interface of the first device, and the target application is an application located in the foreground; Display the list of files corresponding to the first storage path; In response to a user's file selection action, determine the file to be transferred from the file list; The file to be transmitted is sent to the second device through the communication connection.

2. The method as described in claim 1, characterized in that, The step of displaying the file list corresponding to the first storage path includes: Scan the first storage path to obtain file information for each file under the first storage path; The file list is constructed and displayed based on the file information.

3. The method as described in claim 1, characterized in that, The file list is the first storage folder corresponding to the first storage path; The step of displaying the file list corresponding to the first storage path includes: Open the first storage folder corresponding to the first storage path.

4. The method according to any one of claims 1 to 3, characterized in that, After displaying the file list corresponding to the first storage path, the method further includes: The file information in the file list is sorted according to a preset sorting rule.

5. The method according to any one of claims 1 to 4, characterized in that, The step of obtaining the first storage path corresponding to the target application includes: Query the first storage path in the pre-established path information table.

6. The method according to any one of claims 1 to 5, characterized in that, The communication connection includes one or more of the following: Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular network connection.

7. A file transfer method, applied to a first device, wherein the first device and a second device establish a communication connection, characterized in that, include: In response to user input, the system enters file transfer mode and displays a floating button upon entering the file transfer mode. In response to a click operation on the floating button on the first interface, the first storage path corresponding to the target application is obtained, the first interface is the interface of the target application and is the current display interface of the first device, and the target application is an application located in the foreground; The original path information, including the first storage path, is sent to the second device through the communication connection. The original path information is used to instruct the second device to display the first mapped folder corresponding to the first storage path.

8. The method as described in claim 7, characterized in that, The step of obtaining the first storage path corresponding to the target application includes: Query the first storage path in the pre-established path information table.

9. The method as described in claim 7 or 8, characterized in that, The communication connection includes one or more of the following: Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular network connection.

10. A file transfer method, applied to a first device, wherein the first device and a second device establish a communication connection, characterized in that, include: In response to user input, the system enters file transfer mode and displays a floating button upon entering the file transfer mode. In response to a click operation on the floating button on the first interface, the first storage path corresponding to the target application is obtained, the first interface is the interface of the target application and is the current display interface of the first device, and the target application is an application located in the foreground; Display the list of files corresponding to the first storage path; In response to a user's file selection action, determine the file to be transferred from the file list; The file to be transferred is copied to the second storage folder via the communication connection, and transfer path information is sent to the second device. The transfer path information includes the second storage path of the second storage folder and is used to instruct the second device to display the second mapped folder corresponding to the second storage path.

11. The method as described in claim 10, characterized in that, The step of displaying the file list corresponding to the first storage path includes: Scan the first storage path to obtain file information for each file under the first storage path; The file list is constructed and displayed based on the file information.

12. The method as described in claim 10, characterized in that, The file list is the first storage folder corresponding to the first storage path; The step of displaying the file list corresponding to the first storage path includes: Open the first storage folder corresponding to the first storage path.

13. The method according to any one of claims 10 to 12, characterized in that, After displaying the file list corresponding to the first storage path, the method further includes: The file information in the file list is sorted according to a preset sorting rule.

14. The method according to any one of claims 10 to 13, characterized in that, The method further includes: When the conditions for terminating the transfer are met, delete the second storage folder.

15. The method according to any one of claims 10 to 14, characterized in that, The step of obtaining the first storage path corresponding to the target application includes: Query the first storage path in the pre-established path information table.

16. The method according to any one of claims 10 to 15, characterized in that, The communication connection includes one or more of the following: Bluetooth connection, Wi-Fi connection, Universal Serial Bus connection, Power Line connection, Ultra Wideband connection, and Cellular network connection.

17. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the electronic device is configured to execute the computer program, it implements the method as described in any one of claims 1 to 16.

18. A computer-readable storage medium configured to store a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 16.

19. A computer program product, characterized in that, The computer program product is configured to run on an electronic device, causing the electronic device to perform the method as described in any one of claims 1 to 16.

20. A chip system, characterized in that, The chip system includes a memory and a processor, the processor being configured to execute a computer program stored in the memory to implement the method as described in any one of claims 1 to 16.