CN109885260A - The method and apparatus of storing data for electric terminal - Google Patents

The method and apparatus of storing data for electric terminal Download PDF

Info

Publication number
CN109885260A
CN109885260A CN201910144528.9A CN201910144528A CN109885260A CN 109885260 A CN109885260 A CN 109885260A CN 201910144528 A CN201910144528 A CN 201910144528A CN 109885260 A CN109885260 A CN 109885260A
Authority
CN
China
Prior art keywords
electric terminal
data
memory space
application
user
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.)
Granted
Application number
CN201910144528.9A
Other languages
Chinese (zh)
Other versions
CN109885260B (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.)
Samsung Guangzhou Mobile R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Guangzhou Mobile R&D Center
Samsung Electronics 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 Samsung Guangzhou Mobile R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Guangzhou Mobile R&D Center
Priority to CN201910144528.9A priority Critical patent/CN109885260B/en
Publication of CN109885260A publication Critical patent/CN109885260A/en
Application granted granted Critical
Publication of CN109885260B publication Critical patent/CN109885260B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Telephone Function (AREA)

Abstract

A kind of method and apparatus of storing data for electric terminal is provided.It needs the described method includes: determining whether to apply to electric terminal storing data;When determining has using needing, determine whether the size of the residual memory space of electric terminal meets preset condition;When determination meets the preset condition, specific data in memory space are deleted, and/or a part of running memory of electric terminal is used to store the data to be stored of the application.According to the method and equipment, when the memory space inadequate of electric terminal, also data to be stored can be stored or be opened and used application in time.

Description

The method and apparatus of storing data for electric terminal
Technical field
All things considered of the present invention is related to electric terminal field, more particularly, is related to a kind of storage for electric terminal The method and apparatus of data.
Background technique
In people's lives, electric terminal is (for example, mobile communication terminal, tablet computer, wearable device, personal meter Calculation machine etc.) have become indispensable a part.When the memory space inadequate of electric terminal, need to store access limit Using can be played when being opened or carry out the file operation operation of file (for example, write-in) frame prompt user storage space it is insufficient, Do not allow to fail using the application or file operation, in addition, can also prompt and user is guided to clear up memory space to deposit in cleaning Normal use application after storage space.However, cleaning memory space usually requires to expend the regular hour, this makes user difficult To cope with some emergencies, for example, it may be possible to miss the Best Times of the best opportunity, downloading taken pictures, fail in time send disappear Breath etc..
Summary of the invention
Exemplary embodiment of the present invention is to provide a kind of method and apparatus of storing data for electric terminal, Be able to solve it is of the existing technology when the memory space inadequate of electric terminal, can not timely use application or carry out file behaviour The problem of making.
An exemplary embodiment of the present invention provides a kind of method of storing data for electric terminal, wherein institute The method of stating, which has comprised determining whether to apply, to be needed to electric terminal storing data;When determining has using needing, electronics end is determined Whether the size of the residual memory space at end meets preset condition;When determination meets the preset condition, memory space is deleted Interior specific data, and/or a part of running memory of electric terminal is used to store the data to be stored of the application.
Optionally it is determined that whether have using needs includes: to work as to receive for opening to the step of electric terminal storing data When the dynamic user's operation applied or the user's operation of the application for being had been started up in front stage operation, determines to have and apply needs to electricity Sub- terminal storage data;And/or when receiving using initiating for writing the write operation of data to electric terminal, determination has Using needing to electric terminal storing data.
Optionally, the preset condition include among following item at least one of: the residual memory space it is big slight It is greater than the size of the residual memory space, starting in the first preset threshold, the size for the data for needing to store to electric terminal The size of the free memory of the application or the electric terminal required by the application that front stage operation has been started up is big In the size of the residual memory space.
Optionally, the specific data include at least one among following item: the marked deletable number of user According to, to have stored duration more than the marked deletable data of user of scheduled duration, the file of specified type, size be more than the The file of the specified type of two preset thresholds, the file for specifying the specified type applied have stored duration more than scheduled duration The file of specified type.
Optionally, the memory space includes the memory space of the storage equipment built in electric terminal.
Optionally it is determined that whether have using needs includes: to work as to receive using hair to the step of electric terminal storing data When that rises is used to write the write operation of data to electric terminal, determines to have and apply needs to electric terminal storing data, wherein is described Method further include: in response to the write operation, transported being stored the data being written into described a part by the write operation Row memory.
Optionally, the method also includes: remind user in time will storage to a part of running memory data shifting Move the memory space of electric terminal.
Optionally, the method also includes: in response to for data to be moved to storage from a part of running memory The data are moved to memory space from a part of running memory by the user's operation in space.
Optionally it is determined that whether have using needs includes: to work as to receive for opening to the step of electric terminal storing data When the dynamic user's operation applied or the user's operation of the application for being had been started up in front stage operation, determines to have and apply needs to electricity Sub- terminal storage data, wherein deleting in memory space specific data and/or by a part of running memory of electric terminal After the step of storing the data to be stored of the application, the method also includes: in response to for starting application User's operation, start the application;Alternatively, in response to the user's operation of the application for being had been started up in front stage operation, It is applied described in front stage operation.
In accordance with an alternative illustrative embodiment of the present invention, a kind of equipment of storing data for electric terminal is provided, In, the equipment comprises determining that unit, it is determined whether has and applies needs to electric terminal storing data;Space determination unit, when Determining has using when needing, and determines whether the size of the residual memory space of electric terminal meets preset condition;Space setting is single Member, when determine meet the preset condition when, delete specific data in memory space, and/or by a part of electric terminal Running memory is used to store the data to be stored of the application.
Optionally, when receiving the user's operation for starting application or application for having been started up in front stage operation When user's operation, determination unit, which determines to have to apply, to be needed to electric terminal storing data;And/or initiation is applied when receiving When for writing the write operation of data to electric terminal, determination unit, which determines to have to apply, to be needed to electric terminal storing data.
Optionally, the preset condition include among following item at least one of: the residual memory space it is big slight It is greater than the size of the residual memory space, starting in the first preset threshold, the size for the data for needing to store to electric terminal The size of the free memory of the application or the electric terminal required by the application that front stage operation has been started up is big In the size of the residual memory space.
Optionally, the specific data include at least one among following item: the marked deletable number of user According to, to have stored duration more than the marked deletable data of user of scheduled duration, the file of specified type, size be more than the The file of the specified type of two preset thresholds, the file for specifying the specified type applied have stored duration more than scheduled duration The file of specified type.
Optionally, the memory space includes the memory space of the storage equipment built in electric terminal.
Optionally it is determined that unit is determined when receiving using initiating for writing the write operation of data to electric terminal Have using needing to electric terminal storing data, wherein the equipment further include: cache manager, in response to the write operation, The data being written into will be stored to a part of running memory by the write operation.
Optionally, the equipment further include: reminding unit reminds user that a part of running memory is arrived in storage in time Data be moved to the memory space of electric terminal.
Optionally, the equipment further include: Data Movement Unit, in response to being used for data out of described a part operation The user's operation for being moved to memory space is deposited, the data are moved to memory space from a part of running memory.
It receives for starting the user's operation applied or optionally it is determined that unit is worked as being had been started up in front stage operation Application user's operation when, determining has using needing to electric terminal storing data, wherein in space, setting unit deletion is deposited It stores up specific data in space and/or a part of running memory of electric terminal is used to store the to be stored of the application After data, the equipment further include: running unit starts the application in response to the user's operation for starting application;Or Person applies described in the front stage operation in response to the user's operation of the application for having been started up in front stage operation.
In accordance with an alternative illustrative embodiment of the present invention, a kind of computer-readable storage being stored with computer program is provided Medium, wherein the storing data for being used for electric terminal as described above is realized when the computer program is executed by processor Method.
In accordance with an alternative illustrative embodiment of the present invention, a kind of electric terminal is provided, wherein the electric terminal includes: Processor;Memory is stored with computer program, when the computer program is executed by processor, realizes as described above The method of storing data for electric terminal.
In the method and apparatus of the storing data according to an exemplary embodiment of the present invention for electric terminal, work as determination When having using needing to the memory space inadequate of electric terminal storing data and electric terminal, it is automatically deleted specific in memory space Data, and/or a part of running memory of electric terminal is used to store data to be stored, in time will be to be stored Data are stored or are opened and used application, and the user experience is improved.
Part in following description is illustrated into the other aspect and/or advantage of present general inventive concept, there are also one Dividing will be apparent by description, or can learn by the implementation of present general inventive concept.
Detailed description of the invention
By below with reference to be exemplarily illustrated embodiment attached drawing carry out description, exemplary embodiment of the present it is upper Stating will become apparent with other purposes and feature, in which:
Fig. 1 shows the flow chart of the method for the storing data according to an exemplary embodiment of the present invention for electric terminal;
Fig. 2 shows the examples of the deletable file of label according to an exemplary embodiment of the present invention;
Fig. 3 to Fig. 5 shows the method for the storing data for electric terminal of an exemplary embodiment of the present invention Example;
Fig. 6 shows showing for the method for the storing data for electric terminal in accordance with an alternative illustrative embodiment of the present invention Example;
Fig. 7 shows the stream of the method for the storing data for electric terminal in accordance with an alternative illustrative embodiment of the present invention Cheng Tu;
Fig. 8 shows the block diagram of the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal.
Specific embodiment
It reference will now be made in detail the embodiment of the present invention, examples of the embodiments are shown in the accompanying drawings, wherein identical mark Number identical component is referred to always.It will illustrate the embodiment, by referring to accompanying drawing below to explain the present invention.
Fig. 1 shows the flow chart of the method for the storing data according to an exemplary embodiment of the present invention for electric terminal. The method can be realized by computer program.For example, the method can be held by the application being mounted in electric terminal Row, or pass through electric terminal operating system in the function program realized execute.As an example, the electric terminal can be with It is mobile communication terminal (for example, smart phone), intelligent wearable device (for example, smartwatch), personal computer, plate electricity The electric terminals such as brain, game machine, digital multimedia player.
Referring to Fig.1, in step S101, it is determined whether have and apply needs to electric terminal storing data.
As an example, can be when receiving for start the user's operation using (that is, open application), determining has using need to It will be to electric terminal storing data.For example, can be when receiving the user's operation for starting the application for needing access limit, really Surely have to apply and need to electric terminal storing data.For example, it is desired to which the application of access limit may need the residue of electric terminal Memory space, which reaches a certain size, normally to be started,, can due in operational process after its starting for example, wechat application It can need therefore, free memory to be needed to reach a certain size to electric terminal storing data, so that it can run In the process in real time to electric terminal storing data, to guarantee that it can be operated normally.
As another example, it can be determined when receiving the user's operation of the application for having been started up in front stage operation Have to apply and need to electric terminal storing data.Here, the application having been started up can be the application in running background.Example Such as, can be when receiving the user's operation of the application for needing access limit for having been started up in front stage operation, determination is answered With needing to electric terminal storing data.For example, the application for needing access limit having been started up may need electric terminal Residual memory space reaches a certain size could be normally in front stage operation.
As another example, it can be determined when receiving using initiating for writing the write operation of data to electric terminal Have to apply and need to electric terminal storing data.For example, when being taken pictures using camera applications, camera applications can be initiated for electricity The operation (that is, write operation for writing data to electric terminal) of the image of sub- terminal storage shooting;It is answered when by instant messaging When with receiving message from other contact persons, instant messaging application can initiate the operation for storing received message to electric terminal (that is, write operation for writing data to electric terminal);When downloading file from network by the application for downloading file, use The operation for the file to electric terminal storage downloading can be initiated (that is, for writing to electric terminal in the application of downloading file The write operation of data).
It should be understood that can also determine whether to store number to electric terminal using needs by other modes appropriate According to.
When step S101, which is determined, to be had using needing to electric terminal storing data, step S102 is executed, determines electronics Whether the size of the residual memory space of terminal meets preset condition.
As an example, the memory space of electric terminal may include the memory space of the storage equipment built in electric terminal, phase Ying Di, the residual memory space of electric terminal may include the residual memory space of the storage equipment built in electric terminal, here, electricity The included storage equipment of storage equipment, that is, fuselage of sub- terminal built-in, for example, it may be electric terminal fuselage memory (for example, The read-only memory (ROM) of electric terminal).
As another example, the memory space of electric terminal may include storage equipment built in electric terminal and external deposit Store up the memory space of equipment, correspondingly, the residual memory space of electric terminal may include storage equipment built in electric terminal and The residual memory space of external storage equipment, for example, the external storage equipment of electric terminal may include storage card etc..
As an example, the preset condition may include among following item at least one of: the residual memory space it is big Less than the first preset threshold, need to electric terminal store data size be greater than the residual memory space size, Start the big of the free memory of the application or the electric terminal required by the application that front stage operation has been started up The small size greater than the residual memory space.For example, described need the data stored to electric terminal to can be by step The data that the write operation of rapid S101 detection will be written into.For example, starting the available storage of electric terminal required by the application The size in space is i.e.: the application can normally start the size for needing the free memory of electric terminal to reach, on foreground Run the size of the free memory of electric terminal required by the application having been started up i.e.: the application can be normal From being switched to the size for needing the free memory of electric terminal to reach in front stage operation in running background.
When step S102 is determined and met the preset condition, step S103 is executed, the storage for deleting electric terminal is empty Interior specific data, and/or a part of running memory of electric terminal is used to store the number to be stored of the application According to.
So that after executing step S103, the data to be stored that can be used for storing the application of electric terminal The size in space (that is, including current residual memory space and/or a part of running memory) no longer meets described default Condition, for example, the size in the space is greater than or equal to the first preset threshold, and/or the size in the space is greater than or equal to Need to electric terminal store data size, and/or the space size be greater than or equal to start it is described application or The size of the free memory of electric terminal required by the application that front stage operation has been started up, thus the application energy It is enough to operate normally.
Here, the running memory of electric terminal can refer to used memory when electric terminal operation program, for example, depositing at random Access to memory (RAM).
As an example, the data to be stored of the application may is that after performing step S103, because of Enough spaces carry out data storage, the normal starting or described from being switched to after front stage operation in running background of application The data stored using needs;Alternatively, the data that will be written by the write operation.
As an example, the specific data may include at least one among following item: user is marked to delete Data, to have stored duration super more than the marked deletable data of user of scheduled duration, the file of specified type, size Crossing the file of the specified type of the second preset threshold, the file of the specified specified type applied, having stored duration is more than pre- timing The file of long specified type.
As an example, can be when storing data is (for example, it is more than the second preset threshold that user, which downloads, receives or have taken size, File) when, remind user the data can be marked, for example, be labeled as deletable data.For example, described specified Type may include the types such as video.
Fig. 2 shows the examples of the deletable file of label according to an exemplary embodiment of the present invention.As shown in Fig. 2, can be In user interface for showing " my file ", showing the size of each file or highlighting size is more than the second default threshold It is worth the file of (for example, 500MB), alternatively, sequencing display file can be carried out according to size or the file stored time of file, it can It is deletable file by file mark in response to user's operation, it is also possible to provide be marked as deletable file can The deleted time (for example, can be deleted after 1 month).
As an example, being used to store the data to be stored of the application for a part of running memory of electric terminal Step can include: a part of running memory is marked off from the running memory of electric terminal for storing being deposited for the application The data of storage, it is tight when for ROM deficiency to realize running memory (for example, RAM) as the extension of memory space (for example, ROM) It is anxious to use.
It should be understood that from a part is marked off in the running memory of electric terminal for after serving as memory space use, The normal operation of the system of electric terminal should not be influenced, as an example, a part of running memory can be current all available A part (for example, 50%) of running memory, and/or, in addition to a part of running memory, currently available running memory Not less than a certain size (for example, 1GB), uses, avoided since running memory can be used so that the system of electric terminal operates normally The case where reducing, system caused to be unable to operate normally.
As an example, the storage that can first delete electric terminal is empty when step S102 is determined and met the preset condition The interior specific data, after deleting the specific data, the size of the residual memory space of electric terminal is still full When the foot preset condition, a part of running memory of electric terminal can be used to store the number to be stored of the application According to.Alternatively, meeting the preset condition when determining in step S102, and without the specific number in the memory space of electric terminal When according to that can clear up, a part of running memory of electric terminal can be used to store the data to be stored of the application.
As an example, step S101 may include working as the write operation for being used to write data to electric terminal received using initiating When, determine have using need to electric terminal storing data, step S103 may include when determine meet the preset condition when, will A part of running memory of electric terminal is used to store the data to be stored of the application, wherein example according to the present invention The method of the storing data for electric terminal of property embodiment may also include that after step s 103, write behaviour in response to described Make, will be stored the data being written into a part of running memory by the write operation.As an example, RAM can be passed through Caching mechanism by the data to be stored of application write-in RAM caching.
As another example, step S101 may include when the user's operation received for starting application or being used on foreground When running the user's operation for the application having been started up, determines to have and apply needs to electric terminal storing data, wherein according to this hair The method of the storing data for electric terminal of bright exemplary embodiment may also include that after step s 103, in response to In the user's operation of starting application, start the application;Alternatively, in response to the use of the application for being had been started up in front stage operation Family operation, is applied described in the front stage operation.Due to after executing step S103, having guaranteed normally to start or transported on foreground Therefore the row application can start or apply described in the front stage operation.Correspondingly, if step S103 includes by electric terminal A part of running memory be used to store the data to be stored of the application, then this mistake applied described in the front stage operation Cheng Zhong can will pass through the write operation when receiving the write operation for being used to write data to electric terminal that the application is initiated By the data being written into storage to a part of running memory.
As an example, the method for the storing data according to an exemplary embodiment of the present invention for electric terminal can also wrap It includes: reminding user that storage is moved to the memory space of electric terminal to the data of a part of running memory in time, to stay There are enough running memories to run program for electric terminal, and stores the number for arriving a part of running memory after preventing power-off According to loss.For example, can when exit the application or from the application switching described in front stage operation be described in the running background in application, Remind user that storage is moved to the memory space of electric terminal to the data of a part of running memory in time.For example, can When exiting the application or be described in the running background from the application switching described in front stage operation in application, to remind user to store empty Between it is insufficient, ask user to clear up memory space, and memory space is cleared up in the operation for clearing up memory space in response to user, and When the size of residual memory space is greater than or equal to the size for the data for having stored a part of running memory after cleaning, Without user's operation, data are moved to memory space from a part of running memory automatically.
As an example, the method for the storing data according to an exemplary embodiment of the present invention for electric terminal can also wrap Include: in response to the user's operation for data to be moved to memory space from a part of running memory, by the data from A part of running memory is moved to memory space.
In addition, as an example, when step S103 include delete electric terminal memory space in specific data when, according to The method of the storing data for electric terminal of exemplary embodiment of the present may also include that after step S30, will pass through The number that the write operation (for example, described apply the write operation generated during this front stage operation) of the application will be written into According to the corresponding position of the memory space of storage to electric terminal.For example, when step S103 includes the storage for deleting electric terminal Specific data in space, and a part of running memory of electric terminal is used to store the data to be stored of the application When, preferentially the data being written into will can be stored into the corresponding positions to the memory space of electric terminal by the write operation of the application Set place.
As an example, when step S103 includes specific data in the memory space for delete electric terminal, according to this hair The method of the storing data for electric terminal of bright exemplary embodiment may also include that in the memory space for deleting electric terminal When the interior specific data, user can be prompted or user is not prompted to delete the specific data and/or be deleted The specific data.
Fig. 3 to Fig. 5 shows the method for the storing data for electric terminal of an exemplary embodiment of the present invention Example.As shown in figure 3, when being taken pictures using camera applications, when the residual memory space of electric terminal is not enough to store shooting When photo, a part of running memory of electric terminal can be used to store captured photo, the photo of shooting is stored to institute State in a part of running memory, and as shown in figure 3, display (for example, flashing display) for prompt to store the image of shooting to Mark in running memory, also, when user enters photograph album in application, being saved to the image of running memory (for example, in Fig. 4 Preceding 4 images) can be highlighted, in addition, as shown in figure 5, when user selection be saved to the image of running memory when, can The option for showing " deletion " and " saving to memory space " may be in response to the user behaviour that selection " saves to memory space " option Make, which is moved to memory space from running memory.An exemplary embodiment of the present invention, free memory not When sufficient, allow user first to store the image of shooting using running memory, wait and clear up memory space again at one's leisure, and by shooting Image is moved to memory space from running memory and is saved, so that user will not miss best photo opportunity.
Fig. 6 shows showing for the method for the storing data for electric terminal in accordance with an alternative illustrative embodiment of the present invention Example.As shown in fig. 6, when receiving the user's operation for new files, and the residual memory space of electric terminal is not enough to deposit When the file that storage creates, a part of running memory of electric terminal can be used to store newly-built file, newly-built file is deposited Storage has been stored into a part of running memory, and as shown in fig. 6, can pop up and be used to indicate newly-built file to running memory In notice can show the cache file folder of running memory when receiving user and clicking the operation of corresponding " checking " control, Wherein, cache file folder is for storing the file for being saved to running memory due to memory space inadequate, in addition, may be in response to Selection " saves to memory space " user's operation of option, and corresponding file is moved to memory space from running memory, or The user's operation of response selection " deletion " option, corresponding file is deleted from running memory.In addition, can also user be prompted to deposit File of the storage under cache file folder, will be lost, also, work as and use after electric terminal power-off (for example, after shutting down or restarting) When family selection " saves to memory space " option, if current residual storage space is insufficient, user can be prompted to clear up memory space It is saved again afterwards.
An exemplary embodiment of the present invention can be needed when determining to have to apply to electric terminal storing data and electronics When the memory space inadequate of terminal, specific data in memory space are automatically deleted, and/or a part of electric terminal is run Memory, to carry out read-write operation relevant to the application, is spent at once for storing data to be stored without user The memory space of time-consuming manual cleaning electric terminal is (for example, exit storage of the application interface currently shown to electric terminal Space is cleared up, and the application interface before returning again to after cleaning continues operation), so that user can smoothly make With the application for needing memory space, for example, in case of emergency or when being carried out continuously write operation (for example, continuously taking pictures), it can The data to be stored generated when application will be used to be stored or opened and used application in time, avoided missing using application execution The best opportunity of operation or urgently needed moment etc..
Fig. 7 shows the stream of the method for the storing data for electric terminal in accordance with an alternative illustrative embodiment of the present invention Cheng Tu.
Referring to Fig. 7, in step S201, detect whether to receive using initiating to write behaviour for write data to electric terminal Make.
Electronics is determined when receiving using initiating for writing the write operation of data to electric terminal in step S202 Whether the size of the residual memory space of terminal meets preset condition.As an example, the preset condition may include following item it At least one of in: the size for the data being written into is greater than to the size of the residual memory space by the write operation.
When step S202 is determined and met the preset condition, step S203 is executed, determines in memory space whether deposit Specific data are stored up.
When step S203 is determined and stored the specific data in memory space, step S204 is executed, deletes institute State specific data.
It should be understood that whole specific data can not be deleted, part can be only deleted according to the priority of specific data Specific data so that residual memory space is unsatisfactory for the preset condition after deleting the specific data of the part, For example, the size of residual memory space is greater than or equal to the size for the data being written into through the write operation.For example, more early The priority of stored specific data is higher.
After step s 204, step S205 is executed, it is described to determine whether the size of current residual memory space meets Preset condition.
When step S205 is determined and met the preset condition, step S206 is executed, a part of electric terminal is transported Row memory is for storing the data that will be written by the write operation.
When step S203 is determined in memory space without storing the specific data, step S206 is executed.
After step S206, step S207 is executed, is determined in current residual memory space and a part operation Whether the size deposited meets the preset condition.
When determination still meets the preset condition in step S207, it can prompt user can not due to memory space inadequate Execute the write operation.
When in step S207 determine be unsatisfactory for the preset condition when, execute step S208, to pass through the write operation The data being written into are stored.
When in step S203 determine be unsatisfactory for the preset condition when, execute step S208, to pass through the write operation The data being written into are stored.
When in step S205 determine be unsatisfactory for the preset condition when, execute step S208, to pass through the write operation The data being written into are stored.
Fig. 8 shows the block diagram of the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal.Such as Shown in Fig. 8, the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal comprise determining that unit 10, Space determination unit 20, space setting unit 30.
Particularly, determination unit 10 has been used to determine whether to apply and need to electric terminal storing data.
As an example, can be when receiving for starting the user's operation using (that is, opening application), determination unit 10 is true Surely have to apply and need to electric terminal storing data.For example, the use received for starting the application for needing access limit can be worked as When family operates, determination unit 10, which determines to have to apply, to be needed to electric terminal storing data.For example, it is desired to which the application of access limit can The residual memory space of electric terminal can be needed, which to reach a certain size, normally to be started, for example, wechat application, due to opening at it In operational process after dynamic, it may be necessary to electric terminal storing data, therefore, free memory be needed to reach certain big It is small, so that it can be in the process of running in real time to electric terminal storing data, to guarantee that it can be operated normally.
As another example, it can be determined when receiving the user's operation of the application for having been started up in front stage operation Unit 10, which determines to have to apply, to be needed to electric terminal storing data.Here, the application having been started up, which can be, transports on backstage Capable application.For example, can be when the user's operation for receiving the application for needing access limit for having been started up in front stage operation When, determination unit 10, which determines to have to apply, to be needed to electric terminal storing data.For example, what is had been started up needs answering for access limit It could be normally in front stage operation with the residual memory space of electric terminal may be needed to reach a certain size.
As another example, it can be determined when receiving using initiating for writing the write operation of data to electric terminal Unit 10, which determines to have to apply, to be needed to electric terminal storing data.For example, camera applications can be sent out when being taken pictures using camera applications Play the operation (that is, write operation for writing data to electric terminal) for the image to electric terminal storage shooting;When passing through When instant messaging application receives message from other contact persons, instant messaging application can be initiated received for storing to electric terminal The operation (that is, write operation for writing data to electric terminal) of message;When by for download file application under network Publish papers part when, for download file application can initiate for electric terminal storage downloading file operation (that is, for Electric terminal writes the write operation of data).
It needs it should be understood that determination unit 10 can also determine whether to apply by other modes appropriate to electronics end Hold storing data.
Space determination unit 20 is used to determine the size of the residual memory space of electric terminal when determining has using needing Whether preset condition is met.
As an example, the memory space of electric terminal may include the memory space of the storage equipment built in electric terminal, phase Ying Di, the residual memory space of electric terminal may include the residual memory space of the storage equipment built in electric terminal, here, electricity The included storage equipment of storage equipment, that is, fuselage of sub- terminal built-in, for example, it may be electric terminal fuselage memory (for example, The read-only memory (ROM) of electric terminal).
As another example, the memory space of electric terminal may include storage equipment built in electric terminal and external deposit Store up the memory space of equipment, correspondingly, the residual memory space of electric terminal may include storage equipment built in electric terminal and The residual memory space of external storage equipment, for example, the external storage equipment of electric terminal may include storage card etc..
As an example, the preset condition may include among following item at least one of: the residual memory space it is big Less than the first preset threshold, need to electric terminal store data size be greater than the residual memory space size, Start the big of the free memory of the application or the electric terminal required by the application that front stage operation has been started up The small size greater than the residual memory space.For example, described need the data stored to electric terminal to can be and pass through determination The data that the write operation that unit 10 detects will be written into.For example, starting the available storage of electric terminal required by the application The size in space is i.e.: the application can normally start the size for needing the free memory of electric terminal to reach, on foreground Run the size of the free memory of electric terminal required by the application having been started up i.e.: the application can be normal From being switched to the size for needing the free memory of electric terminal to reach in front stage operation in running background.
Space setting unit 30 is used to delete specific data in memory space when determination meets the preset condition, And/or a part of running memory of electric terminal to be used to store the data to be stored of the application.
So that deleting specific data in memory space in space setting unit 30, and/or by a part of electric terminal After running memory is used to store the data to be stored of the application, electric terminal can be used for storing the application general The size in the space (that is, including current residual memory space and/or a part of running memory) of stored data is not Meet the preset condition again, for example, the size in the space is greater than or equal to the first preset threshold, and/or the space The size that size is greater than or equal to the size, and/or the space that need the data stored to electric terminal, which is greater than or equal to, to be opened The size of the free memory of the application or the electric terminal required by the application that front stage operation has been started up is moved, To which the application can operate normally.
Here, the running memory of electric terminal can refer to used memory when electric terminal operation program, for example, depositing at random Access to memory (RAM).
As an example, the data to be stored of the application, which may is that, deletes memory space in space setting unit 30 Interior specific data, and/or a part of running memory of electric terminal is used to store the data to be stored of the application Later, data storage is carried out because of enough spaces, the application is normal to be started or be switched to from running background preceding The data that the application needs to store after platform operation;Alternatively, the data that will be written by the write operation.
As an example, the specific data may include at least one among following item: user is marked to delete Data, to have stored duration super more than the marked deletable data of user of scheduled duration, the file of specified type, size Crossing the file of the specified type of the second preset threshold, the file of the specified specified type applied, having stored duration is more than pre- timing The file of long specified type.
As an example, can be when storing data is (for example, it is more than the second preset threshold that user, which downloads, receives or have taken size, File) when, remind user the data can be marked, for example, be labeled as deletable data.For example, described specified Type may include the types such as video.
It is used as an example, space setting unit 30 can mark off a part of running memory from the running memory of electric terminal In the data to be stored for storing the application, using realize by running memory (for example, RAM) as memory space (for example, ROM extension), for promptly being used when ROM deficiency.
It should be understood that from a part is marked off in the running memory of electric terminal for after serving as memory space use, The normal operation of the system of electric terminal should not be influenced, as an example, a part of running memory can be current all available A part (for example, 50%) of running memory, and/or, in addition to a part of running memory, currently available running memory Not less than a certain size (for example, 1GB), uses, avoided since running memory can be used so that the system of electric terminal operates normally The case where reducing, system caused to be unable to operate normally.
As an example, when space determination unit 20 determines that space setting unit 30 can be deleted first when meeting the preset condition Except specific data described in the memory space of electric terminal, after deleting the specific data, the residue of electric terminal When the size of memory space still meets the preset condition, a part of running memory of electric terminal can be used to store described answer Data to be stored.Alternatively, when the determination of space determination unit 20 meets the preset condition, and the storage of electric terminal When can clear up in space without the specific data, a part of running memory of electric terminal can be used for by space setting unit 30 Store the data to be stored of the application.
As an example, determination unit 10 can work as the write operation for being used to write data to electric terminal received using initiating When, determining has using needing to electric terminal storing data, space setting unit 30 can when determine meet the preset condition when, A part of running memory of electric terminal is used to store the data to be stored of the application, wherein show according to the present invention The equipment of the storing data for electric terminal of example property embodiment may also include that cache manager (not shown), cache management Device is used to store the data being written into a part operation by the write operation in response to the write operation It deposits.As an example, RAM caching can be written the data to be stored of the application by the caching mechanism of RAM.
As another example, determination unit 10 can work as the user's operation received for starting application or be used to transport on foreground When the user's operation for the application that row has been started up, determines to have and apply needs to electric terminal storing data, wherein according to the present invention The equipment of the storing data for electric terminal of exemplary embodiment may also include that running unit (not shown), running unit It is used for the specific data in the deletion memory space of space setting unit 30 and/or by a part of running memory of electric terminal After the data to be stored for storing the application, in response to the user's operation for starting application, start the application; Alternatively, in response to the user's operation of the application for being had been started up in front stage operation, apply described in the front stage operation.Due in sky Between setting unit 30 delete specific data in memory space and/or a part of running memory of electric terminal be used to store institute After the data to be stored for stating application, guarantees normally to start or apply described in the front stage operation, therefore, can start Or it applies described in the front stage operation.Correspondingly, if a part of running memory of electric terminal is used for by space setting unit 30 The data to be stored of the application are stored, then during this is applied described in the front stage operation, when receiving described answer When with initiation for writing the write operation of data to electric terminal, cache manager can will will be written by the write operation Data are stored to a part of running memory.
As an example, the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal can also wrap It includes: reminding unit (not shown), the data that reminding unit is used to remind user that storage is arrived to a part of running memory in time It is moved to the memory space of electric terminal, with there are enough running memories to run program for electric terminal, and prevents from powering off The loss of data of a part of running memory is arrived in storage afterwards.For example, can be when exiting the application or from described in the front stage operation Application switching is described in the running background in application, reminding unit reminds user that a part of running memory is arrived in storage in time Data be moved to the memory space of electric terminal.For example, can when exit the application or from described in the front stage operation using cutting It is changed to described in the running background in application, reminding unit reminds user storage space insufficient, asks user to clear up memory space, and ring Memory space should be cleared up in the operation that user clears up memory space, and the size of residual memory space is greater than after cleaning Or equal to the data for having stored a part of running memory size when, user's operation is not necessarily to, automatically by data from described A part of running memory is moved to memory space.
As an example, the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal can also wrap Include: Data Movement Unit (not shown), Data Movement Unit be used in response to for by data from a part of running memory It is moved to the user's operation of memory space, the data are moved to memory space from a part of running memory.
In addition, as an example, when space setting unit 30 deletes specific data, root in the memory space of electric terminal Equipment according to the storing data for electric terminal of exemplary embodiment of the present may also include that writing unit (not shown), Writing unit be used for by by the write operation of the application (for example, described apply generates during this front stage operation Write operation) data being written into are stored to the corresponding position of the memory space of electric terminal.For example, working as space setting unit 30 delete specific data in the memory space of electric terminal, and are used to store institute for a part of running memory of electric terminal When stating the data to be stored of application, the data being written into will preferentially can be stored to electronics by the write operation of the application The corresponding position of the memory space of terminal.
As an example, being mentioned when the specific data in the memory space that space setting unit 30 deletes electric terminal The specific number that awake unit can prompt user or user is not prompted to delete the specific data and/or be deleted According to.
It should be understood that the specific reality of the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal Existing mode may be incorporated by reference the related specific implementation that Fig. 1 to Fig. 7 is described to realize, details are not described herein.
Moreover, it should be understood that in the equipment of the storing data according to an exemplary embodiment of the present invention for electric terminal Each unit can be implemented hardware component and/or component software.Those skilled in the art are held according to each unit of restriction Capable processing, can such as use site programmable gate array (FPGA) or specific integrated circuit (ASIC) realize each list Member.
The computer readable storage medium of an exemplary embodiment of the present invention, be stored with makes when being executed by a processor Obtain the computer program of the method for the storing data for electric terminal of processor execution the above exemplary embodiments.The calculating Machine readable storage medium storing program for executing is the arbitrary data storage device that can store the data read by computer system.Computer-readable storage The example of medium include: read-only memory, random access memory, CD-ROM, tape, floppy disk, optical data storage devices and Carrier wave (is such as transmitted through wired or wireless transmission path by the data of internet).
The electric terminal of an exemplary embodiment of the present invention includes: that processor (not shown) and memory (do not show Out), wherein memory is stored with computer program, when the computer program is executed by processor, realizes such as above-mentioned example The method of the storing data for electric terminal of property embodiment.
Although having show and described some exemplary embodiments of the invention, it will be understood by those skilled in the art that It, can be to these in the case where not departing from the principle and spirit of the invention defined by the claims and their equivalents Embodiment is modified.

Claims (10)

1. a kind of method of the storing data for electric terminal, wherein the described method includes:
It determines whether to apply and need to electric terminal storing data;
When determining has using needing, determine whether the size of the residual memory space of electric terminal meets preset condition;
When determine meet the preset condition when, delete specific data in memory space, and/or by a part of electric terminal Running memory is used to store the data to be stored of the application.
2. according to the method described in claim 1, where it is determined whether having the step of using needing to electric terminal storing data It include: when the user's operation for receiving the user's operation for starting application or the application for having been started up in front stage operation When, it determines to have and applies needs to electric terminal storing data;And/or it is used to write to electric terminal using what is initiated when receiving When the write operation of data, determines to have and apply needs to electric terminal storing data;
And/or the preset condition includes at least one among following item: the size of the residual memory space is less than first Preset threshold needs the size of the data stored to electric terminal to be greater than described in the size of the residual memory space, starting to answer With or electric terminal required by the application that has been started up of front stage operation free memory size be greater than it is described The size of residual memory space;
And/or the specific data include among following item at least one of: marked deletable data of user, The storage duration deletable data marked more than the user of scheduled duration, the file of specified type, size are more than second pre- If the file of the file of the specified type of threshold value, the specified specified type applied has stored duration specifying more than scheduled duration The file of type;
And/or the memory space includes the memory space of the storage equipment built in electric terminal.
3. according to the method described in claim 2, where it is determined whether having the step of using needing to electric terminal storing data It include: to determine to have and apply needs whole to electronics when receiving the write operation for being used to write data to electric terminal for applying initiation Storing data is held,
Wherein, the method also includes: in response to the write operation, the data storage being written into will be arrived by the write operation A part of running memory.
4. according to the method described in claim 3, wherein, the method also includes:
Remind user that storage is moved to the memory space of electric terminal to the data of a part of running memory in time.
5. the method according to claim 3 or 4, wherein the method also includes:
In response to the user's operation for data to be moved to memory space from a part of running memory, by the data from A part of running memory is moved to memory space.
6. according to the method described in claim 2, where it is determined whether having the step of using needing to electric terminal storing data It include: when the user's operation for receiving the user's operation for starting application or the application for having been started up in front stage operation When, determination, which has to apply, to be needed to electric terminal storing data,
Wherein, specific data are being deleted in memory space and/or a part of running memory of electric terminal is used to store institute After the step of stating the data to be stored of application, the method also includes:
In response to the user's operation for starting application, start the application;
Alternatively, in response to the user's operation of the application for being had been started up in front stage operation, apply described in the front stage operation.
7. a kind of equipment of the storing data for electric terminal, wherein the equipment includes:
Determination unit, it is determined whether have and apply needs to electric terminal storing data;
Space determination unit determines whether the size of the residual memory space of electric terminal meets when determining has using needing Preset condition;
Space setting unit deletes specific data in memory space, and/or will be electric when determination meets the preset condition A part of running memory of sub- terminal is used to store the data to be stored of the application.
8. equipment according to claim 7, wherein when the user's operation received for starting application or be used on foreground When running the user's operation for the application having been started up, determination unit, which determines to have to apply, to be needed to electric terminal storing data;With/ Or, when receiving using initiating for writing to electric terminal the write operation of data, determination unit determine have using need to Electric terminal storing data;
And/or the preset condition includes at least one among following item: the size of the residual memory space is less than first Preset threshold needs the size of the data stored to electric terminal to be greater than described in the size of the residual memory space, starting to answer With or electric terminal required by the application that has been started up of front stage operation free memory size be greater than it is described The size of residual memory space;
And/or the specific data include among following item at least one of: marked deletable data of user, The storage duration deletable data marked more than the user of scheduled duration, the file of specified type, size are more than second pre- If the file of the file of the specified type of threshold value, the specified specified type applied has stored duration specifying more than scheduled duration The file of type;
And/or the memory space includes the memory space of the storage equipment built in electric terminal.
9. a kind of computer readable storage medium for being stored with computer program, wherein when the computer program is by processor The method of the storing data for electric terminal as described in any one in claim 1 to 6 is realized when execution.
10. a kind of electric terminal, wherein the electric terminal includes:
Processor;
Memory is stored with computer program, when the computer program is executed by processor, realizes such as claim 1 to 6 In any one described in for electric terminal storing data method.
CN201910144528.9A 2019-02-27 2019-02-27 Method and device for storing data for electronic terminal Active CN109885260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910144528.9A CN109885260B (en) 2019-02-27 2019-02-27 Method and device for storing data for electronic terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910144528.9A CN109885260B (en) 2019-02-27 2019-02-27 Method and device for storing data for electronic terminal

Publications (2)

Publication Number Publication Date
CN109885260A true CN109885260A (en) 2019-06-14
CN109885260B CN109885260B (en) 2023-02-24

Family

ID=66929565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910144528.9A Active CN109885260B (en) 2019-02-27 2019-02-27 Method and device for storing data for electronic terminal

Country Status (1)

Country Link
CN (1) CN109885260B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672046A (en) * 2020-12-18 2021-04-16 闻泰通讯股份有限公司 Storage method and device for continuous shooting image, electronic equipment and storage medium
CN113296681A (en) * 2020-02-24 2021-08-24 合肥杰发科技有限公司 Management method of storage space, terminal and device with storage function

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184372A1 (en) * 2001-05-29 2002-12-05 Matsushita Electric Industrial Co., Ltd. Application managing apparatus
CN101635734A (en) * 2008-07-22 2010-01-27 上海聚力传媒技术有限公司 Method and device for storing and managing downloaded data on non-volatile storage medium
CN102025915A (en) * 2009-09-14 2011-04-20 三星电子株式会社 Digital photographing apparatus and method of controlling the same
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
CN104021085A (en) * 2014-04-24 2014-09-03 北京掌阔移动传媒科技有限公司 Mobile terminal internal memory cleaning method and device
WO2016183918A1 (en) * 2015-05-18 2016-11-24 中兴通讯股份有限公司 Method and device for processing storage space
CN106339444A (en) * 2016-08-23 2017-01-18 深圳市金立通信设备有限公司 Method for instantly deleting file and terminal
CN106371904A (en) * 2016-08-29 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Application process clearing method and mobile terminal
CN107608823A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 A kind of photo processing method and mobile terminal
CN107977242A (en) * 2016-10-21 2018-05-01 联发科技股份有限公司 Application program launching method and electronic device
CN108063818A (en) * 2017-12-18 2018-05-22 深圳市中科明望通信软件有限公司 Data download method, device, terminal and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020184372A1 (en) * 2001-05-29 2002-12-05 Matsushita Electric Industrial Co., Ltd. Application managing apparatus
CN101635734A (en) * 2008-07-22 2010-01-27 上海聚力传媒技术有限公司 Method and device for storing and managing downloaded data on non-volatile storage medium
CN102025915A (en) * 2009-09-14 2011-04-20 三星电子株式会社 Digital photographing apparatus and method of controlling the same
US20140143791A1 (en) * 2012-11-19 2014-05-22 Qualcomm Innovation Center, Inc. System, method, and apparatus for improving application-launch latencies
CN104021085A (en) * 2014-04-24 2014-09-03 北京掌阔移动传媒科技有限公司 Mobile terminal internal memory cleaning method and device
WO2016183918A1 (en) * 2015-05-18 2016-11-24 中兴通讯股份有限公司 Method and device for processing storage space
CN106339444A (en) * 2016-08-23 2017-01-18 深圳市金立通信设备有限公司 Method for instantly deleting file and terminal
CN106371904A (en) * 2016-08-29 2017-02-01 宇龙计算机通信科技(深圳)有限公司 Application process clearing method and mobile terminal
CN107977242A (en) * 2016-10-21 2018-05-01 联发科技股份有限公司 Application program launching method and electronic device
CN107608823A (en) * 2017-08-25 2018-01-19 维沃移动通信有限公司 A kind of photo processing method and mobile terminal
CN108063818A (en) * 2017-12-18 2018-05-22 深圳市中科明望通信软件有限公司 Data download method, device, terminal and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296681A (en) * 2020-02-24 2021-08-24 合肥杰发科技有限公司 Management method of storage space, terminal and device with storage function
CN112672046A (en) * 2020-12-18 2021-04-16 闻泰通讯股份有限公司 Storage method and device for continuous shooting image, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109885260B (en) 2023-02-24

Similar Documents

Publication Publication Date Title
CN109683714B (en) Multimedia resource management method, device and storage medium
WO2016101757A1 (en) Image processing method and device based on mobile device
US9641745B2 (en) Systems, methods, and computer program products for digital image capture
US20070220220A1 (en) Data storage management method and device
US20100281481A1 (en) Apparatus and method for providing a user interface within a computing device
WO2019000933A1 (en) Information display method and apparatus, and computer-readable storage medium
CN109154931A (en) Show the method for content and the electronic equipment suitable for this method
KR20170097414A (en) Electronic device and operating method thereof
CN109976668A (en) Data-erasure method, data deletion apparatus and computer readable storage medium
JP2017532645A (en) Real-time sharing during a call
US9955033B1 (en) Selection of a preferred image from multiple captured images
CN107291839A (en) Share the method and apparatus of picture
CN110471738B (en) Theme switching method and device of application program, electronic equipment and storage medium
CN109885260A (en) The method and apparatus of storing data for electric terminal
CN106155789A (en) A kind of application freezing method and mobile terminal
US20160246460A1 (en) Method and apparatus for arranging instant messaging widows
CN106879263A (en) A kind of image pickup method and mobile device
CN117170793A (en) Method, device, terminal and storage medium for storing content
WO2014005512A1 (en) Computer-implemented image composition method and apparatus using the same
CN105912420A (en) Data backup method and device
CN105760226A (en) Method and device for rapidly starting mobile terminal camera and mobile terminal
CN104424306A (en) Method, device and terminal equipment for recording log
CN108174268A (en) Data copying method, equipment, system and readable storage medium storing program for executing based on TV
CN112584237B (en) Image erasing method and device, electronic equipment and storage medium
JP2007074213A (en) Camera system, camera, and external storage apparatus

Legal Events

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