CN107133357B - Picture storage method and mobile terminal - Google Patents

Picture storage method and mobile terminal Download PDF

Info

Publication number
CN107133357B
CN107133357B CN201710385722.7A CN201710385722A CN107133357B CN 107133357 B CN107133357 B CN 107133357B CN 201710385722 A CN201710385722 A CN 201710385722A CN 107133357 B CN107133357 B CN 107133357B
Authority
CN
China
Prior art keywords
folder
picture
date
stored
mobile terminal
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
CN201710385722.7A
Other languages
Chinese (zh)
Other versions
CN107133357A (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 CN201710385722.7A priority Critical patent/CN107133357B/en
Publication of CN107133357A publication Critical patent/CN107133357A/en
Application granted granted Critical
Publication of CN107133357B publication Critical patent/CN107133357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures

Abstract

The embodiment of the invention provides a picture storage method and a mobile terminal, wherein the method comprises the following steps: if the newly stored picture is detected to exist, determining a target folder which is newly established by retrieving folder information of a plurality of folders which are locally stored; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.

Description

Picture storage method and mobile terminal
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a picture storage method and a mobile terminal.
Background
With the continuous development of mobile terminal technology, the shooting function of the mobile phone is more and more perfect, and people often use the mobile phone to shoot in daily life. However, as time accumulates, more pictures will be stored in the mobile terminal.
Therefore, when a user wants to quickly search for pictures shot in a certain time period, all pictures in the album need to be turned over one by one to acquire a specified picture.
Disclosure of Invention
The embodiment of the invention provides a picture storage method, which aims to solve the problems that in the prior art, when a user wants to quickly search pictures shot in a certain time period, all pictures in an album need to be turned over one by one, so that the searching efficiency is low, the time consumption is long, and the user experience is seriously influenced.
In a first aspect, a picture storage method is provided, which is applied to a mobile terminal, and the method includes:
if the newly stored picture is detected to exist, determining a target folder which is newly established by retrieving folder information of a plurality of folders which are locally stored;
inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not;
if yes, storing the picture into a target folder;
if not, a new folder is established, and the pictures are stored in the new folder.
On the other hand, an embodiment of the present invention further provides a mobile terminal, including:
the confirming module is used for confirming a target folder which is newly established by retrieving folder information of a plurality of locally stored folders if the newly stored picture is detected to exist;
the query module is used for querying whether the current image storage amount in the target folder is smaller than a preset threshold value or not;
the storage module is used for storing the pictures into the target folder if the pictures are in the target folder;
and the establishing module is used for establishing a new folder and storing the pictures into the new folder if the picture is not in the new folder.
In this way, according to the technical scheme of the embodiment of the invention, if the newly stored picture is detected to exist, the newly established target folder is confirmed by retrieving the folder information of the plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flowchart of a method for storing pictures according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a picture storing method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a mobile terminal in a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal in a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal in a fourth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a mobile terminal in a fifth 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.
Example one
Referring to fig. 1, a flow chart of a blurring method in an embodiment of the present invention is shown.
Step 101, if it is detected that a newly stored picture exists, determining a recently established target folder by retrieving folder information of a plurality of locally stored folders.
Specifically, in the embodiment of the present invention, when the user newly stores the picture, the mobile terminal detects the picture storing action. That is, it is confirmed that there is a newly stored picture at present.
Subsequently, the mobile terminal retrieves a plurality of folders stored locally, which are folders for storing pictures under a specified directory in an embodiment of the present invention. The mobile terminal searches the folder information of a plurality of folders to determine which folder is the target folder which is established recently. In embodiments of the present invention, the folder information includes, but is not limited to: a starting date and an ending date, wherein the starting date is the storing date of the picture stored in the folder earliest; the expiration date is the date of storage of the picture newly stored in the folder. In other embodiments, the folder information may further include information such as the number of stored pictures in the current folder.
Step 102, inquiring whether the current picture storage amount in the target folder is smaller than a preset threshold value.
Specifically, in the embodiment of the present invention, the mobile terminal queries whether the current picture storage amount in the target folder is a predetermined threshold. In an embodiment, different folders may correspond to different predetermined thresholds, and the predetermined thresholds may be set according to practical situations, which is not limited by the present invention. If the value is smaller than the predetermined threshold, the process proceeds to step 103, and if the value is larger than or equal to the predetermined threshold, the process proceeds to step 104.
Step 103, storing the picture into the target folder.
Specifically, in the embodiment of the present invention, the mobile terminal stores the picture in the target folder when it is determined that the current picture storage amount of the target folder is less than the predetermined threshold.
Step 104, establishing a new folder, and storing the pictures in the new folder.
Specifically, in the embodiment of the present invention, the mobile terminal establishes a new picture folder in the designated directory and stores the picture in the newly established folder when it is determined that the current picture storage amount of the target folder is greater than or equal to the predetermined threshold.
In summary, according to the technical solution in the embodiment of the present invention, if it is detected that a newly stored picture exists, the newly established target folder is determined by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
Example two
Referring to fig. 2, a flowchart of a picture storage method according to an embodiment of the present invention is shown.
Step 201, if it is detected that a newly stored picture exists, the newly established target folder is confirmed by retrieving folder information of a plurality of locally stored folders.
Specifically, in the embodiment of the present invention, when the user newly stores the picture, the mobile terminal detects the picture storing action. That is, it is confirmed that there is a newly stored picture at present.
Subsequently, the mobile terminal retrieves a plurality of folders stored locally, which are folders for storing pictures under a designated directory in an embodiment of the present invention. The mobile terminal searches the folder information of a plurality of folders to determine which folder is the target folder which is established recently.
In embodiments of the present invention, the folder information includes, but is not limited to: a starting date and an ending date, wherein the starting date is the storing date of the picture stored in the folder earliest; the expiration date is the date of storage of the picture newly stored in the folder. In other embodiments, the folder information may further include information such as the number of stored pictures in the current folder.
Step 202, inquiring whether the current picture storage amount in the target folder is less than a preset threshold value.
Specifically, in the embodiment of the present invention, the mobile terminal queries whether the current picture storage amount in the target folder is a predetermined threshold. In an embodiment, different folders may correspond to different predetermined thresholds, and the predetermined thresholds may be set according to practical situations, which is not limited by the present invention. If the value is less than the predetermined threshold, the process proceeds to step 203, and if the value is greater than or equal to the predetermined threshold, the process proceeds to step 204.
Step 203, store the picture in the target folder.
Specifically, in the embodiment of the present invention, the mobile terminal stores the picture in the target folder when it is determined that the current picture storage amount of the target folder is less than the predetermined threshold.
Furthermore, in one embodiment of the present invention, the mobile terminal will also update the expiration date of the target folder. That is, the expiration date in the folder information of the target folder is updated to the date of the currently stored picture. In one embodiment, the start-stop date and the expiration date included in the folder information may be displayed in the file name of the folder, and in this embodiment, the mobile terminal updates the name of the target folder to be updated. In the embodiment of the invention, the date of storing the picture is the date of creating the picture. When the picture is newly stored (newly shot), picture information corresponding to the picture is established, and the picture information includes, but is not limited to, the creation (storage) date of the picture in the mobile terminal.
Step 204, create a new folder. The pictures are stored in the new folder.
Specifically, in the embodiment of the present invention, the mobile terminal establishes a new picture folder in the designated directory and stores the picture in the newly established folder when it is determined that the current picture storage amount of the target folder is greater than or equal to the predetermined threshold.
Also, in a preferred embodiment of the present invention, the mobile terminal further writes a start date and an expiration date in the file name of the new folder. Wherein, the starting date and the ending date of the new folder are the current date of the picture.
In addition, in an embodiment of the present invention, if one or more pictures stored in any folder are removed or deleted, the mobile terminal detects whether the start date and/or the expiration date of the folder to which the one or more pictures belong needs to be updated according to the date of the one or more removed or deleted pictures.
In summary, according to the technical solution in the embodiment of the present invention, if it is detected that a newly stored picture exists, the newly established target folder is determined by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
EXAMPLE III
Fig. 3 is a block diagram of a mobile terminal of one embodiment of the present invention. The mobile terminal 300 shown in fig. 3 includes a confirmation module 301, a query module 302, a storage module 303, and a setup module 304.
A confirming module 301, configured to, if it is detected that a newly stored picture exists, confirm a recently established target folder by retrieving folder information of a plurality of locally stored folders.
Specifically, in the embodiment of the present invention, when the user newly stores the picture, the mobile terminal detects the picture storing action. That is, it is confirmed that there is a newly stored picture at present.
Subsequently, the validation module 301 retrieves a plurality of locally stored folders, which in an embodiment of the present invention are folders for storing pictures under a specified directory. The confirmation module 301 confirms which folder is the most recently created target folder by retrieving folder information of a plurality of folders. In embodiments of the present invention, the folder information includes, but is not limited to: a starting date and an ending date, wherein the starting date is the storing date of the picture stored in the folder earliest; the expiration date is the date of storage of the picture newly stored in the folder. In other embodiments, the folder information may further include information such as the number of stored pictures in the current folder.
The query module 302 is configured to query whether the current picture storage amount in the target folder is smaller than a predetermined threshold.
Specifically, in this embodiment of the present invention, the query module 302 queries whether the current storage amount of the picture in the target folder is a predetermined threshold. In an embodiment, different folders may correspond to different predetermined thresholds, and the predetermined thresholds may be set according to practical situations, which is not limited by the present invention.
And the storage module 303 is configured to store the picture into the target folder if the query result of the query module 302 is yes.
Specifically, in the embodiment of the present invention, the query module 302, in a case that it is determined that the current picture storage amount of the target folder is less than the predetermined threshold, the storage module 303 stores the picture in the target folder.
And the establishing module 304 is configured to establish a new folder and store the pictures into the new folder if the query result of the querying module 302 is negative.
Specifically, in the embodiment of the present invention, the query module 302, in a case that it is determined that the current picture storage amount of the target folder is greater than or equal to the predetermined threshold, establishes a new picture folder in the specified directory, and stores the picture in the newly established folder.
In summary, in the mobile terminal in the embodiment of the present invention, if it is detected that a newly stored picture exists, the newly established target folder is determined by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
In one embodiment of the present invention, as shown in fig. 4, the mobile terminal may further include:
an update module 305 for updating the expiration date of the target folder.
Furthermore, in a preferred embodiment of the present invention, the establishing module 304 is further configured to:
establishing a new folder, and writing the starting date and the ending date into the file name of the new folder;
wherein, the starting date and the ending date of the new folder are the current date of the picture.
In one embodiment of the present invention, the mobile terminal further includes:
the detecting module 306 is configured to detect whether the start date and/or the expiration date of the folder to which the one or more pictures belong needs to be updated according to the date of storing the one or more pictures that are removed or deleted, if the one or more pictures stored in any folder are removed or deleted.
Example four
Fig. 5 is a block diagram of a mobile terminal according to another embodiment of the present invention. The mobile terminal 500 shown in fig. 5 includes: at least one processor 501, memory 502, at least one network interface 504, and other user interfaces 503. The various components in the mobile terminal 500 are coupled together by a bus system 505. It is understood that the bus system 505 is used to enable connection communications between these components. The bus system 505 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 505 in FIG. 5.
The user interface 503 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 502 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile memory may be a Read-only memory (ROM), a programmable Read-only memory (PROM), an erasable programmable Read-only memory (erasabprom, EPROM), an electrically erasable programmable Read-only memory (EEPROM), or a flash memory. The volatile memory may be a Random Access Memory (RAM) which functions as an external cache. By way of example, but not limitation, many forms of RAM are available, such as static random access memory (staticiram, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (syncronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced synchronous SDRAM (ESDRAM), synchronous link SDRAM (SLDRAM), and direct memory bus SDRAM (DRRAM). The memory 502 of the subject systems and methods described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 502 stores elements, executable modules or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 5021 and application programs 5022.
The operating system 5021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The application 5022 includes various applications, such as a media player (MediaPlayer), a Browser (Browser), and the like, for implementing various application services. The program for implementing the method according to the embodiment of the present invention may be included in the application program 5022.
In the embodiment of the present invention, by calling a program or an instruction stored in the memory 502, specifically, a program or an instruction stored in the application 5022, the processor 501 is configured to, if it is detected that a newly stored picture exists, determine a recently established target folder by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder.
The method disclosed by the above-mentioned embodiments of the present invention may be applied to the processor 501, or implemented by the processor 501. The processor 501 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 501. The processor 501 may be a general-purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502 and completes the steps of the method in combination with the hardware.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described in this disclosure may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this disclosure. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Alternatively, the processor 501 is configured to create a new folder, and write a start date and an expiration date into a file name of the new folder; wherein, the starting date and the ending date of the new folder are the current date of the picture.
Optionally, the processor 501 is further configured to: the expiration date of the target folder is updated.
Optionally, as another embodiment, the processor 501 is further configured to: if one or more pictures stored in any folder are removed or deleted, whether the start date and/or the expiration date of the folder to which the one or more pictures belong needs to be updated or not is detected according to the storage date of the removed or deleted one or more pictures.
The mobile terminal 500 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and in order to avoid repetition, the detailed description is omitted here.
In summary, in the mobile terminal in the embodiment of the present invention, if it is detected that a newly stored picture exists, the newly established target folder is determined by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
EXAMPLE five
Fig. 6 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. Specifically, the mobile terminal 600 in fig. 6 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 600 in fig. 6 includes a Radio Frequency (RF) circuit 610, a memory 620, an input unit 630, a display unit 640, a processor 660, an audio circuit 670, a wifi (wireless fidelity) module 680, and a power supply 690.
The input unit 630 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 600. Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 by using a finger, a stylus, or any other suitable object or accessory) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 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 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, and the other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 640 may be used to display information input by a user or information provided to the user and various menu interfaces of the mobile terminal 600. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (OLED).
It should be noted that the touch panel 631 may cover the display panel 641 to form a touch display screen, and when the touch display screen detects a touch operation thereon or nearby, the touch display screen is transmitted to the processor 660 to determine the type of the touch event, and then the processor 660 provides a corresponding visual output on the touch display screen according to the type of the touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 660 is a control center of the mobile terminal 600, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile terminal 600 and processes data by operating or executing software programs and/or modules stored in the first memory 621 and calling data stored in the second memory 622, thereby integrally monitoring the mobile terminal 600. Optionally, processor 660 may include one or more processing units.
In the embodiment of the present invention, by calling the software program and/or module stored in the first storage 621 and/or the data stored in the second storage 622, the processor 660 is configured to, if it is detected that there is a newly stored picture, determine a recently created target folder by retrieving folder information of a plurality of locally stored folders; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder.
Optionally, the processor 660 is configured to create a new folder, and write a start date and an end date into a file name of the new folder; wherein, the starting date and the ending date of the new folder are the current date of the picture.
Optionally, the processor 660 is further configured to: the expiration date of the target folder is updated.
Optionally, as another embodiment, the processor 660 is further configured to: if one or more pictures stored in any folder are removed or deleted, whether the start date and/or the expiration date of the folder to which the one or more pictures belong needs to be updated or not is detected according to the storage date of the removed or deleted one or more pictures.
Therefore, the mobile terminal in the embodiment of the invention confirms the newly established target folder by retrieving the folder information of the plurality of locally stored folders if the mobile terminal detects that the newly stored picture exists; inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not; if yes, storing the picture into a target folder; if not, a new folder is established, and the pictures are stored in the new folder. Therefore, the user can directly select the corresponding folder to quickly find the picture appointed by the user, and the user experience is further improved.
An embodiment of the present invention further provides a mobile terminal, including: the image storage program is stored on the memory and can be operated on the processor, and when being executed by the processor, the image storage program realizes the steps of any one of the image storage methods shown in the invention.
The embodiment of the invention also provides a computer-readable storage medium, wherein the computer-readable storage medium is stored with a picture storage program, and the picture storage program is executed by a processor to realize the steps of any one of the picture storage methods shown in the invention.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A picture storage method is applied to a mobile terminal, and is characterized by comprising the following steps:
if the newly stored picture is detected to exist, determining a target folder which is newly established by retrieving folder information of a plurality of folders which are locally stored;
inquiring whether the current picture storage capacity in the target folder is smaller than a preset threshold value or not;
if yes, storing the picture into the target folder;
if not, establishing a new folder, and storing the picture in the new folder;
the folder information comprises a starting date and an ending date, wherein the starting date is the storing date of the earliest picture stored in the folder; the expiration date is the storage date of the picture which is newly stored in the folder;
if one or more pictures stored in any folder are removed or deleted, whether the start date and/or the expiration date of the folder to which the one or more pictures belong needs to be updated or not is detected according to the storage date of the removed or deleted one or more pictures.
2. The method of claim 1, wherein the folder information is displayed in a filename of the target folder.
3. The method of claim 1 or 2, wherein after the step of storing the picture in the target folder, further comprising:
updating the expiration date of the target folder.
4. The method according to claim 1, wherein the step of creating a new folder and storing the pictures in the new folder specifically comprises:
establishing a new folder, and writing the starting date and the ending date into the file name of the new folder;
and the starting date and the ending date of the new folder are the current date of the picture.
5. A mobile terminal, comprising:
the confirming module is used for confirming a target folder which is newly established by retrieving folder information of a plurality of locally stored folders if the newly stored picture is detected to exist;
the query module is used for querying whether the current image storage amount in the target folder is smaller than a preset threshold value or not;
the storage module is used for storing the picture into the target folder if the picture is in the target folder;
the establishing module is used for establishing a new folder and storing the picture into the new folder if the picture is not in the new folder; the folder information comprises a starting date and an ending date, wherein the starting date is the storing date of the earliest picture stored in the folder; the expiration date is the storage date of the picture which is newly stored in the folder;
the mobile terminal further includes: the detection module is used for detecting whether the starting date and/or the ending date of the folder to which the one or more pictures belong needs to be updated or not according to the storage date of the one or more pictures which are removed or deleted if the one or more pictures stored in any folder are removed or deleted.
6. The mobile terminal of claim 5, wherein the folder information is displayed in a filename of the target folder.
7. The mobile terminal according to claim 5 or 6, characterized in that the mobile terminal further comprises:
and the updating module is used for updating the expiration date of the target folder.
8. The mobile terminal of claim 5, wherein the establishing module is further configured to:
establishing a new folder, and writing the starting date and the ending date into the file name of the new folder;
and the starting date and the ending date of the new folder are the current date of the picture.
9. A mobile terminal, comprising: memory, processor and picture storage program stored on the memory and executable on the processor, which when executed by the processor implements the steps of the picture storage method as claimed in any one of claims 1 to 4.
10. A computer-readable storage medium, on which a picture storage program is stored, which, when executed by a processor, implements the steps of the picture storage method according to any one of claims 1 to 4.
CN201710385722.7A 2017-05-26 2017-05-26 Picture storage method and mobile terminal Active CN107133357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710385722.7A CN107133357B (en) 2017-05-26 2017-05-26 Picture storage method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710385722.7A CN107133357B (en) 2017-05-26 2017-05-26 Picture storage method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107133357A CN107133357A (en) 2017-09-05
CN107133357B true CN107133357B (en) 2020-01-14

Family

ID=59733353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710385722.7A Active CN107133357B (en) 2017-05-26 2017-05-26 Picture storage method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107133357B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399346B (en) * 2019-06-20 2024-01-16 平安科技(深圳)有限公司 Storage path setting method and device using file counter and computer equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064937A (en) * 2012-12-25 2013-04-24 广东欧珀移动通信有限公司 Method and device for storing photos and based on shooting address and shooting time
CN104361101A (en) * 2014-11-24 2015-02-18 英华达(上海)科技有限公司 Video file classifying method and system
CN105787063A (en) * 2016-02-29 2016-07-20 深圳天珑无线科技有限公司 Picture storage method and terminal device
CN105824860A (en) * 2015-05-26 2016-08-03 维沃移动通信有限公司 Method for managing multi-media files and electronic equipment
CN106407297A (en) * 2016-08-31 2017-02-15 成都科来软件有限公司 Data packet downloading management system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8972350B2 (en) * 2012-06-05 2015-03-03 International Business Machines Corporation Preserving a state using snapshots with selective tuple versioning
KR102013329B1 (en) * 2012-08-23 2019-08-22 삼성전자 주식회사 Method and apparatus for processing data using optical character reader
CN104092726A (en) * 2014-06-09 2014-10-08 乐视网信息技术(北京)股份有限公司 Automatic replacing method and apparatus of same-name file
CN105610596B (en) * 2014-11-20 2020-02-18 腾讯科技(武汉)有限公司 Resource directory management method and network terminal
CN105760461A (en) * 2016-02-04 2016-07-13 上海卓易科技股份有限公司 Automatic album establishing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064937A (en) * 2012-12-25 2013-04-24 广东欧珀移动通信有限公司 Method and device for storing photos and based on shooting address and shooting time
CN104361101A (en) * 2014-11-24 2015-02-18 英华达(上海)科技有限公司 Video file classifying method and system
CN105824860A (en) * 2015-05-26 2016-08-03 维沃移动通信有限公司 Method for managing multi-media files and electronic equipment
CN105787063A (en) * 2016-02-29 2016-07-20 深圳天珑无线科技有限公司 Picture storage method and terminal device
CN106407297A (en) * 2016-08-31 2017-02-15 成都科来软件有限公司 Data packet downloading management system and method

Also Published As

Publication number Publication date
CN107133357A (en) 2017-09-05

Similar Documents

Publication Publication Date Title
US9632681B2 (en) Electronic Device, memory and control method for displaying multiple objects on a display screen
CN107678644B (en) Image processing method and mobile terminal
CN107193438B (en) Method for managing desktop icons and mobile terminal
US9838524B2 (en) Apparatus and method for controlling operation of mobile terminal
CN107221347B (en) Audio playing method and terminal
CN106131650B (en) Video processing method and mobile terminal
CN106372110B (en) Recommendation method of application program and mobile terminal
CN107741820B (en) Input method keyboard display method and mobile terminal
CN106055242B (en) Operation processing method and mobile terminal
CN107562345B (en) Information storage method and mobile terminal
CN106453925B (en) Information transmission method and mobile terminal
CN106970752B (en) Screen capturing method and mobile terminal
CN107506130B (en) Character deleting method and mobile terminal
CN107632761B (en) Display content viewing method, mobile terminal and computer readable storage medium
CN107562262B (en) Method for responding touch operation, terminal and computer readable storage medium
CN107678813B (en) Desktop icon theme switching method and mobile terminal
CN107368249B (en) Touch operation identification method and device and mobile terminal
CN105205066B (en) Picture searching method and device
CN106713742B (en) Shooting method and mobile terminal
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
CN107133357B (en) Picture storage method and mobile terminal
CN106446014B (en) File searching method and mobile terminal
CN104933085B (en) Update method, terminal and the server of e-book
CN107728898B (en) Information processing method and mobile terminal
CN107391196B (en) Application program updating 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