CN109522278B - File storage method and terminal equipment - Google Patents

File storage method and terminal equipment Download PDF

Info

Publication number
CN109522278B
CN109522278B CN201811216254.1A CN201811216254A CN109522278B CN 109522278 B CN109522278 B CN 109522278B CN 201811216254 A CN201811216254 A CN 201811216254A CN 109522278 B CN109522278 B CN 109522278B
Authority
CN
China
Prior art keywords
file
target
terminal device
target file
target object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811216254.1A
Other languages
Chinese (zh)
Other versions
CN109522278A (en
Inventor
朱明鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811216254.1A priority Critical patent/CN109522278B/en
Publication of CN109522278A publication Critical patent/CN109522278A/en
Application granted granted Critical
Publication of CN109522278B publication Critical patent/CN109522278B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the invention discloses a file storage method and terminal equipment, relates to the technical field of communication, and can solve the problems of long time consumption and low efficiency in the process of storing files by the terminal equipment. The specific scheme is as follows: receiving a first input of a user to a target file on a first screen, wherein the first input is used for triggering a terminal device to store the target file in a target object, and the target object is one of at least one object displayed on a second screen; in response to the first input, a target file is stored in the target object. The embodiment of the invention is applied to the process of storing the target file to be stored in the terminal equipment.

Description

File storage method and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a file storage method and terminal equipment.
Background
In daily life, a user can store files in a terminal device. Generally, since there are many files stored in a terminal device, the stored files can be classified according to the types of the files and stored for the user to search and use.
Generally, when a user stores different types of files (hereinafter, two different types of files are taken as an example) in a terminal device, the user may copy or cut one file first, then open a storage directory corresponding to the type of the file, and store the file in the storage directory; then, the user closes the currently opened storage directory, copies or cuts another file, opens the storage directory corresponding to the type of the another file, and stores the another file in the storage directory.
However, in the above method, when different types of files are stored in the terminal device, the terminal device needs to be triggered to switch back and forth between different storage directories, so that the process of storing the files by the terminal device takes a long time and is inefficient.
Disclosure of Invention
The embodiment of the invention provides a file storage method and terminal equipment, which can solve the problems of long time consumption and low efficiency in the process of storing files by the terminal equipment.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
in a first aspect of embodiments of the present invention, a file storage method is provided, which is applied to a terminal device, where the terminal device includes a first screen and a second screen, and the file storage method includes: receiving a first input of a user to a target file on a first screen, wherein the first input is used for triggering a terminal device to store the target file in a target object, and the target object is one of at least one object displayed on a second screen; in response to the first input, a target file is stored in the target object.
In a second aspect of the embodiments of the present invention, there is provided a terminal device, where the terminal device includes a first screen and a second screen, and the terminal device includes: a receiving unit and a storage unit. The receiving unit is used for receiving a first input of a user to the target file on the first screen, the first input is used for triggering the terminal equipment to store the target file in the target object, and the target object is one of at least one object displayed on the second screen. A storage unit for storing the target file in the target object in response to the first input received by the receiving unit.
In a third aspect of the embodiments of the present invention, a terminal device is provided, where the terminal device includes a processor, a memory, and a computer program stored in the memory and being executable on the processor, and the computer program, when executed by the processor, implements the steps of the file storage method according to the first aspect.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the file storage method according to the first aspect.
In the embodiment of the invention, the terminal equipment can receive a first input of a target file on a first screen by a user and store the target file in the target object in response to the first input. Because at least one object is displayed on the second screen of the terminal device, each time a user stores a target file in a target object of the at least one object, the user can perform first input on the target file on the first screen, so that the terminal device can store the target file in the target object, and the user does not need to operate a plurality of target objects for many times to trigger the terminal device to switch back and forth among the plurality of target objects, thereby simplifying the operation of the user, shortening the time consumption of the process of storing the target file by the terminal device, and improving the efficiency of storing the target file by the terminal device.
Drawings
Fig. 1 is a schematic structural diagram of an android operating system according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a file storage method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present invention;
fig. 4 is a second schematic diagram illustrating a file storage method according to an embodiment of the present invention;
fig. 5 is a third schematic diagram illustrating a file storage method according to an embodiment of the present invention;
fig. 6 is a second schematic diagram of an example of an interface of a mobile phone according to the embodiment of the present invention;
FIG. 7 is a fourth schematic diagram illustrating a file storage method according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a second schematic structural diagram of a terminal device according to a second embodiment of the present invention;
fig. 10 is a third schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a fourth schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 12 is a fifth schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 13 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first" and "second," and the like, in the description and in the claims of embodiments of the present invention are used for distinguishing between different objects and not for describing a particular order of the objects. For example, the first input and the second input, etc. are for distinguishing different inputs, rather than for describing a particular order of inputs. In the description of the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
The term "and/or" herein is an association relationship describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The symbol "/" herein denotes a relationship in which the associated object is or, for example, a/B denotes a or B.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The embodiment of the invention provides a file storage method and terminal equipment. Because at least one object is displayed on the second screen of the terminal device, each time a user stores a target file in a target object of the at least one object, the user can perform first input on the target file on the first screen, so that the terminal device can store the target file in the target object, and the user does not need to operate a plurality of target objects for many times to trigger the terminal device to switch back and forth among the plurality of target objects, thereby simplifying the operation of the user, shortening the time consumption of the process of storing the target file by the terminal device, and improving the efficiency of storing the target file by the terminal device.
The file storage method and the terminal device provided by the embodiment of the invention can be applied to the process of storing the target file to be stored in the terminal device.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment to which the file storage method provided by the embodiment of the present invention is applied, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention, in fig. 1, the architecture of the android operating system includes 4 layers, which are an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, L inux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of the android operating system and belongs to the lowest layer of a software layer of the android operating system, and the kernel layer provides core system services and hardware-related drivers for the android operating system based on L inux kernels.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the file storage method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the file storage method may operate based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the file storage method provided by the embodiment of the invention by running the software program in the android operating system.
A file storage method and a terminal device provided in an embodiment of the present invention are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
At present, in the prior art, when different types of files are stored in a terminal device, the terminal device needs to be triggered to switch back and forth in different storage directories, so that the process of storing the files by the terminal device is time-consuming and low in efficiency.
In order to solve the above technical problem, in a file storage method provided in an embodiment of the present invention, fig. 2 shows a flowchart of a file storage method provided in an embodiment of the present invention, where the method can be applied to a terminal device having an android operating system as shown in fig. 1. As shown in fig. 2, the file storage method may include steps 101 and 102 described below.
Step 101, a terminal device receives a first input of a target file on a first screen by a user.
In this embodiment of the present invention, the terminal device may include a first screen and a second screen, where the first input is used to trigger the terminal device to store a target file in a target object, and the target object is one of at least one object displayed on the second screen.
Optionally, in this embodiment of the present invention, the target file may be an identifier of an application program, a video file (such as a screen recording file), an audio file, a text file, a picture file, a folder, a document file, or the like.
Optionally, in this embodiment of the present invention, the target object may be an application program, a folder, a control, a storage directory, or the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited herein.
Optionally, in this embodiment of the present invention, the first input may be a drag input of the target file by the user.
Optionally, in the embodiment of the present invention, in a case that the target file is displayed on the first screen of the terminal device and the at least one object is displayed on the second screen, the user may drag the target file to a target object of the at least one object, so as to trigger the terminal device to store the target file in the target object.
Optionally, in this embodiment of the present invention, the at least one object may be an application program, a folder, a control, a storage directory, or the like. The specific method can be determined according to actual use requirements, and the embodiment of the invention is not limited herein.
Optionally, in the embodiment of the present invention, the application program to which the target file belongs and the application program to which the target object belongs may be the same; alternatively, the application to which the target file belongs and the application to which the target object belongs may be different.
It should be noted that, in the embodiment of the present invention, before the user performs the first input on the target file, the user may select at least one file on the first screen, and determine the at least one file as the target file.
For example, a terminal device is taken as a mobile phone for explanation. As shown in fig. 3 (a), the mobile phone 10 includes a first screen 11 and a second screen 12, the first screen 11 displays a file management interface, the file management interface displays files 1 to 4, the second screen 12 displays a file management interface, the file management interface displays files 1 to 6, and a user can drag the file 1 to the file 3 to trigger the mobile phone 10 to store the file 1 in the file 3.
Further exemplarily, as shown in fig. 3 (B), the mobile phone 10 includes a first screen 11 and a second screen 12, an interface of a group 1 of the album application is displayed on the first screen 11, the interface of the group 1 displays pictures 1 to 7, an interface of a group 2 of the album application is displayed on the second screen 12, the interface of the group 2 displays pictures 8 to 13, and a user may drag the pictures 5 to the group 2 to trigger the mobile phone 10 to store the pictures 5 in the group 2 of the album application.
Further exemplarily, as shown in (C) of fig. 3, the mobile phone 10 includes a first screen 11 and a second screen 12, an interface of a group 1 of the album application is displayed on the first screen 11, pictures 1 to 7 are displayed on the interface of the group 1, a file management interface is displayed on the second screen 12, the file management interface displays folders 7 to 11, and a user can drag the picture 5 to the folder 9 to trigger the mobile phone 10 to store the picture 5 in the folder 9.
Optionally, in the embodiment of the present invention, with reference to fig. 2, as shown in fig. 4, before step 101, the file storage method provided in the embodiment of the present invention may further include step 201 and step 202 described below.
Step 201, the terminal device receives a second input of the target file from the user.
In the embodiment of the present invention, the second input is used to trigger the terminal device to display the target object on the second screen.
Optionally, in this embodiment of the present invention, the second input may be a long-press input of the target file by the user.
It should be noted that, in the embodiment of the present invention, the first input and the second input may be two consecutive inputs, or may be two non-consecutive inputs. "continuous" may be understood as the absence of other inputs between two inputs and/or the absence of a time interval between two inputs.
Optionally, in the embodiment of the present invention, the user may perform a second input on the target file on the first screen to trigger the terminal device to perform a target object on the second screen; alternatively, the user may make a third input on the second screen to trigger the terminal device to display the target object on the second screen.
Step 202, the terminal device responds to the second input and displays at least one object on the second screen.
It can be understood that, in the embodiment of the present invention, after the user performs the second input on the target file, the terminal device may identify the file type or the storage directory of the target file, and display at least one object on the second screen according to the file type or the storage directory.
It should be noted that, in the embodiment of the present invention, the at least one object may be an object corresponding to a target file; alternatively, the at least one object may be a plurality of storage directories in the terminal device.
It should be noted that, in the embodiment of the present invention, if the target file is a text, after receiving a second input of the text by the user, the terminal device may generate a text file according to the text, and display the text file on the first screen.
Step 102, the terminal device responds to the first input and stores the target file in the target object.
The embodiment of the invention provides a file storage method.A terminal device can receive a first input of a target file on a first screen by a user and respond to the first input to store the target file in a target object. Because at least one object is displayed on the second screen of the terminal device, each time a user stores a target file in a target object of the at least one object, the user can perform first input on the target file on the first screen, so that the terminal device can store the target file in the target object, and the user does not need to operate a plurality of target objects for many times to trigger the terminal device to switch back and forth among the plurality of target objects, thereby simplifying the operation of the user, shortening the time consumption of the process of storing the target file by the terminal device, and improving the efficiency of storing the target file by the terminal device.
Optionally, in the embodiment of the present invention, as shown in fig. 5 in combination with fig. 2, before the step 102, the file storage method provided in the embodiment of the present invention may further include the following step 301, and the step 102 may be specifically implemented by the following step 102a and step 102 b.
Step 301, the terminal device determines a file management mode of a group to which the target file belongs in response to the first input, where the file management mode is a copy mode or a move mode.
Optionally, in this embodiment of the present invention, the terminal device may determine the default file management mode as the file management mode of the group to which the target file belongs; alternatively, the terminal device may receive a fourth input of the user on the first screen (the fourth input being an input of the user for the file management mode of the group to which the target file belongs), and in response to the fourth input, determine the file management mode of the group to which the target file belongs; alternatively, the terminal device may receive a fifth input by the user on the second screen (the fifth input being an input by the user for the file management mode of the group to which the target file belongs), and determine the file management mode of the group to which the target file belongs in response to the fifth input.
Optionally, in this embodiment of the present invention, the fourth input may be a selection input of a user on a control of a file management mode of a group to which the target file belongs.
Optionally, in this embodiment of the present invention, after the user performs the first input on the target file on the first screen, the second screen of the terminal device displays first prompt information, where the first prompt information is used to prompt the user to determine the file management mode of the group to which the target file belongs, and then after the terminal device receives the fifth input on the second screen, the terminal device determines the file management mode of the group to which the target file belongs.
Step 102a, if the file management mode is the copy mode, the terminal device calls the receiving interface to copy the target file to the target object.
It can be understood that, in the embodiment of the present invention, when the terminal device copies the target file to the target object, the terminal device does not call the removal interface of the first screen, but only calls the receiving interface of the second screen to receive the target file, and copies the target file to the target object.
Optionally, in this embodiment of the present invention, if the file management mode is the copy mode, the terminal device may first detect whether a receiving interface for the target file exists in the second screen, and call the receiving interface to copy the target file to the target object when the receiving interface for the target file exists in the second screen.
And 102b, if the file management mode is the mobile mode, the terminal equipment calls the removal interface and the receiving interface to move the target file to the target object.
It can be understood that, in the embodiment of the present invention, when the terminal device moves the target file to the target object, the removing interface of the first screen may be invoked to remove the target file in the first screen from the group to which the target file belongs, and then the receiving interface of the second screen may be invoked to receive the target file, and move the target file to the target object.
Optionally, in this embodiment of the present invention, if the file management mode is the mobile mode, the terminal device may first detect whether the first screen has a removal interface for the target file, and detect whether the second screen has a receiving interface for the target file, and call the removal interface and the receiving interface to move the target file to the target object under the condition that the first screen has the removal interface for the target file, and the second screen has the receiving interface for the target file.
For example, in conjunction with fig. 3 (B), as shown in fig. 6 (a), the interface of the group 1 of the album application further includes a control of the file management mode of the group 1 (i.e., a control of the copy mode and a control of the move mode), and the user may first perform a fourth input on the control of the copy mode, so that the mobile phone 10 determines that the file management mode of the group 1 is the copy mode, and then after the user drags the picture 5 to the group 2, the mobile phone 10 may copy the picture 5 to the group 2 of the album application. It is understood that in (a) in fig. 6, the group 1 of the album application still includes the picture 5, and the group 2 of the album application also includes the picture 5.
For another example, referring to fig. 3 (B), as shown in fig. 6 (B), the interface of the group 1 of the album application further includes a control of the file management mode of the group 1 (i.e., a control of the copy mode and a control of the move mode), and the user may first perform a fourth input on the control of the move mode, so that the mobile phone 10 determines that the file management mode of the group 1 is the move mode, and then after the user drags the picture 5 to the group 2, as shown in fig. 6 (C), the mobile phone 10 moves the picture 5 to the group 2 of the album application. It is understood that, in (C) in fig. 6, the picture 5 is not included in the group 1 of the album application, and the picture 5 is included in the group 2 of the album application.
In the embodiment of the invention, the terminal equipment can determine the called interface according to the file management mode of the group to which the target file belongs, and copy or move the target file to the target object by adopting the determined interface.
Optionally, in a possible implementation manner of the embodiment of the present invention, the application program to which the target file belongs is different from the application program to which the target object belongs. Referring to fig. 2, as shown in fig. 7, before the step 102, the file storage method provided in the embodiment of the present invention may further include the following step 401, and the step 102 may be specifically implemented by the following step 102 c.
Step 401, the terminal device responds to the first input, and detects a file type of the target file.
Optionally, in this embodiment of the present invention, the terminal device may detect the file type of the target file through the receiving interface.
Optionally, in this embodiment of the present invention, the file type of the target file may include a video type, a text type, an audio type, a picture type, a document type, and the like.
And 102c, under the condition that the file type of the target file is a preset type, the terminal equipment stores the target file in the target object.
In this embodiment of the present invention, the preset type may be a type supported by an application to which the target object belongs.
It can be understood that, in the embodiment of the present invention, in a case that the application program to which the target file belongs is different from the application program to which the target object belongs, if the application program to which the target object belongs supports the file type of the received target file, the terminal device may store the target file in the target object.
Optionally, in the embodiment of the present invention, the step 102c may be replaced with the step 102 c' described below.
And 102 c', under the condition that the file type of the target file is not the preset type, the terminal equipment displays prompt information.
In the embodiment of the present invention, the prompt information is used to prompt the user that the target file cannot be stored in the target object.
Optionally, in the embodiment of the present invention, the terminal device may display the prompt information on the first screen; alternatively, the terminal device may display the prompt message on the second screen.
It can be understood that, in the embodiment of the present invention, in a case that the application program to which the target file belongs is different from the application program to which the target object belongs, if the application program to which the target object belongs does not support the file type of the received target file, the terminal device may display a prompt message on the first screen or the second screen to prompt the user that the target file cannot be stored in the target object.
Fig. 8 shows a schematic diagram of a possible structure of a terminal device according to an embodiment of the present invention, where the terminal device includes a first screen and a second screen. As shown in fig. 8, the terminal device 80 may include: a receiving unit 81 and a storage unit 82.
The receiving unit 81 is configured to receive a first input of a target file on a first screen from a user, where the first input is used to trigger the terminal device to store the target file in a target object, and the target object is one of at least one object displayed on a second screen. A storage unit 82 for storing the target file in the target object in response to the first input received by the receiving unit 81.
In a possible implementation manner, the receiving unit 81 is further configured to receive a second input of the target file from the user before receiving the first input of the target file from the user on the first screen, where the second input is used to trigger the terminal device to display the target object on the second screen. With reference to fig. 8, as shown in fig. 9, the terminal device 80 provided in the embodiment of the present invention may further include: and a display unit 83. Wherein the display unit 83 is configured to display at least one object on the second screen in response to the second input received by the receiving unit 81.
In a possible implementation manner, with reference to fig. 8 and as shown in fig. 10, the terminal device 80 provided in the embodiment of the present invention may further include: a determination unit 84. Wherein, the determining unit 84 is configured to determine a file management mode of a group to which the target file belongs, the file management mode being a copy mode or a move mode, before the storing unit 82 stores the target file in the target object. The storage unit 82 is specifically configured to, if the file management mode determined by the determining unit 84 is the copy mode, invoke the receiving interface to copy the target file to the target object; and if the file management mode determined by the determination unit 84 is the move mode, calling the removal interface and the reception interface to move the target file to the target object.
In one possible implementation, the application to which the target file belongs is different from the application to which the target object belongs. With reference to fig. 8, as shown in fig. 11, the terminal device 80 according to the embodiment of the present invention may further include: a detection unit 85. Wherein the detecting unit 85 is configured to detect a file type of the target file before the storing unit 82 stores the target file in the target object. The storage unit 82 is specifically configured to, when the file type of the target file detected by the detection unit 85 is a preset type, store the target file in the target object, where the preset type is a type supported by an application to which the target object belongs.
In a possible implementation manner, with reference to fig. 11, as shown in fig. 12, a terminal device 80 provided in the embodiment of the present invention may further include: and a display unit 83. Wherein, the display unit 83 is configured to display a prompt message for prompting the user that the target file cannot be stored in the target object in case that the file type of the target file detected by the detection unit 85 is not a preset type.
The terminal device provided by the embodiment of the present invention can implement each process implemented by the terminal device in the above method embodiments, and for avoiding repetition, detailed description is not repeated here.
The embodiment of the invention provides a terminal device, which can receive a first input of a target file on a first screen by a user and store the target file in a target object in response to the first input. Because at least one object is displayed on the second screen of the terminal device, each time a user stores a target file in a target object of the at least one object, the user can perform first input on the target file on the first screen, so that the terminal device can store the target file in the target object, and the user does not need to operate a plurality of target objects for many times to trigger the terminal device to switch back and forth among the plurality of target objects, thereby simplifying the operation of the user, shortening the time consumption of the process of storing the target file by the terminal device, and improving the efficiency of storing the target file by the terminal device.
Fig. 13 is a hardware schematic diagram of a terminal device for implementing various embodiments of the present invention. As shown in fig. 13, the terminal device 130 includes but is not limited to: a radio frequency unit 131, a network module 132, an audio output unit 133, an input unit 134, a sensor 135, a display unit 136, a user input unit 137, an interface unit 138, a memory 139, a processor 140, and a power supply 141.
It should be noted that, as those skilled in the art will appreciate, the terminal device structure shown in fig. 13 does not constitute a limitation to the terminal device, and the terminal device may include more or less components than those shown in fig. 13, or may combine some components, or may arrange different components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 137 is configured to receive a first input of a target file on a first screen from a user, where the first input is used to trigger the terminal device to store the target file in a target object, and the target object is one of at least one object displayed on a second screen.
A memory 139 for storing a target file in the target object in response to a first input received by the user input unit 137.
The embodiment of the invention provides a terminal device, which can receive a first input of a target file on a first screen by a user and store the target file in a target object in response to the first input. Because at least one object is displayed on the second screen of the terminal device, each time a user stores a target file in a target object of the at least one object, the user can perform first input on the target file on the first screen, so that the terminal device can store the target file in the target object, and the user does not need to operate a plurality of target objects for many times to trigger the terminal device to switch back and forth among the plurality of target objects, thereby simplifying the operation of the user, shortening the time consumption of the process of storing the target file by the terminal device, and improving the efficiency of storing the target file by the terminal device.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 131 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 140; in addition, the uplink data is transmitted to the base station. Generally, the radio frequency unit 131 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 131 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 132, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 133 may convert audio data received by the radio frequency unit 131 or the network module 132 or stored in the memory 139 into an audio signal and output as sound. Also, the audio output unit 133 may also provide audio output related to a specific function performed by the terminal device 130 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 133 includes a speaker, a buzzer, a receiver, and the like.
The input unit 134 is used to receive audio or video signals. The input Unit 134 may include a Graphics Processing Unit (GPU) 1341 and a microphone 1342, and the Graphics processor 1341 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 136. The image frames processed by the graphic processor 1341 may be stored in the memory 139 (or other storage medium) or transmitted via the radio frequency unit 131 or the network module 132. The microphone 1342 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 131 in case of the phone call mode.
The terminal device 130 also includes at least one sensor 135, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 1361 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 1361 and/or the backlight when the terminal device 130 moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 135 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The Display unit 136 may include a Display panel 1361, and the Display panel 1361 may be configured in the form of a liquid Crystal Display (L acquired Crystal Display, L CD), an Organic light-Emitting Diode (O L ED), or the like.
The user input unit 137 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 137 includes a touch panel 1371 and other input devices 1372. Touch panel 1371, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1371 (e.g., operations by a user on or near touch panel 1371 using a finger, a stylus, or any other suitable object or attachment). The touch panel 1371 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 140, receives a command from the processor 140, and executes the command. In addition, the touch panel 1371 may be implemented by various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1371, the user input unit 137 may include other input devices 1372. Specifically, the other input devices 1372 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 1371 can be overlaid on the display panel 1361, and when the touch panel 1371 detects a touch operation on or near the touch panel, the touch panel is transmitted to the processor 140 to determine the type of the touch event, and then the processor 140 provides a corresponding visual output on the display panel 1361 according to the type of the touch event. Although in fig. 13, the touch panel 1371 and the display panel 1361 are implemented as two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1371 and the display panel 1361 may be integrated to implement the input and output functions of the terminal device, and the implementation is not limited herein.
The interface unit 138 is an interface for connecting an external device to the terminal apparatus 130. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 138 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 130 or may be used to transmit data between the terminal apparatus 130 and the external device.
The memory 139 may be used to store software programs as well as various data. The memory 139 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 139 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 140 is a control center of the terminal device, connects various parts of the entire terminal device by various interfaces and lines, and performs various functions of the terminal device and processes data by operating or executing software programs and/or modules stored in the memory 139 and calling data stored in the memory 139, thereby performing overall monitoring of the terminal device. Processor 140 may include one or more processing units; preferably, the processor 140 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 140.
The terminal device 130 may further include a power source 141 (such as a battery) for supplying power to various components, and preferably, the power source 141 may be logically connected to the processor 140 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 130 includes some functional modules that are not shown, and are not described herein.
Preferably, an embodiment of the present invention further provides a terminal device, which includes the processor 140 shown in fig. 13, the memory 139, and a computer program stored in the memory 139 and capable of running on the processor 140, where the computer program, when executed by the processor 140, implements the processes of the foregoing method embodiment, and can achieve the same technical effects, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements the processes of the method embodiments, and can achieve the same technical effects, and in order to avoid repetition, the details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A file storage method is applied to terminal equipment, and is characterized in that the terminal equipment comprises a first screen and a second screen, and the method comprises the following steps:
receiving a first input of a user to a target file on the first screen, wherein the first input is used for triggering the terminal equipment to store the target file in a target object, and the target object is one of at least one object displayed on the second screen;
storing the target file in the target object in response to the first input;
before the receiving a first input of a target file on the first screen by a user, the method further comprises:
receiving a second input of the target file by the user, wherein the second input is used for triggering the terminal equipment to display the target object on the second screen;
displaying the at least one object on the second screen in response to the second input.
2. The method of claim 1, wherein prior to storing the target file in the target object, the method further comprises:
determining a file management mode of a group to which the target file belongs, wherein the file management mode is a copy mode or a mobile mode;
the storing the target file in the target object includes:
if the file management mode is a copy mode, calling a receiving interface to copy the target file to the target object;
and if the file management mode is a mobile mode, calling a removal interface and a receiving interface to move the target file to the target object.
3. The method of claim 1, wherein the application to which the target file belongs is different from the application to which the target object belongs;
before storing the target file in the target object, the method further comprises:
detecting the file type of the target file;
the storing the target file in the target object includes:
and under the condition that the file type of the target file is a preset type, storing the target file in the target object, wherein the preset type is a type supported by an application program to which the target object belongs.
4. The method of claim 3, further comprising:
and displaying prompt information under the condition that the file type of the target file is not the preset type, wherein the prompt information is used for prompting a user that the target file cannot be stored in the target object.
5. A terminal device, characterized in that the terminal device comprises a first screen and a second screen, the terminal device comprising: a receiving unit and a storage unit;
the receiving unit is configured to receive a first input of a target file on the first screen by a user, where the first input is used to trigger the terminal device to store the target file in a target object, and the target object is one of at least one object displayed on the second screen;
the storage unit is used for responding to the first input received by the receiving unit and storing the target file in the target object;
the receiving unit is further configured to receive a second input of the target file from the user before receiving a first input of the target file from the user on the first screen, where the second input is used to trigger the terminal device to display the target object on the second screen;
the terminal device further includes: a display unit;
the display unit is used for responding to the second input received by the receiving unit and displaying the at least one object on the second screen.
6. The terminal device according to claim 5, wherein the terminal device further comprises: a determination unit;
the determining unit is configured to determine a file management mode of a group to which the target file belongs before the storage unit stores the target file in the target object, where the file management mode is a copy mode or a move mode;
the storage unit is specifically configured to invoke a receiving interface to copy the target file to the target object if the file management mode determined by the determining unit is a copy mode; and if the file management mode determined by the determining unit is a moving mode, calling a removing interface and a receiving interface to move the target file to the target object.
7. The terminal device according to claim 5, wherein the application program to which the target file belongs is different from the application program to which the target object belongs;
the terminal device further includes: a detection unit;
the detection unit is used for detecting the file type of the target file before the storage unit stores the target file in the target object;
the storage unit is specifically configured to store the target file in the target object when the file type of the target file detected by the detection unit is a preset type, where the preset type is a type supported by an application program to which the target object belongs.
8. The terminal device according to claim 7, wherein the terminal device further comprises: a display unit;
the display unit is configured to display a prompt message when the file type of the target file detected by the detection unit is not the preset type, where the prompt message is used to prompt a user that the target file cannot be stored in the target object.
9. Terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the file storage method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the file storage method according to any one of claims 1 to 4.
CN201811216254.1A 2018-10-18 2018-10-18 File storage method and terminal equipment Active CN109522278B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811216254.1A CN109522278B (en) 2018-10-18 2018-10-18 File storage method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811216254.1A CN109522278B (en) 2018-10-18 2018-10-18 File storage method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109522278A CN109522278A (en) 2019-03-26
CN109522278B true CN109522278B (en) 2020-08-04

Family

ID=65772660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811216254.1A Active CN109522278B (en) 2018-10-18 2018-10-18 File storage method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109522278B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109901760B (en) * 2019-01-21 2020-07-28 维沃移动通信有限公司 Object control method and terminal equipment
CN110251937B (en) * 2019-04-26 2020-10-09 网易(杭州)网络有限公司 Game object control method and device
CN110502162B (en) * 2019-07-08 2021-06-29 维沃移动通信有限公司 Folder creating method and terminal equipment
CN111310096A (en) * 2020-02-25 2020-06-19 维沃移动通信有限公司 Content saving method, electronic device, and computer-readable storage medium
CN112558851B (en) * 2020-12-22 2023-05-23 维沃移动通信有限公司 Object processing method, device, equipment and readable storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066172A (en) * 2017-02-16 2017-08-18 北京小米移动软件有限公司 The document transmission method and device of mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102409202B1 (en) * 2015-07-21 2022-06-15 삼성전자주식회사 Electronic device and method for managing objects in folder on the electronic device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107066172A (en) * 2017-02-16 2017-08-18 北京小米移动软件有限公司 The document transmission method and device of mobile terminal

Also Published As

Publication number Publication date
CN109522278A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN108255378B (en) Display control method and mobile terminal
CN110752980B (en) Message sending method and electronic equipment
CN110851051B (en) Object sharing method and electronic equipment
CN109522278B (en) File storage method and terminal equipment
CN109343759B (en) Screen-turning display control method and terminal
WO2019184666A1 (en) Method for displaying content and terminal
CN108415652B (en) Text processing method and mobile terminal
CN109614061B (en) Display method and terminal
CN111338530B (en) Control method of application program icon and electronic equipment
CN110837327B (en) Message viewing method and terminal
CN110058836B (en) Audio signal output method and terminal equipment
CN111142723B (en) Icon moving method and electronic equipment
CN109828705B (en) Icon display method and terminal equipment
CN110764666B (en) Display control method and electronic equipment
CN110752981B (en) Information control method and electronic equipment
CN109976611B (en) Terminal device control method and terminal device
CN110703972B (en) File control method and electronic equipment
CN111443844A (en) Information processing method and electronic equipment
CN111163224B (en) Voice message playing method and electronic equipment
CN108920040B (en) Application icon sorting method and mobile terminal
CN111459361B (en) Application icon display method and device and electronic equipment
CN111562959A (en) Icon management method and electronic equipment
CN110244884B (en) Desktop icon management method and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109284146B (en) Light application starting method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant