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

Active Publication Date: 2019-10-15
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, in the process of implementing the present invention, the inventor finds that the prior art has the following defects: in the file transfer process, after each file copy is completed, a request to update the media library needs to be sent to the main thread, and only when the media library is completed The next file can be copied only after updating and feeding back the result of copying
According to the above file transfer method, if there are many files to be copied, it will seriously affect the file copy speed and waste time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and terminal for copying files
  • Method, device and terminal for copying files
  • Method, device and terminal for copying files

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method, a device and a terminal for copying files, and relates to the technical field of communication. The method is used for a first terminal and comprises the following steps: when receives a copying instruction of a target file, a main thread in the first terminal detects the copying progress of the target file; if the main thread detects that target file copying is completed, a media library update request is transmitted to a pre-created target thread, so that the target thread updates a media library according to the media library update request; the media library is used for managing the file stored in the first terminal; the main thread feeds back information that target file copying is completed to a second terminal, so that the second terminal transmits a copying instruction of a next target file. According to the method, the device and the terminal disclosed by the embodiment of the invention, the speed of copying multiple files can be improved, so that the time is saved.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to a method, device and terminal for copying files. Background technique [0002] With the rapid development of the mobile Internet, terminal applications are becoming more and more extensive. When transferring files between terminals, a Media Transfer Protocol (MTP) is usually used as a main transfer mode. [0003] When carrying out file transfer based on MTP between terminals, and when multiple files need to be transferred, at first the first terminal detects that a file copy is completed, and sends a request for updating the media library to the main thread; then controls the main thread to update the media library; when the media After the library is updated, the result of copying is fed back to the second terminal, and then the second terminal controls the copying of the next file. [0004] However, in the process of implementing the present invention, the inventor fin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/54
Inventor 王伟
Owner GUANGDONG OPPO MOBILE TELECOMM CORP LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products