CN105516787B - The storage controlling method and device of application cache data - Google Patents

The storage controlling method and device of application cache data Download PDF

Info

Publication number
CN105516787B
CN105516787B CN201510909773.6A CN201510909773A CN105516787B CN 105516787 B CN105516787 B CN 105516787B CN 201510909773 A CN201510909773 A CN 201510909773A CN 105516787 B CN105516787 B CN 105516787B
Authority
CN
China
Prior art keywords
application
data
module
terminal
memory
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
CN201510909773.6A
Other languages
Chinese (zh)
Other versions
CN105516787A (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201510909773.6A priority Critical patent/CN105516787B/en
Publication of CN105516787A publication Critical patent/CN105516787A/en
Priority to PCT/CN2016/084773 priority patent/WO2017096771A1/en
Application granted granted Critical
Publication of CN105516787B publication Critical patent/CN105516787B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB

Abstract

The invention discloses a kind of storage controlling methods of application cache data, comprising steps of when detecting the application switching instruction based on terminal, it is instructed according to the application switching and completes application switching operation, the application in the terminal running background is obtained after completing application switching operation and by the application labeled as the first application;In first application by preset kind in application, extracting the data that first application caches;The cached data are saved into the router memory module communicated to connect with the terminal, when with described in the application request in front stage operation first using the file data loaded, directly extract the file data from the router memory module.The invention also discloses a kind of storage control devices of application cache data.The present invention provide it is a kind of without re-download other application download data by way of, improve the availability of terminal memory headroom.

Description

The storage controlling method and device of application cache data
Technical field
The present invention relates to the storage controlling methods and device of field of terminal technology more particularly to application cache data.
Background technique
With the continuous development of terminal technology, more and more terminals enter into people's daily life and work.Institute It states terminal taking a smart TV as an example, tens sections of application can be downloaded in the application shop user of smart television, however, in high speed It is with the fastest developing speed with media application in the application technology of development, such as KuGoo music, QQ music or iqiyi.com video etc..When User is when different media applications switch, for example, switch between QQ music and KuGoo music, in QQ music download song A, In KuGoo music download song B, when user's final choice uses QQ music, the song B downloaded needs again in QQ sound It is downloaded in pleasure.It is above-mentioned during application switching due to cannot achieve the shared of downloading data, cause user to need to re-download The data downloaded by other application, so that terminal memory headroom availability is poor.
Above content is only used to facilitate the understanding of the technical scheme, and is not represented and is recognized that above content is existing skill Art.
Summary of the invention
The main purpose of the present invention is to provide the storage controlling methods and device of a kind of application cache data, it is intended to solve It is existing during application switching due to cannot achieve the shared of downloading data, cause user to need to re-download to have passed through The data of other application downloading, so that the problem of terminal memory headroom availability difference.
To achieve the above object, the storage controlling method of a kind of application cache data provided by the invention, comprising steps of
When detecting the application switching instruction based on terminal, is instructed according to the application switching and complete application switching behaviour Make, the application in the terminal running background is obtained after completing application switching operation and is the first application by the application;
In first application by preset kind in application, extracting the data that first application caches;
The cached data are saved into the router memory module communicated to connect with the terminal, on foreground When the file data that the first application has loaded described in the application request of operation, institute directly is extracted from the router memory module State file data.
Preferably, described to obtain in the terminal running background the step of application using and by the application labeled as first Later, further includes:
It obtains in the application of the terminal front stage operation after completing application switching operation and answers the application labeled as second With;
It is preset kind in application, each maximum value using committed memory of reading terminals in second application;
The memory headroom of the terminal is equally assigned into number corresponding with number of applications according to read maximum value Region of memory, for the corresponding data of each application memory.
Preferably, described to save the cached data to the router memory module communicated to connect with the terminal In step after, further includes:
Screening in running background is more than the data cached of the application of preset time;
By the data cached deletion, all applications in running background are closed.
Preferably, it is described close it is all the application of running background the step of after, further includes:
The identification information for closing application is obtained, the identification information is shown at the interface of current foreground operation application Show.
Preferably, described to save the cached data to the router memory module communicated to connect with the terminal In step after, further includes:
Determine the value saved to the occupied memory space of data of router memory module;
The value of occupied memory space is shown at the interface of current foreground operation application.
In addition, to achieve the above object, the present invention also provides a kind of storage control devices of application cache data, comprising:
Module is obtained, for having been instructed according to the application switching when detecting the application switching instruction based on terminal It is operated at application switching, the application in the terminal running background is obtained after completing application switching operation and marks the application For the first application;
Extraction module, for being applied by preset kind described first in application, extracting what first application cached Data;
Preserving module stores mould for saving the cached data to the router communicated to connect with the terminal In block, when with described in the application request in front stage operation first using the file data loaded, directly deposited from the router The file data is extracted in storage module.
Preferably, the storage control device of the application cache data is also further include: read module and distribution module,
The acquisition module is also used to obtain after completing application switching operation in the application of the terminal front stage operation and incites somebody to action The application is labeled as the second application;
The read module, for being preset kind in application, each application of reading terminals occupies in second application The maximum value of memory;
The distribution module, for the memory headroom of the terminal to be equally assigned into and answered according to read maximum value The region of memory of number is corresponded to, with quantity for the corresponding data of each application memory.
Preferably, the storage control device of the application cache data further include:
Screening module, it is data cached more than the application of preset time in running background for screening;
Processing module, for closing all applications in running background for the data cached deletion.
Preferably, the storage control device of the application cache data further includes display module,
The acquisition module is also used to obtain the identification information for closing application;
The display module, the interface display for applying the identification information in current foreground operation.
Preferably, the storage control device of the application cache data further include:
Determining module, for determining the value saved to the occupied memory space of data of router memory module;
The display module is also used to show the value of occupied memory space on the boundary of current foreground operation application Face.
The present invention is by the way that after switch application operation is completed, the data that the application for switching to backstage is cached are saved in In the router memory module of terminal communication connection, it is locally-downloaded for other application from the router and switches to answering for backstage With the data cached, and do not have to go on application server or internet to download again again.Effectively avoid existing answering With, due to cannot achieve the shared of downloading data, user being caused to need to re-download to have passed through under other application in handoff procedure The data of load, so that the problem of terminal memory headroom availability difference.One kind is provided and has passed through other application without re-downloading The mode of the data of downloading improves the availability of terminal memory headroom.
Detailed description of the invention
Fig. 1 is the flow diagram of the first embodiment of the storage controlling method of application cache data of the present invention;
Fig. 2 is the flow diagram of the second embodiment of the storage controlling method of application cache data of the present invention;
Fig. 3 is the flow diagram of the 3rd embodiment of the storage controlling method of application cache data of the present invention;
Fig. 4 is the flow diagram of the fourth embodiment of the storage controlling method of application cache data of the present invention;
Fig. 5 is the flow diagram of the storage control of application cache data in one embodiment of the invention;
Fig. 6 is the functional block diagram of the first embodiment of the storage control device of application cache data of the present invention;
Fig. 7 is the functional block diagram of the second embodiment of the storage control device of application cache data of the present invention;
Fig. 8 is the functional block diagram of the 3rd embodiment of the storage control device of application cache data of the present invention;
Fig. 9 is the functional block diagram of the fourth embodiment of the storage control device of application cache data of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are: when detecting the application switching instruction based on terminal, according to institute It states application switching instruction and completes application switching operation, obtain answering in the terminal running background after completing application switching operation With and by the application labeled as the first application;In first application for preset kind in application, extracting described first applies institute The data of caching;The cached data are saved into the router memory module communicated to connect with the terminal, with When the file data that the first application has loaded described in the application request of front stage operation, directly mentioned from the router memory module Take the file data.By the way that after switch application operation is completed, the data that the application for switching to backstage is cached are saved Into the router memory module communicated to connect with terminal, it is locally-downloaded for other application from the router and switches to backstage Using the data cached, and do not have to go on application server or internet to download again again.Effectively avoid it is existing Due to cannot achieve the shared of downloading data during application switching, user is caused to need to re-download to have passed through other application The data of downloading, so that the problem of terminal memory headroom availability difference.One kind is provided to answer by other without re-downloading With the mode of the data of downloading, the availability of terminal memory headroom is improved.
Due to it is existing during application switching due to cannot achieve the shared of downloading data, cause user to need again The data that downloading has been downloaded by other application, so that the problem of terminal memory headroom availability difference.
Based on the above issues, the present invention provides a kind of storage controlling method of application cache data.
Referring to Fig.1, Fig. 1 is the process signal of the first embodiment of the storage controlling method of application cache data of the present invention Figure.
In one embodiment, the storage controlling method of the application cache data includes:
Step S10 is instructed according to the application switching when detecting the application switching instruction based on terminal and is completed application Handover operation obtains the application in the terminal running background after completing application switching operation and the application is labeled as first Using;
In the present embodiment, user can be based on terminal loads application, for example, the application loaded is with QQ music, KuGoo For music and iqiyi.com videoconference client.User can open QQ music or KuGoo the selection of music sound when needing to listen to music Happy downloading plays in terminal local after downloading or direct-on-line plays, do not know which application plays passed through in user When music, user can gradually open music application, for example, first open QQ music application opens KuGoo music again, or first open cruel Dog music opens QQ music again, switches between different music applications;After opening some music application, it is based on this dozen The music application selection music opened plays out, and either selection plays after line plays or selects downloading, is required to choosing The music selected plays again after carrying out buffering load, of course, it is possible to buffer when playing.It is selected in user by different music applications It selects after different music plays out.When detecting the application switching instruction based on terminal, carry out between different applications Switching, front stage operation some application reach preset time (for example, 5 minutes or 10 minutes etc.) after, determine user selection reach Required function is completed in the application of preset time, obtains answering in the terminal running background after completing application switching operation With and by the application labeled as the first application, that is, get based on the application for switching to running background after application switching instruction, example Such as, currently running application is QQ music, is KuGoo music in the application of running background, after being based on switching command, by QQ music Running background is switched to, runs the KuGoo music in front end, and operation reaches preset time to KuGoo music in front end, determines institute Stating QQ music is the first application.
Step S20, in first application by preset kind in application, extracting the data that first application caches;
After getting first application, judge whether first application is preset kind application, the default class Type includes but is not limited to the application that music type, video type etc. can share same buffered data.For example, being answered described first When with for QQ music application, judge first application for preset kind application, detailed process are as follows: to look by described mesh packet name The title that inquiry table 1 is applied, terminal distinguish whether two applications are preset kind according to reading packet name and one reduction of fractions to a common denominator of Apply Names Relevant application.In first application by preset kind in application, extracting described first applies the data that cache, for example, It extracts the QQ and applies the song A downloaded when front end is run.It in an embodiment of the present invention, can be for each application setting not With mark, the mark includes part for distinguishing different application and includes the different types of part of differentiation, for example, set The mark set includes symbol and numerical portion, and the symbolic component is used for Distinguish for distinguishing application, data portion, when So, under the understanding of those skilled in the art, other are used to be also contained in protection of the present invention to the mode that application is identified Within the scope of.The terminal can based on each application mark come identify using whether be preset kind application.It is described Judge using that whether be the mode of preset kind application can also include the technical solution that knows of other those skilled in the art, herein not It repeats one by one again.
Table 1
Step S30 saves the cached data into the router memory module communicated to connect with the terminal, When with described in the application request in front stage operation first using the file data loaded, directly from the router memory module It is middle to extract the file data.
After extracting the cached data of first application, the cached data are sent to and the terminal In the router memory module of communication connection, the router memory module saves the cached data, and is the guarantor The data cached setting identification information deposited, the identification information include application message, data information, temporal information etc..It is routing The data cached of device preservation supplies directly to deposit from the router in the identical file data of the application request of terminal front stage operation The file data is extracted in storage module, and does not have to go on respective server or webpage to download again, that is, will not repeat to download The file data downloaded, saves the memory space of terminal, and then improves the availability of terminal storage space.
In an embodiment of the present invention, it applies there are multiple in running background, by shared memory headroom answering at most It is extracted, is saved into router memory module with the data cached.Preferably, it can be set one and be stored in router It is empty to will be greater than storage when reaching the memory space threshold value using cached data for the memory space threshold value of memory module Between the data that are cached of application of threshold value save into router memory module, the memory space threshold value can be 2MB or 1MB etc. is arranged according to the memory space of user demand and/or router memory module.
In other embodiments of the present invention, the data saved in the router memory module are managed, to protect Card has enough memory spaces to store newest data, reaches certain time (7 days or 10 days etc.) in data retention over time, deletes Holding time reaches the data of certain time;Or it is less than preset times threshold value (for example, 2 times or 3 times by access times in data Deng) when, delete the data that access times are less than preset times threshold value.It is only illustrative explanation with upper type, it is not limited to The mode of foregoing description, technical solution in the knowable range in this field in the range of the embodiment of the present invention is protected, This is no longer going to repeat them.
The present embodiment is by the way that after switch application operation is completed, the data that the application for switching to backstage is cached are saved Into the router memory module communicated to connect with terminal, it is locally-downloaded for other application from the router and switches to backstage Using the data cached, and do not have to go on application server or internet to download again again.Effectively avoid it is existing Due to cannot achieve the shared of downloading data during application switching, user is caused to need to re-download to have passed through other application The data of downloading, so that the problem of terminal memory headroom availability difference.One kind is provided to answer by other without re-downloading With the mode of the data of downloading, the availability of terminal memory headroom is improved.
Referring to the process signal that Fig. 2, Fig. 2 are the second embodiment of the storage controlling method of application cache data of the present invention Figure.The first embodiment of storage controlling method based on above-mentioned application cache data, after the step S10, further includes:
Step S40 is obtained in the application of the terminal front stage operation after completing application switching operation and is marked the application For the second application;
Step S50 is preset kind in application, each maximum using committed memory of reading terminals in second application Value;
The memory headroom of the terminal is equally assigned into and number of applications pair by step S60 according to read maximum value The region of memory of number is answered, for the corresponding data of each application memory.
In the present embodiment, it after the completion of handover operation, obtains and is transported after completing application switching operation on the terminal foreground Capable application simultaneously applies the application labeled as second.Judge it is described second application whether be preset kind application.It is described to sentence Judge whether first application is that the process of preset kind application is identical in disconnected process and above-mentioned first embodiment, herein no longer It repeats.It is preset kind in application, each maximum value using committed memory of reading terminals in second application.According to being read The memory headroom of the terminal is equally assigned into the region of memory of number corresponding with number of applications by the maximum value taken, for each The corresponding data of application memory.
For the present embodiment by applying in preset kind in terminal front stage operation, the memory storage of mean allocation terminal is empty Between, improve the speed of service of terminal.
Referring to the process signal that Fig. 3, Fig. 3 are the 3rd embodiment of the storage controlling method of application cache data of the present invention Figure.The second embodiment of storage controlling method based on above-mentioned application cache data, after the step S30, further includes:
Step S70, screening in running background is more than the data cached of the application of preset time;
The data cached deletion is closed all applications in running background by step S80.
In the present embodiment, by after the data that are cached of application of running background are stored in router storage, Screening in running background is more than the application of preset time, screening is described loaded more than the application of preset time it is data cached, By the data cached deletion, all applications in running background are closed.The preset time is preferably 5 minutes, is also possible to 8 10 minutes etc. after minute.By terminal close the running background time be greater than preset time application, the data dump deposited automatically, Other application is out of service on backstage, and terminal releases the data of backstage caching, reduces the memory storage space that terminal occupies, The problem of more memories are provided for the application of front stage operation, and then avoid front stage operation application Caton, improves terminal The speed of service and efficiency.In an embodiment of the present invention, with reference to Fig. 4, after step S80, further includes: step S90 obtains institute The identification information for closing application is stated, the interface display that the identification information is applied in current foreground operation.Terminal is according to closing Background application title be shown in the upper left corner of foreground application, display backstage operation Apply Names in the upper right corner, it is described aobvious The position shown is according to user setting, it is not limited to which the upper left corner or the upper right corner are arranged and exist according to the habit of each user difference Different positions.In other embodiments of the present invention, also it may also is that determining shared by data of the preservation to router memory module The value of memory space;The value of occupied memory space is shown at the interface of current foreground operation application.
In order to preferably describe the embodiment of the present invention, with reference to Fig. 5, comprising:
Process one: start (system TV receives the order that switches between two media music applications, such as: QQ music and cruel Switch between dog music, system, which issues, interrupts character Command, and 0x100 represents order switching.)
Two: TV system of process starts media application name module, and system tables look-up to obtain media application by root mesh packet name Title, TV system read packet name and media name one differentiate and (judge whether each application is media application) two apply whether be The relevant application of media? such as: table packet name of media application name module in is corresponding with the title of media application, Media_ Name (x1)=com.ttl.qqmusic (QQ music);
Media_Name (x2)=com.kugo.music (KuGoo music)
Media_Name (x2)=com.iqyi.music (unusual music)
Does is three: TV system discovery of process two music application? such as: QQ music, KuGoo music application, two kinds of situations: A kind of situation, TV system discovery are currently at the application that front and back is two media, such as: Media_Name (x1)= Com.ttl.qqmusic (QQ music)
Media_Name (x2)=com.kugo.music (KuGoo music)
It is the application of two media that seven: TV system discovery of process, which is currently at front and back not, before system closes media application Backstage identity module.Such as: Media_Name (x1)=com.ttl.qqmusic (QQ music)
Media_Name (x2)=com.kugo.TT (KuGoo magazine);
Process four: a kind of situation, TV system discovery are currently at the application that front and back is two media,
System starts media application front and back identity module, and system should receive key-press event mode by media and differentiate currently Using in foreground or backstage, the application for receiving key-press event is foreground application, other are background application, 1, before mark Platform, 0, identify backstage such as: KuGoo music: Media_Identity_Mode (x2)=0;
Does is five: TV system discovery foreground application of process music application? such as: QQ music: Media_Identity_Mode (x1)=1, two kinds of situations: a kind of situation: TV system discovery foreground application is music application, such as: QQ music: Media_ Identity_Mode (x1)=1, another situation: TV system discovery foreground application is not music application, such as: Media_ Name (x2)=com.kugo.TT (KuGoo magazine), Media_Identity_Mode (x2)=0;
Process six: a kind of situation: TV system discovery foreground application is music application, abutment body before TV system discovery media application The packet name (QQ music) of part module is foreground application, and system, which is opened, applies dynamic memory detecting module, and system reads each application The maximum value of memory carries out being averaged for memory according to multiple applications with the entire region of memory of TV system, such as: input 2 is answered With being QQ music respectively, KuGoo music, TV system is interior in total to save as 512MB, obtains the averagely interior of foreground application and saves as 256MB;
The application number of input: Input_num_ap (x1)=2
The memory sum of TV system: TV_RAM (x1)=256M
It is total using average memory:
TV_AVE_RAM=TV_RAM (x1)/Input_num_ap (x1)=256/2=256M.
It is specific:
1, system, which obtains, applies memory headroom size itself,
Such as: QQ music memory maximum demand 50MB,
KuGoo music memory maximum demand 1000MB, if it is greater than the size that application needs, overabsorption is to QQ, KuGoo application It causes to waste.
2, system obtains the space size in total of physical memory, is dynamically averaging according to Video Applications number, and system obtains The memory size of the application of mean allocation, such as: multiple QQ music applications amount to 10,
TV_AVE_RAM=TV_RAM (x1)/Input_num_ap (x1)=512/10=51MB.
3, system compares the value of the memory applications of physical allocation with using memory size itself, and physical application space is big In application memory space, default application maximum memory size.Such as: QQ music memory maximum demand 50MB is distributed in time 51MB finally sets QQ music physical memory 50MB.
Process eight: another situation: TV system discovery foreground application is not music application, TV system discovery music (KuGoo Music) application is background application, system starting memory moves router-module, and system is read using dynamic memory detecting module Value is with after the half of background application downloading data, and the data transmission that backstage is downloaded is into router memory block 33, system Periodically 5 minutes, router memory space can only save the maximum memory for saving data of rear end time longest.Such as: routing is deposited Control 512MB is stored up, 5 minutes arrive, and router saves 3 songs of KuGoo music application, likes you 10,000 years, and ice rain, the heart only has you, MP3 music data at this time keeps in router, and router finds TV system background there are also other media applications, and router is sent The internal storage data order for stopping receiving application, does not receive the data of other application, and router also sends the finger for stopping other application It enables to TV.
Nine: TV system of process opens routing and closes background application module, and route system is automatically big by the running background time Application in 5 minutes is closed, and the data that TV is deposited at end empty, other background applications are out of service, and it is slow that TV system releases backstage The data deposited, such as: TV system receives the order of routing, out of service 1,000 applications harked, the sounds such as MP3 to empty the cache Happy data.
Ten: TV system of process, which is opened, reminds backstage media display module, and TV system is aobvious according to the background application title of closing Show that display is from the background in the title of the application of operation in the upper right corner, display caching to the big of router in the upper left corner of foreground application It is small.Such as: display closes 1,000 and harks that music, display KuGoo music are cached to 3 song of router, like you 10,000 years, ice rain, The heart only has you.
The executing subject of the storage controlling method of the application cache data of above-mentioned each embodiment all can be terminal.More into One step, the storage controlling method of the clarifier application cache data can be by installing client application caching number at the terminal According to storage control program realize, wherein the terminal includes but is not limited to smart television, mobile phone, pad, laptop etc., excellent It is selected as smart television.
The present invention further provides a kind of storage control devices of application cache data.
Referring to Fig. 6, Fig. 6 is that the functional module of the first embodiment of the storage control device of application cache data of the present invention is shown It is intended to.
In one embodiment, the storage control device of the application cache data includes: to obtain module 10, extraction module 20 And preserving module 30.
The acquisition module 10, for detect based on terminal application switching instruction when, according to the application switching Application switching operation is completed in instruction, and the application in the terminal running background is obtained after completing application switching operation and answers this With labeled as the first application;
In the present embodiment, user can be based on terminal loads application, for example, the application loaded is with QQ music, KuGoo For music and iqiyi.com videoconference client.User can open QQ music or KuGoo the selection of music sound when needing to listen to music Happy downloading plays in terminal local after downloading or direct-on-line plays, do not know which application plays passed through in user When music, user can gradually open music application, for example, first open QQ music application opens KuGoo music again, or first open cruel Dog music opens QQ music again, switches between different music applications;After opening some music application, it is based on this dozen The music application selection music opened plays out, and either selection plays after line plays or selects downloading, is required to choosing The music selected plays again after carrying out buffering load, of course, it is possible to buffer when playing.It is selected in user by different music applications It selects after different music plays out.When detecting the application switching instruction based on terminal, carry out between different applications Switching, front stage operation some application reach preset time (for example, 5 minutes or 10 minutes etc.) after, determine user selection reach Required function is completed in the application of preset time, obtains answering in the terminal running background after completing application switching operation With and by the application labeled as the first application, that is, get based on the application for switching to running background after application switching instruction, example Such as, currently running application is QQ music, is KuGoo music in the application of running background, after being based on switching command, by QQ music Running background is switched to, runs the KuGoo music in front end, and operation reaches preset time to KuGoo music in front end, determines institute Stating QQ music is the first application.
The extraction module 20 is used in first application as preset kind in application, extracting described first applies institute The data of caching;
After getting first application, judge whether first application is preset kind application, the default class Type includes but is not limited to the application that music type, video type etc. can share same buffered data.For example, being answered described first When with for QQ music application, judge first application for preset kind application, detailed process are as follows: to look by described mesh packet name The title that inquiry table 1 is applied, terminal distinguish whether two applications are preset kind according to reading packet name and one reduction of fractions to a common denominator of Apply Names Relevant application.In first application by preset kind in application, extracting described first applies the data that cache, for example, It extracts the QQ and applies the song A downloaded when front end is run.It in an embodiment of the present invention, can be for each application setting not With mark, the mark includes part for distinguishing different application and includes the different types of part of differentiation, for example, set The mark set includes symbol and numerical portion, and the symbolic component is used for Distinguish for distinguishing application, data portion, when So, under the understanding of those skilled in the art, other are used to be also contained in protection of the present invention to the mode that application is identified Within the scope of.The terminal can based on each application mark come identify using whether be preset kind application.It is described Judge using that whether be the mode of preset kind application can also include the technical solution that knows of other those skilled in the art, herein not It repeats one by one again.
The preserving module 30, for saving the cached data to the router communicated to connect with the terminal In memory module, when with described in the application request in front stage operation first using the file data loaded, directly from the road By extracting the file data in device memory module.
After extracting the cached data of first application, the cached data are sent to and the terminal In the router memory module of communication connection, the router memory module saves the cached data, and is the guarantor The data cached setting identification information deposited, the identification information include application message, data information, temporal information etc..It is routing The data cached of device preservation supplies directly to deposit from the router in the identical file data of the application request of terminal front stage operation The file data is extracted in storage module, and does not have to go on respective server or webpage to download again, that is, will not repeat to download The file data downloaded, saves the memory space of terminal, and then improves the availability of terminal storage space.
In an embodiment of the present invention, it applies there are multiple in running background, by shared memory headroom answering at most It is extracted, is saved into router memory module with the data cached.Preferably, it can be set one and be stored in router It is empty to will be greater than storage when reaching the memory space threshold value using cached data for the memory space threshold value of memory module Between the data that are cached of application of threshold value save into router memory module, the memory space threshold value can be 2MB or 1MB etc. is arranged according to the memory space of user demand and/or router memory module.
In other embodiments of the present invention, the data saved in the router memory module are managed, to protect Card has enough memory spaces to store newest data, reaches certain time (7 days or 10 days etc.) in data retention over time, deletes Holding time reaches the data of certain time;Or it is less than preset times threshold value (for example, 2 times or 3 times by access times in data Deng) when, delete the data that access times are less than preset times threshold value.It is only illustrative explanation with upper type, it is not limited to The mode of foregoing description, technical solution in the knowable range in this field in the range of the embodiment of the present invention is protected, This is no longer going to repeat them.
The present embodiment is by the way that after switch application operation is completed, the data that the application for switching to backstage is cached are saved Into the router memory module communicated to connect with terminal, it is locally-downloaded for other application from the router and switches to backstage Using the data cached, and do not have to go on application server or internet to download again again.Effectively avoid it is existing Due to cannot achieve the shared of downloading data during application switching, user is caused to need to re-download to have passed through other application The data of downloading, so that the problem of terminal memory headroom availability difference.One kind is provided to answer by other without re-downloading With the mode of the data of downloading, the availability of terminal memory headroom is improved.
Referring to Fig. 7, Fig. 7 is that the functional module of the second embodiment of the storage control device of application cache data of the present invention is shown It is intended to.The storage control device of the application cache data further includes read module 40 and distribution module 50.
The acquisition module 10 is also used to obtain and complete after application switching operates in the terminal front stage operation using simultaneously By the application labeled as the second application;
The read module 40, for being preset kind in application, each application of reading terminals accounts in second application With the maximum value of memory;
The distribution module 50, for according to read maximum value by the memory headroom of the terminal be equally assigned into Number of applications corresponds to the region of memory of number, for the corresponding data of each application memory.
In the present embodiment, it after the completion of handover operation, obtains and is transported after completing application switching operation on the terminal foreground Capable application simultaneously applies the application labeled as second.Judge it is described second application whether be preset kind application.It is described to sentence Judge whether first application is that the process of preset kind application is identical in disconnected process and above-mentioned first embodiment, herein no longer It repeats.It is preset kind in application, each maximum value using committed memory of reading terminals in second application.According to being read The memory headroom of the terminal is equally assigned into the region of memory of number corresponding with number of applications by the maximum value taken, for each The corresponding data of application memory.
For the present embodiment by applying in preset kind in terminal front stage operation, the memory storage of mean allocation terminal is empty Between, improve the speed of service of terminal.
Referring to Fig. 8, Fig. 8 is that the functional module of the 3rd embodiment of the storage control device of application cache data of the present invention is shown It is intended to.The storage control device of the application cache data further includes screening module 60 and processing module 70 and display module 80.
The screening module 60, it is data cached more than the application of preset time in running background for screening;
The processing module 70, for closing all applications in running background for the data cached deletion.
In the present embodiment, by after the data that are cached of application of running background are stored in router storage, Screening in running background is more than the application of preset time, screening is described loaded more than the application of preset time it is data cached, By the data cached deletion, all applications in running background are closed.The preset time is preferably 5 minutes, is also possible to 8 10 minutes etc. after minute.By terminal close the running background time be greater than preset time application, the data dump deposited automatically, Other application is out of service on backstage, and terminal releases the data of backstage caching, reduces the memory storage space that terminal occupies, The problem of more memories are provided for the application of front stage operation, and then avoid front stage operation application Caton, improves terminal The speed of service and efficiency.
The acquisition module 10 is also used to obtain the identification information for closing application;
The display module 80, the interface display for applying the identification information in current foreground operation.Terminal root Be shown in the upper left corner of foreground application according to the background application title of closing, display backstage operation Apply Names in the upper right corner, The position of the display is according to user setting, it is not limited to the upper left corner or the upper right corner, according to the habit of each user difference Different positions is set.
With reference to Fig. 9, the storage control device of the application cache data further includes determining module 90, is saved extremely for determining The value of the occupied memory space of the data of router memory module;The display module 80 is also used to occupied storage The value in space is shown in the interface of current foreground operation application.
In order to preferably describe the embodiment of the present invention, with reference to Fig. 5, comprising:
Process one: start (system TV receives the order that switches between two media music applications, such as: QQ music and cruel Switch between dog music, system, which issues, interrupts character Command, and 0x100 represents order switching.)
Two: TV system of process starts media application name module, and system tables look-up to obtain media application by root mesh packet name Title, TV system read packet name and media name one differentiate and (judge whether each application is media application) two apply whether be The relevant application of media? such as: table packet name of media application name module in is corresponding with the title of media application, Media_ Name (x1)=com.ttl.qqmusic (QQ music);
Media_Name (x2)=com.kugo.music (KuGoo music)
Media_Name (x2)=com.iqyi.music (unusual music)
Does is three: TV system discovery of process two music application? such as: QQ music, KuGoo music application, two kinds of situations: A kind of situation, TV system discovery are currently at the application that front and back is two media, such as: Media_Name (x1)= Com.ttl.qqmusic (QQ music)
Media_Name (x2)=com.kugo.music (KuGoo music)
Process seven: another situation: it is the application of two media that TV system discovery, which is currently at front and back not, and system is closed Media application front and back identity module.Such as: Media_Name (x1)=com.ttl.qqmusic (QQ music)
Media_Name (x2)=com.kugo.TT (KuGoo magazine);
Process four: a kind of situation, TV system discovery are currently at the application that front and back is two media,
System starts media application front and back identity module, and system should receive key-press event mode by media and differentiate currently Using in foreground or backstage, the application for receiving key-press event is foreground application, other are background application, 1, before mark Platform, 0, identify backstage such as: KuGoo music: Media_Identity_Mode (x2)=0;
Does is five: TV system discovery foreground application of process music application? such as: QQ music: Media_Identity_Mode (x1)=1, two kinds of situations: a kind of situation: TV system discovery foreground application is music application, such as: QQ music: Media_ Identity_Mode (x1)=1, another situation: TV system discovery foreground application is not music application, such as: Media_ Name (x2)=com.kugo.TT (KuGoo magazine), Media_Identity_Mode (x2)=0;
Process six: a kind of situation: TV system discovery foreground application is music application, abutment body before TV system discovery media application The packet name (QQ music) of part module is foreground application, and system, which is opened, applies dynamic memory detecting module, and system reads each application The maximum value of memory carries out being averaged for memory according to multiple applications with the entire region of memory of TV system, such as: input 2 is answered With being QQ music respectively, KuGoo music, TV system is interior in total to save as 512MB, obtains the averagely interior of foreground application and saves as 256MB;
The application number of input: Input_num_ap (x1)=2
The memory sum of TV system: TV_RAM (x1)=256M
It is total using average memory:
TV_AVE_RAM=TV_RAM (x1)/Input_num_ap (x1)=256/2=256M.
It is specific:
1, system, which obtains, applies memory headroom size itself,
Such as: QQ music memory maximum demand 50MB,
KuGoo music memory maximum demand 1000MB, if it is greater than the size that application needs, overabsorption is to QQ, KuGoo application It causes to waste.
2, system obtains the space size in total of physical memory, is dynamically averaging according to Video Applications number, and system obtains The memory size of the application of mean allocation, such as: multiple QQ music applications amount to 10,
TV_AVE_RAM=TV_RAM (x1)/Input_num_ap (x1)=512/10=51MB.
3, system compares the value of the memory applications of physical allocation with using memory size itself, and physical application space is big In application memory space, default application maximum memory size.Such as: QQ music memory maximum demand 50MB is distributed in time 51MB finally sets QQ music physical memory 50MB.
Process eight: another situation: TV system discovery foreground application is not music application, TV system discovery music (KuGoo Music) application is background application, system starting memory moves router-module, and system is read using dynamic memory detecting module Value is with after the half of background application downloading data, and the data transmission that backstage is downloaded is into router memory block 33, system Periodically 5 minutes, router memory space can only save the maximum memory for saving data of rear end time longest.Such as: routing is deposited Control 512MB is stored up, 5 minutes arrive, and router saves 3 songs of KuGoo music application, likes you 10,000 years, and ice rain, the heart only has you, MP3 music data at this time keeps in router, and router finds TV system background there are also other media applications, and router is sent The internal storage data order for stopping receiving application, does not receive the data of other application, and router also sends the finger for stopping other application It enables to TV.
Nine: TV system of process opens routing and closes background application module, and route system is automatically big by the running background time Application in 5 minutes is closed, and the data that TV is deposited at end empty, other background applications are out of service, and it is slow that TV system releases backstage The data deposited, such as: TV system receives the order of routing, out of service 1,000 applications harked, the sounds such as MP3 to empty the cache Happy data.
Ten: TV system of process, which is opened, reminds backstage media display module, and TV system is aobvious according to the background application title of closing Show that display is from the background in the title of the application of operation in the upper right corner, display caching to the big of router in the upper left corner of foreground application It is small.Such as: display closes 1,000 and harks that music, display KuGoo music are cached to 3 song of router, like you 10,000 years, ice rain, The heart only has you.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (8)

1. a kind of storage controlling method of application cache data, which is characterized in that comprising steps of
When detecting the application switching instruction based on terminal, is instructed according to the application switching and complete application switching operation, It obtains in the terminal running background using and by the application after completing application switching operation labeled as the first application;
In first application by preset kind in application, extracting the data that first application caches;
The cached data are saved into the router memory module communicated to connect with the terminal, in front stage operation Application request described in first application loaded file data when, directly extract the text from the router memory module Number of packages evidence;
Screening in running background is more than the data cached of the application of preset time;
By the data cached deletion, all applications in running background are closed.
2. the storage controlling method of application cache data as described in claim 1, which is characterized in that in the acquisition described Terminal running background application and by this application labeled as first application the step of after, further includes:
It obtains in the application of the terminal front stage operation after completion application switching operates and applies the application labeled as second;
It is preset kind in application, each maximum value using committed memory of reading terminals in second application;
The memory headroom of the terminal is equally assigned into the memory of number corresponding with number of applications according to read maximum value Region, for the corresponding data of each application memory.
3. the storage controlling method of application cache data as claimed in claim 1 or 2, which is characterized in that described close is owned After the application of running background the step of, further includes:
The identification information for closing application is obtained, the interface display that the identification information is applied in current foreground operation.
4. the storage controlling method of application cache data as claimed in claim 1 or 2, which is characterized in that described by the institute The data of caching save after the step into the router memory module communicated to connect with the terminal, further includes:
Determine the value saved to the occupied memory space of data of router memory module;
The value of occupied memory space is shown at the interface of current foreground operation application.
5. a kind of storage control device of application cache data characterized by comprising
Module is obtained, for completing to answer according to application switching instruction when detecting the application switching instruction based on terminal With handover operation, the application in the terminal running background is obtained after completing application switching operation and by the application labeled as the One application;
Extraction module, for being applied by preset kind described first in application, extracting described first using the data cached;
Preserving module, for saving the cached data to the router memory module communicated to connect with the terminal In, when with described in the application request in front stage operation first using the file data loaded, directly stored from the router The file data is extracted in module;
Screening module, it is data cached more than the application of preset time in running background for screening;
Processing module, for closing all applications in running background for the data cached deletion.
6. the storage control device of application cache data as claimed in claim 5, which is characterized in that the application cache data Storage control device further include: read module and distribution module,
The acquisition module is also used to obtain after completing application switching operation in the application of the terminal front stage operation and answers this With labeled as the second application;
The read module, for being preset kind in application, reading terminals are each using committed memory in second application Maximum value;
The distribution module, for being equally assigned into the memory headroom of the terminal according to read maximum value and applying number The region of memory of corresponding number is measured, for the corresponding data of each application memory.
7. the storage control device of application cache data as claimed in claim 5, which is characterized in that the application cache data Storage control device further include display module,
The acquisition module is also used to obtain the identification information for closing application;
The display module, the interface display for applying the identification information in current foreground operation.
8. data cached storage control device the use as claimed in claim 7, which is characterized in that the application cache data Storage control device further include:
Determining module, for determining the value saved to the occupied memory space of data of router memory module;
The display module is also used to show the value of occupied memory space at the interface of current foreground operation application.
CN201510909773.6A 2015-12-09 2015-12-09 The storage controlling method and device of application cache data Active CN105516787B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510909773.6A CN105516787B (en) 2015-12-09 2015-12-09 The storage controlling method and device of application cache data
PCT/CN2016/084773 WO2017096771A1 (en) 2015-12-09 2016-06-03 Method and device for storage control of application cache data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510909773.6A CN105516787B (en) 2015-12-09 2015-12-09 The storage controlling method and device of application cache data

Publications (2)

Publication Number Publication Date
CN105516787A CN105516787A (en) 2016-04-20
CN105516787B true CN105516787B (en) 2019-07-12

Family

ID=55724374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510909773.6A Active CN105516787B (en) 2015-12-09 2015-12-09 The storage controlling method and device of application cache data

Country Status (2)

Country Link
CN (1) CN105516787B (en)
WO (1) WO2017096771A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105516787B (en) * 2015-12-09 2019-07-12 深圳Tcl数字技术有限公司 The storage controlling method and device of application cache data
CN106385430B (en) * 2016-08-23 2019-10-08 北京小米移动软件有限公司 The management method and device of communication message
CN106776378A (en) * 2016-12-05 2017-05-31 宇龙计算机通信科技(深圳)有限公司 It is a kind of to clear up data cached method and device
CN107148056B (en) * 2017-04-26 2020-06-05 上海斐讯数据通信技术有限公司 Data transmission method and system for synchronous server type wireless router
CN107315658A (en) * 2017-06-26 2017-11-03 珠海市魅族科技有限公司 A kind of data back up method and device, computer installation and readable storage medium storing program for executing
CN107395705B (en) * 2017-07-13 2021-03-26 迈普通信技术股份有限公司 APP downloading method and gateway equipment
CN111352633B (en) * 2020-02-24 2020-12-11 腾讯科技(深圳)有限公司 Resource downloading method and device of application program, terminal and storage medium
CN111488123B (en) * 2020-04-07 2022-11-04 Tcl移动通信科技(宁波)有限公司 Storage space management method and device, storage medium and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546532A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and system for shared data in application
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal
CN104615494A (en) * 2015-01-24 2015-05-13 陆俊 Mobile terminal and application switching method
CN104885055A (en) * 2014-03-19 2015-09-02 华为终端有限公司 Method and device for application data synchronization

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101922607B1 (en) * 2011-04-25 2018-11-27 이카노스 커뮤니케이션스, 인크. Method and apparatus for caching in a networked environment
CN103581267A (en) * 2012-08-02 2014-02-12 北京千橡网景科技发展有限公司 Method and device for directionally caching data of mobile terminal system
CN104750465A (en) * 2013-12-27 2015-07-01 中国科学院沈阳自动化研究所 Android based intelligent router
CN105516787B (en) * 2015-12-09 2019-07-12 深圳Tcl数字技术有限公司 The storage controlling method and device of application cache data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546532A (en) * 2013-07-02 2014-01-29 Tcl集团股份有限公司 Method and system for shared data in application
CN104885055A (en) * 2014-03-19 2015-09-02 华为终端有限公司 Method and device for application data synchronization
CN104615494A (en) * 2015-01-24 2015-05-13 陆俊 Mobile terminal and application switching method
CN104618503A (en) * 2015-02-15 2015-05-13 西安酷派软件科技有限公司 Inter-system data synchronization and sharing method and device as well as terminal

Also Published As

Publication number Publication date
WO2017096771A1 (en) 2017-06-15
CN105516787A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
CN105516787B (en) The storage controlling method and device of application cache data
CN110505675B (en) Network connection method and device, storage medium and communication terminal
CN104699218A (en) Task management method and equipment
CN107329559A (en) A kind of application control method, device, terminal and storage medium
CN106201683A (en) A kind of manage the method for application, device and terminal
CN102521275A (en) Classifying method, classifying device and a terminal of application program
CN205430501U (en) Mobile terminal web advertisement video and positive video seamless handover device
CN107241771A (en) Method for switching network, mobile terminal and computer-readable recording medium
CN104778222A (en) Media library establishing and updating method on basis of USB (Universal Serial Bus) storage equipment
CN103197962B (en) Multi-process state switching method and device
WO2020220971A1 (en) File loading method and apparatus, electronic device, and storage medium
CN110289993A (en) A kind of connection pool management method, apparatus, equipment and adapting system
CN100378663C (en) Method, system and module for dynamic downloading of applied programe to user identification
CN104580506B (en) Acquisition methods, cloud server and the client of offline map datum
CN109753348A (en) The management-control method and terminal of background application
CN105101171A (en) Terminal network parameter configuration method, and terminal
CN108282236A (en) The method and terminal device of preloaded content displaying
CN108882325A (en) Method for switching network, network switching device and mobile terminal
CN104837187A (en) Energy-saving method and device of wireless access equipment
CN103631616A (en) Method and system for fast loading and caching of picture
CN105262890A (en) Information update control system and method for applications on portable electronic device
CN104572485B (en) The distribution method and device of dual system common memory
CN107066295A (en) A kind of method and apparatus for the plug-in unit that terminal network application is loaded based on browser
CN106815283A (en) Data processing method, device and electronic equipment
CN106792818A (en) Data network changing method, device and terminal device based on network speed

Legal Events

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