CN107193885A - A kind of data cached management method of music and mobile terminal - Google Patents
A kind of data cached management method of music and mobile terminal Download PDFInfo
- Publication number
- CN107193885A CN107193885A CN201710289254.3A CN201710289254A CN107193885A CN 107193885 A CN107193885 A CN 107193885A CN 201710289254 A CN201710289254 A CN 201710289254A CN 107193885 A CN107193885 A CN 107193885A
- Authority
- CN
- China
- Prior art keywords
- music
- cache
- list
- cache list
- playing
- 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.)
- Pending
Links
- 238000007726 management method Methods 0.000 title abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 55
- 238000004140 cleaning Methods 0.000 claims abstract description 31
- 230000000717 retained effect Effects 0.000 abstract 1
- 238000013523 data management Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/16—File or folder operations, e.g. details of user interfaces specifically adapted to file systems
- G06F16/162—Delete operations
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/638—Presentation of query results
- G06F16/639—Presentation of query results using playlists
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Human Computer Interaction (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiments of the invention provide a kind of data cached management method of music, methods described includes:Obtain the music cache list in music player;When detecting the cleaning operation to the cache file in the cache list, determine the target music in the cache list, wherein, the target music includes buffer lock mark, and the buffer lock is marked data cached to be locked for corresponding to the target music;Clear up the corresponding cache file of music in addition to the target music.It can be seen that, a kind of data cached Managed Solution of music provided in an embodiment of the present invention, buffer lock is added to the music in cache list, and the music of addition buffer lock is user's music interested, when needing to remove uninterested music in cache list, the music that user's music interested adds buffer lock can be retained simultaneously, the convenient management to cache list lifts the usage experience of user.
Description
Technical Field
The invention relates to the technical field of management systems, in particular to a music cache data management method and a mobile terminal.
Background
At present, along with the popularization of mobile terminals, the sound quality is better and better, and users also use the mobile terminals to play music more and more. In the playing process of the music, the mobile terminal can play the music and cache the played music in the cache list, and the music is played again without downloading from the network, so that the music is directly played, and the user experience is good.
The existing music cache data management method has the following problems: first, since there are many audio files in the cache list, when a user needs to play music of interest, it needs to search among many music. Second, when the user needs to clear the cache list and needs to keep the music of interest, the user needs to manually delete the unwanted music, keep the music of interest, or delete only the entire cache list including the music of interest.
Based on the above problems, when the user clears the interesting music in the cache list or the playlist, the user needs to select among a plurality of pieces of music, which is inconvenient for the user to operate and affects the user experience.
Disclosure of Invention
The invention provides a music cache data management method and a mobile terminal, and aims to solve the problem that music data management in a cache list is inconvenient for a user to select and reserve interested music in the prior art.
In order to solve the above problem, the present invention discloses a method for managing music cache data, wherein the method comprises: acquiring a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music; and clearing cache files corresponding to the music except the target music.
In order to solve the above problem, the present invention also discloses a mobile terminal, which includes: the acquisition module is used for acquiring a music cache list in the music player; the determining module is used for determining target music in the cache list when the cleaning operation of the cache files in the cache list is detected, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music; and the clearing module is used for clearing cache files corresponding to the music except the target music.
Compared with the prior art, the invention has the following advantages:
the invention provides a management scheme of music cache data, which comprises the steps of obtaining a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the music cache data management scheme provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is convenient, and the use experience of the user is improved.
Drawings
Fig. 1 is a flowchart illustrating steps of a method for managing music cache data according to a first embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for managing music cache data according to a second embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of a method for managing music cache data according to a third embodiment of the present invention;
fig. 4 is a block diagram of a mobile terminal according to a third embodiment of the present invention;
fig. 5 is a block diagram of a mobile terminal according to a fourth embodiment of the present invention;
fig. 6 is a block diagram of a mobile terminal according to a fifth embodiment of the present invention;
fig. 7 is a block diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Example one
Referring to fig. 1, a flowchart illustrating steps of a method for managing music cache data according to a first embodiment of the present invention is shown.
The music cache data management method provided by the embodiment of the invention comprises the following steps:
step 101: and acquiring a music cache list in the music player.
There are a large number of audio files in the cache list including music that the user has listened to or music that the user has downloaded, etc. Any audio files that have been played in the play interface are cached in the cache list.
Step 102: and when the cleaning operation of the cache files in the cache list is detected, determining the target music in the cache list.
The target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music. Specifically, the operation of clearing the cache file in the cache list may be an operation of the user performing cache clearing in the music player application, or an operation of the user clearing the cache file through another data file management application, which is not specifically limited in the embodiment of the present invention.
It should be noted that there are various ways to determine the target music in the cache list, and specifically, the ways may be: when the local playing frequency of a certain piece of music in the cache list exceeds the preset frequency or the total playing amount of the music on the network exceeds the preset playing times, for example: when the music is played for more than 3 times in one day locally, the music is the target music. Or when the total playing amount of a certain music in the cache list on the network is detected to exceed the preset playing times, such as 1000 times, the music is the target music. The above is only an example of two possible ways to determine the target music, and the specific implementation process is not limited to the above two ways, which is not specifically limited in the embodiment of the present invention.
Step 103: and cleaning cache files corresponding to the music except the target music.
And deleting the music except the target music with the cache lock mark according to the determined target music.
The invention provides a music cache data management method, which comprises the steps of obtaining a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the music cache data management method provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is convenient, and the use experience of the user is improved.
Example two
Referring to fig. 2, a flowchart illustrating steps of a method for managing music cache data according to a second embodiment of the present invention is shown.
The music cache data management method provided by the embodiment of the invention comprises the following steps:
step 201: and acquiring a music cache list in the music player.
There are a large number of audio files in the cache list including music that the user has listened to or music that the user has downloaded, etc. Any audio files that have been played in the play interface are cached in the cache list.
Step 202: and judging whether the local playing frequency of each music is greater than the preset frequency or not aiming at each music in the cache list.
The preset frequency is the total playing times of the music in the preset time.
Step 203: and if the music playing frequency is greater than the preset frequency, adding a cache lock mark to the music.
For example, if the preset frequency of the user is 5 times played in a day, detecting whether the total local playing frequency of one piece of music in the cache list in the day is greater than 5, if so, determining that the piece of music is the target music, and if the total local playing frequency of the piece of music in the day is 3, determining that the piece of music frequency is not the target music.
It should be noted that, a user may set the preset frequency according to needs, or a person skilled in the art may set the preset frequency by default, which is not limited in the embodiment of the present invention.
In addition to the manner of determining whether the music is added with the cache lock flag in steps 202 to 203, the determination may be made by:
the first possibility is:
judging whether the total playing times of each music network is greater than the preset playing times or not aiming at each music in the cache list;
and if the total playing times of the music network is greater than the preset playing times, adding a cache lock mark to the music.
For the current music, detecting a total playing time of a certain music in the cache list in the network, comparing the total playing time of the music in the network with a preset playing time, if the total playing time of the music is greater than the preset playing time, determining the music as the target music, and if the total playing time of the currently played music is less than or equal to the preset playing time, determining the music as the target music.
The second possibility is:
judging whether each piece of music is added to the music collection list or not according to each piece of music in the cache list;
if music has been added to the music collection list, a cache lock flag is added to the music.
Adding music to the music collection list is user-actively, and when music is detected in the music collection list, the music is determined to be the target music.
Step 204: and when the cleaning operation of the cache files in the cache list is detected, determining the target music in the cache list.
The target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music
Step 205: and receiving a playing instruction of the music with the cache lock mark added in the cache list.
Step 206: and playing the music added with the cache lock mark in the cache list according to the playing instruction in sequence.
The invention provides a music cache data management method, which comprises the steps of obtaining a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the music cache data management method provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is convenient, and the use experience of the user is improved.
EXAMPLE III
Referring to fig. 3, a flowchart illustrating steps of a method for managing music cache data according to a third embodiment of the present invention is shown.
The music cache data management method provided by the embodiment of the invention comprises the following steps:
step 301: and acquiring a music cache list in the music player.
There are a large number of audio files in the cache list including music that the user has listened to or music that the user has downloaded, etc. Any audio files that have been played in the play interface are cached in the cache list.
Step 302: and judging whether an instruction sent by a user for adding a cache lock mark to the music is received or not aiming at each music in the cache list.
Step 303: and if so, determining to add a cache lock mark to the music.
The user can manually add the cache lock mark to the music according to the requirement, a cache lock button is arranged in the music playing interface, and after the user lights the button, namely in the cache list, the currently played music and the cache lock mark corresponding to the music are correspondingly cached.
The user can also cancel the addition of the music cache lock mark according to the requirement, and if the music cache lock mark is lighted, the user clicks the cache lock again, and then the music cache lock mark is removed from the cache list.
Step 304: and when the cleaning operation of the cache files in the cache list is detected, determining the target music in the cache list.
The target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music
Step 305: and cleaning cache files corresponding to the music except the target music.
The invention provides a music cache data management method, which comprises the steps of obtaining a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the music cache data management method provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is convenient, and the use experience of the user is improved.
Example four
Referring to fig. 4, a block diagram of a mobile terminal according to a fourth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: an obtaining module 401, configured to obtain a music cache list in a music player; a determining module 402, configured to determine, when a cleaning operation on a cache file in the cache list is detected, target music in the cache list, where the target music includes a cache lock flag, and the cache lock flag is used to lock cache data corresponding to the target music; and a clearing module 403, configured to clear the cache file corresponding to the music other than the target music.
The invention provides a mobile terminal, which acquires a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the mobile terminal provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is facilitated, and the use experience of the user is improved.
EXAMPLE five
Referring to fig. 5, a block diagram of a mobile terminal according to a fifth embodiment of the present invention is shown.
The mobile terminal provided by the embodiment of the invention comprises: an obtaining module 501, configured to obtain a music cache list in a music player; a determining module 502, configured to determine, when a cleaning operation on a cache file in the cache list is detected, target music in the cache list, where the target music includes a cache lock flag, and the cache lock flag is used to lock cache data corresponding to the target music; the clearing module 503 is configured to clear the cache files corresponding to the music other than the target music.
Preferably, the mobile terminal further includes: : an adding module 504, configured to add a cache lock flag to the music in the cache list.
Preferably, the adding module 504 includes: the first judging submodule 5041 is configured to, for each piece of music in the cache list, judge whether a local playing frequency of each piece of music is greater than a preset frequency; a first adding submodule 5042, configured to add the cache lock flag to the music if the local playing frequency is greater than the preset frequency; the second judging submodule 5043 is configured to judge, for each piece of music in the cache list, whether the total playing time of each music network is greater than a preset playing time; a second adding sub-module 5044, configured to add the cache lock flag to the music if the total number of times of playing of the music network is greater than the preset number of times of playing; a third determining sub-module 5045, configured to determine, for each music in the cache list, whether each music has been added to the music collection list; a third adding sub-module 5046, configured to add the cache lock flag to the music if the music has been added to the music favorites list.
Preferably, the adding module 504 further comprises: a fourth judging submodule 5047, configured to judge, for each piece of music in the cache list, whether an instruction sent by the user to add a cache lock flag to the piece of music is received; a fourth adding sub-module 5048, configured to determine to add the cache lock flag to the music if the determination result of the fourth determining sub-module is yes.
Preferably, the mobile terminal further includes: a playing instruction receiving module 505, configured to receive a playing instruction for the music to which the cache lock tag is added in the cache list after the adding module adds the cache lock tag to the music in the cache list; a playing module 506, configured to play the music added with the cache lock mark in the cache list in sequence according to the playing instruction.
The invention provides a mobile terminal, which acquires a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the mobile terminal provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is facilitated, and the use experience of the user is improved.
EXAMPLE six
Referring to fig. 6, a block diagram of a mobile terminal according to a sixth embodiment of the present invention is shown.
The mobile terminal 800 of the embodiment of the present invention includes: at least one processor 801, memory 802, at least one network interface 804, and other user interfaces 803. The various components in the mobile terminal 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 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 805 in fig. 6.
The user interface 803 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 will be appreciated that the memory 802 in embodiments of the 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 ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 802 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 802 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 8021 and application programs 8022.
The operating system 8021 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 program 8022 includes various application programs, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in application program 8022.
In the embodiment of the present invention, by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the application program 8022, the processor 801 is configured to: acquiring a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music; and clearing cache files corresponding to the music except the target music.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 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 801. The Processor 801 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 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
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 embodiment of the invention may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described in this embodiment of the invention. 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.
Optionally, the processor 801 is further configured to: and adding a cache lock mark to the music in the cache list.
Optionally, the processor 801 is further configured to: judging whether the local playing frequency of each music is greater than a preset frequency or not according to each music in a cache list; if the local playing frequency is greater than the preset frequency, adding the cache lock mark to the music; or, judging whether the total playing times of each music network is greater than the preset playing times or not aiming at each music in the cache list; if the total playing times of the music network is greater than the preset playing times, adding the cache lock mark to the music; or judging whether each piece of music is added to the music collection list or not aiming at each piece of music in the cache list; if the music has been added to the music favorites list, then the cache lock tag is added to the music.
Optionally, the processor 801 is further configured to: judging whether an instruction sent by a user for adding a cache lock mark to the music is received or not aiming at each music in a cache list; and if so, determining to add the cache lock mark to the music.
Optionally, the processor 801 is further configured to: receiving a playing instruction of the music added with the cache lock mark in the cache list; and playing the music added with the cache lock mark in the cache list according to the playing instruction in sequence.
The mobile terminal 800 can implement each process implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
The mobile terminal provided by the embodiment of the invention is used for acquiring a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the mobile terminal provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is facilitated, and the use experience of the user is improved.
EXAMPLE seven
Referring to fig. 7, a block diagram of a mobile terminal according to a sixth embodiment of the present invention is shown.
The mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal of fig. 7 includes a Radio Frequency (RF) circuit 910, a memory 920, an input unit 930, a display unit 940, a processor 960, an audio circuit 970, a wifi (wireless fidelity) module 980, and a power supply 990.
The input unit 930 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. Specifically, in the embodiment of the present invention, the input unit 930 may include a touch panel 931. The touch panel 931, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 931 (for example, a user may operate the touch panel 931 by using a finger, a stylus pen, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 931 may include two parts, 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 it to touch point coordinates, and sends the touch point coordinates to the processor 960, where the touch controller can receive and execute commands sent by the processor 960. In addition, the touch panel 931 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 931, the input unit 930 may also include other input devices 932, and the other input devices 932 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among them, the display unit 940 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal. The display unit 940 may include a display panel 941, and the display panel 941 may be optionally configured in the form of an LCD or an Organic Light-Emitting Diode (OLED).
It should be noted that the touch panel 931 may overlay the display panel 941 to form a touch display screen, and when the touch display screen detects a touch operation on or near the touch display screen, the touch display screen transmits the touch operation to the processor 960 to determine the type of the touch event, and then the processor 960 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 960 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the first memory 921 and calling data stored in the second memory 922, thereby performing overall monitoring of the mobile terminal. Optionally, processor 960 may include one or more processing units.
In an embodiment of the present invention, processor 960 is configured to, by invoking a software program and/or module stored in first memory 921 and/or data in second memory 922: acquiring a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music; and clearing cache files corresponding to the music except the target music.
Optionally, the processor 960 is further configured to: and adding a cache lock mark to the music in the cache list.
Optionally, the processor 960 is further configured to: judging whether the local playing frequency of each music is greater than a preset frequency or not according to each music in a cache list; if the local playing frequency is greater than the preset frequency, adding the cache lock mark to the music; or, judging whether the total playing times of each music network is greater than the preset playing times or not aiming at each music in the cache list; if the total playing times of the music network is greater than the preset playing times, adding the cache lock mark to the music; or judging whether each piece of music is added to the music collection list or not aiming at each piece of music in the cache list; if the music has been added to the music favorites list, then the cache lock tag is added to the music.
Optionally, the processor 960 is further configured to: judging whether an instruction sent by a user for adding a cache lock mark to the music is received or not aiming at each music in a cache list; and if so, determining to add the cache lock mark to the music.
Optionally, the processor 960 is further configured to: receiving a playing instruction of the music added with the cache lock mark in the cache list; and playing the music added with the cache lock mark in the cache list according to the playing instruction in sequence.
The mobile terminal provided by the embodiment of the invention is used for acquiring a music cache list in a music player; when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list; and cleaning cache files corresponding to the music except the target music. Therefore, according to the mobile terminal provided by the invention, the cache lock is added to the music in the cache list, the music with the cache lock is the music which is interesting to the user, and when the music which is not interesting to the user in the cache list needs to be cleared, the music which is interesting to the user, namely the music with the cache lock, can be simultaneously reserved, so that the management of the cache list is facilitated, and the use experience of the user is improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The music cache data management methods provided herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The structure required to construct a system incorporating aspects of the present invention will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be appreciated by those skilled in the art that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the processing method of the management method of music buffer data according to an embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Claims (10)
1. A method for managing music cache data, the method comprising:
acquiring a music cache list in a music player;
when the cleaning operation of the cache files in the cache list is detected, determining target music in the cache list, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music;
and clearing cache files corresponding to the music except the target music.
2. The method according to claim 1, wherein after the step of obtaining the music cache list in the music player, before the step of determining the target music in the cache list when the cleaning operation of the cache file in the cache list is detected, the method further comprises:
and adding a cache lock mark to the music in the cache list.
3. The method of claim 2, wherein the step of adding a cache lock tag to the music in the cache list comprises:
judging whether the local playing frequency of each music is greater than a preset frequency or not according to each music in a cache list;
if the local playing frequency is greater than the preset frequency, adding the cache lock mark to the music;
or,
judging whether the total playing times of each music network is greater than the preset playing times or not according to each music in the cache list;
if the total playing times of the music network is greater than the preset playing times, adding the cache lock mark to the music;
or,
judging whether each piece of music is added to the music collection list or not according to each piece of music in the cache list;
if the music has been added to the music favorites list, then the cache lock tag is added to the music.
4. The method of claim 2, wherein the step of adding a cache lock tag to the music in the cache list comprises:
judging whether an instruction sent by a user for adding a cache lock mark to the music is received or not aiming at each music in a cache list;
and if so, determining to add the cache lock mark to the music.
5. The method of claim 2, wherein after the step of adding a cache lock tag to music in the cache list, the method further comprises:
receiving a playing instruction of the music added with the cache lock mark in the cache list;
and playing the music added with the cache lock mark in the cache list according to the playing instruction in sequence.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the acquisition module is used for acquiring a music cache list in the music player;
the determining module is used for determining target music in the cache list when the cleaning operation of the cache files in the cache list is detected, wherein the target music comprises a cache lock mark, and the cache lock mark is used for locking cache data corresponding to the target music;
and the clearing module is used for clearing cache files corresponding to the music except the target music.
7. The mobile terminal of claim 6, wherein the mobile terminal further comprises:
and the adding module is used for adding a cache lock mark to the music in the cache list.
8. The mobile terminal of claim 7, wherein the adding module comprises:
the first judgment submodule is used for judging whether the local playing frequency of each piece of music is greater than the preset frequency or not according to each piece of music in the cache list;
the first adding submodule is used for adding the cache lock mark to the music if the local playing frequency is greater than the preset frequency;
or,
the second judgment submodule is used for judging whether the total playing times of each music network is greater than the preset playing times or not according to each music in the cache list;
the second adding submodule is used for adding the cache lock mark to the music if the total playing times of the music network is greater than the preset playing times;
or,
a third judging submodule, configured to judge, for each piece of music in the cache list, whether each piece of music has been added to the music collection list;
a third adding submodule, configured to add the cache lock flag to the music if the music is already added to the music favorite list.
9. The mobile terminal of claim 7, wherein the adding module further comprises:
the fourth judgment submodule is used for judging whether an instruction sent by a user for adding a cache lock mark to the music is received or not according to each music in the cache list;
and the fourth adding submodule is used for determining to add the cache lock mark to the music if the judgment result of the fourth judging submodule is yes.
10. The mobile terminal of claim 7, wherein the mobile terminal further comprises:
the playing instruction receiving module is used for receiving a playing instruction of the music added with the cache lock mark in the cache list after the adding module adds the cache lock mark to the music in the cache list;
and the playing module is used for playing the music added with the cache lock mark in the cache list according to the playing instruction in sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710289254.3A CN107193885A (en) | 2017-04-27 | 2017-04-27 | A kind of data cached management method of music and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710289254.3A CN107193885A (en) | 2017-04-27 | 2017-04-27 | A kind of data cached management method of music and mobile terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107193885A true CN107193885A (en) | 2017-09-22 |
Family
ID=59873606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710289254.3A Pending CN107193885A (en) | 2017-04-27 | 2017-04-27 | A kind of data cached management method of music and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107193885A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595263A (en) * | 2018-04-04 | 2018-09-28 | 维沃移动通信有限公司 | A kind of method and mobile terminal of application cache cleaning |
CN109522446A (en) * | 2018-11-28 | 2019-03-26 | 湖南商学院 | A kind of multifunctional musical play system |
CN111885457A (en) * | 2020-07-15 | 2020-11-03 | 歌尔科技有限公司 | Wireless earphone, audio playing method and computer readable storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546792A (en) * | 2013-10-31 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Method and device for cleaning cache of video playing device |
CN104978188A (en) * | 2015-06-19 | 2015-10-14 | 上海卓悠网络科技有限公司 | Method and apparatus for updating screen-lock picture of intelligent terminal |
CN105095107A (en) * | 2014-05-04 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Buffer memory data cleaning method and apparatus |
CN106372003A (en) * | 2016-09-08 | 2017-02-01 | 广东欧珀移动通信有限公司 | Method and device for cleaning cache data, and terminal |
-
2017
- 2017-04-27 CN CN201710289254.3A patent/CN107193885A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103546792A (en) * | 2013-10-31 | 2014-01-29 | 乐视致新电子科技(天津)有限公司 | Method and device for cleaning cache of video playing device |
CN105095107A (en) * | 2014-05-04 | 2015-11-25 | 腾讯科技(深圳)有限公司 | Buffer memory data cleaning method and apparatus |
CN104978188A (en) * | 2015-06-19 | 2015-10-14 | 上海卓悠网络科技有限公司 | Method and apparatus for updating screen-lock picture of intelligent terminal |
CN106372003A (en) * | 2016-09-08 | 2017-02-01 | 广东欧珀移动通信有限公司 | Method and device for cleaning cache data, and terminal |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108595263A (en) * | 2018-04-04 | 2018-09-28 | 维沃移动通信有限公司 | A kind of method and mobile terminal of application cache cleaning |
CN109522446A (en) * | 2018-11-28 | 2019-03-26 | 湖南商学院 | A kind of multifunctional musical play system |
CN109522446B (en) * | 2018-11-28 | 2022-09-09 | 湖南商学院 | Multifunctional music playing system |
CN111885457A (en) * | 2020-07-15 | 2020-11-03 | 歌尔科技有限公司 | Wireless earphone, audio playing method and computer readable storage medium |
CN111885457B (en) * | 2020-07-15 | 2022-04-22 | 歌尔科技有限公司 | Wireless earphone, audio playing method and computer readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106131650B (en) | Video processing method and mobile terminal | |
CN107526492B (en) | Interface display method of application program and mobile terminal | |
CN106372110B (en) | Recommendation method of application program and mobile terminal | |
CN105975152B (en) | Fingerprint-based application program calling method and mobile terminal | |
CN107678644B (en) | Image processing method and mobile terminal | |
US11360638B2 (en) | Method for processing icons and mobile terminal | |
CN106993091B (en) | Image blurring method and mobile terminal | |
US20080252611A1 (en) | Object search method and terminal having object search function | |
CN107577512B (en) | Message display method, mobile terminal and computer readable storage medium | |
WO2018196699A1 (en) | Method for displaying fingerprint recognition region, and mobile terminal | |
CN106027373B (en) | A kind of approaches to IM and device | |
CN106126019B (en) | Display method of application program icon and mobile terminal | |
CN106372893B (en) | Code scanning interface switching method and device | |
CN107690026B (en) | Signal processing method and mobile terminal | |
KR20140039209A (en) | Web browser with quick site access user interface | |
CN106453953B (en) | Wireless access point connection method and mobile terminal | |
CN106789348B (en) | Network acceleration method, server and client | |
CN106780314B (en) | Jigsaw previewing method and mobile terminal | |
CN107547738B (en) | Prompting method and mobile terminal | |
CN107463644B (en) | Music recommendation method and mobile terminal | |
CN107193885A (en) | A kind of data cached management method of music and mobile terminal | |
CN107124656B (en) | Multimedia file playing method and mobile terminal | |
CN107181871B (en) | Volume adjusting method and mobile terminal | |
CN106934052B (en) | Media text processing method and mobile terminal | |
CN106570061B (en) | Webpage label management 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170922 |
|
RJ01 | Rejection of invention patent application after publication |