Method, device and terminal for copying files
A terminal and file technology, which is applied in the field of copying files, can solve problems such as wasting time and affecting file copying speed, and achieve the effect of improving copying speed and saving users' time
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0024] figure 1 It is a flow chart of a method for copying files provided in Embodiment 1 of the present invention, the method is executed by a device for copying files, the device is executed by software and / or hardware, and the device is configured in a terminal such as a mobile phone . Such as figure 1 As shown, the technical solution provided by this embodiment is specifically as follows:
[0025] S110: When the main thread in the first terminal receives a copy instruction of the target file, detect the progress of copying the target file.
[0026] In this embodiment, optionally, the first terminal is a terminal such as a mobile phone. When the first terminal is connected to the second terminal, the target file in the second terminal can be copied to the first terminal. The second terminal may also control the first terminal to copy the target file in the memory of the first terminal to the memory card, or copy the target file in the memory card of the first terminal t...
Embodiment 2
[0039] figure 2 It is a flow chart of a method for copying a file provided by Embodiment 2 of the present invention. On the basis of Embodiment 1 above, when the main thread in the first terminal receives a copy instruction of the target file, it detects the Before copying progress, perform the following operations:
[0040] When the first terminal detects that a connection is established based on the media transfer protocol MTP between the first terminal and the second terminal, a target thread is created, and the target thread is used for caching at least one request for updating the media library and for updating the media library according to the request Update media library.
[0041] Thus, by creating the target thread, the media library can be updated sequentially according to at least one request for updating the media library, reducing the workload of the main thread in the first terminal, so that the main thread in the first terminal can copy the next file when exec...
Embodiment 3
[0051] image 3 It is a flow chart of a method for copying files provided by Embodiment 3 of the present invention. On the basis of the above embodiments, if the main thread detects that the copy of the target file is completed, it sends an updated media library to the pre-created target thread. After the request, also perform the following operations:
[0052] The main thread controls the target thread to update the media library according to the request.
[0053] Therefore, by controlling the target thread to update the media library, the management efficiency of copied files is improved, and the workload of the main thread in the first terminal is reduced.
[0054] Further, after the main thread controls the target thread to update the media library according to the request, perform the following operations:
[0055] The main thread executes operations other than updating the media library in the copy operation of the next target file.
[0056] Thus, the main thread exec...
PUM
![No PUM](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com