CN104199913B - Terminal resource cleaning method and device and terminal - Google Patents

Terminal resource cleaning method and device and terminal Download PDF

Info

Publication number
CN104199913B
CN104199913B CN201410433471.1A CN201410433471A CN104199913B CN 104199913 B CN104199913 B CN 104199913B CN 201410433471 A CN201410433471 A CN 201410433471A CN 104199913 B CN104199913 B CN 104199913B
Authority
CN
China
Prior art keywords
resource
server
processing
terminal
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.)
Active
Application number
CN201410433471.1A
Other languages
Chinese (zh)
Other versions
CN104199913A (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.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410433471.1A priority Critical patent/CN104199913B/en
Publication of CN104199913A publication Critical patent/CN104199913A/en
Priority to PCT/CN2015/087401 priority patent/WO2016029807A1/en
Priority to US15/506,706 priority patent/US10409773B2/en
Application granted granted Critical
Publication of CN104199913B publication Critical patent/CN104199913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/725Cordless telephones

Abstract

The invention provides a method and a device for cleaning terminal resources and a terminal. Wherein, the method comprises the following steps: receiving a cleaning instruction, and acquiring resources stored by a terminal according to the cleaning instruction; processing the resources and storing the processed resources, wherein the storage space occupied by the processed resources is less than the storage space occupied by the resources; and inquiring whether the server stores resources or not, if so, displaying deletion prompt information, and deleting the resources according to the operation executed by the user. The method, the device and the terminal for clearing the terminal resources can greatly reduce the occupation of the resources on the storage space of the terminal, and simultaneously ensure that the corresponding resources are stored on the server before the resources are deleted, thereby providing convenience for a user to redisplay the resources.

Description

Method for cleaning, device and the terminal of terminal resource
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for cleaning of terminal resource, device and terminal.
Background technology
With the development of science and technology, the function of the terminal such as mobile phone, tablet computer is more and more, the resource of required preservation in terminal Also more and more, the data volume for each resource that terminal preserves is also more next big, wherein, resource can be audio, video and picture Data volume etc. resource, such as a pictures can be 2MB, and the data volume of a video can be 1GB, however, terminal is deposited Storage space is limited, and the resource preserved with user in terminal increases, and vast resources occupies the memory space of terminal, terminal Available memory space is fewer and fewer.
In order to reduce occupancy of the resource to terminal storage space, user can manually operate the money deleted in terminal at present Source, or manually operate the resource that will be preserved in terminal and be moved in the storage device beyond terminal, for example, terminal is base In the smart mobile phone of Android (Android) system, during low memory in smart mobile phone, user can be by being connected with computer Afterwards, the resource preserved in smart mobile phone is moved on computer and is preserved, pass through the money in deletion or mobile terminal Source can reduce occupancy of the resource to terminal storage space, however, user can not check deleted or movement by terminal again Resource, have impact on the usage experience of user, and above-mentioned reduction resource is more numerous to the mode of the memory space of terminal, operation It is trivial, maloperation is also easily produced, causes the resource in terminal to be deleted by mistake.
The content of the invention
It is contemplated that solve at least some of the technical problems in related technologies.For this reason, the present invention First purpose be to propose a kind of method for cleaning of terminal resource, and this method can greatly reduce memory space of the resource to terminal Occupancy, simultaneously as before resource is deleted, it is ensured that preserve corresponding resource on server, and then can be user again Show resource provider just.
Second object of the present invention is to propose a kind of cleaning plant of terminal resource.
Third object of the present invention is to propose a kind of terminal.
To achieve the above object, first aspect present invention embodiment proposes a kind of method for cleaning of terminal resource, including: Cleaning instruction is received, the resource for obtaining the terminal and preserving is instructed according to the cleaning;The resource is handled, and is preserved Resource after processing, wherein, the memory space of resource occupation is less than the memory space of the resource occupation after the processing;And look into Ask and whether preserve the resource on server, if preserving the resource on the server, prompt message is deleted in display, And the resource is deleted in the operation performed according to user.
The method for cleaning of terminal resource according to embodiments of the present invention, the resource for obtaining terminal and preserving is instructed according to cleaning, Resource is handled, and preserves resource after processing, wherein, the memory space of resource occupation is less than depositing for resource occupation after processing When storing up and whether preserve resource on space, and inquiry server, and preserving resource on the server, prompting letter is deleted in display Breath, and resource is deleted in the operation performed according to user.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, together When, due to before resource is deleted, it is ensured that corresponding resource is preserved on server, and then resource can be showed again for user and carried For convenient.
To achieve the above object, second aspect of the present invention embodiment proposes a kind of cleaning plant of terminal resource, including: Acquisition module, for receiving cleaning instruction, the resource for obtaining the terminal and preserving is instructed according to the cleaning;First processing mould Block, for handling the resource, and preserves resource after processing, wherein, the memory space of resource occupation after the processing Less than the memory space of the resource occupation;And Second processing module, the money whether is preserved on server for inquiring about Source, if preserving the resource on the server, prompt message is deleted in display, and institute is deleted in the operation performed according to user State resource.
The cleaning plant of terminal resource according to embodiments of the present invention, receives cleaning by acquisition module and instructs, and according to Cleaning instruction obtains the resource that terminal preserves, and resource is handled by first processing module, and preserves resource after processing, its In, the memory space of resource occupation is less than the memory space of resource occupation after processing, and is inquired about and taken by Second processing module When whether preserving resource on business device, and preserving resource on the server, prompt message is deleted in display, and performed according to user Resource is deleted in operation.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, simultaneously as delete resource it Before, it is ensured that corresponding resource is preserved on server, and then can be that user shows resource provider just again.
To achieve the above object, third aspect present invention embodiment proposes a kind of terminal, which includes housing, processing Device, memory, circuit board and power circuit, wherein, the circuit board is placed in the interior volume that the housing surrounds, the place Reason device and the memory are arranged on the circuit board;The power circuit, for each circuit for the mobile terminal Or device power supply;The memory is used to store executable program code;The processor is deposited by reading in the memory The executable program code of storage runs program corresponding with the executable program code, for performing following steps:Connect Cleaning instruction is received, the resource for obtaining the terminal and preserving is instructed according to the cleaning;The resource is handled, and at preservation Resource after reason, wherein, the memory space of resource occupation is less than the memory space of the resource occupation after the processing;And inquiry Whether the resource is preserved on server, if preserving the resource on the server, prompt message is deleted in display, and The resource is deleted in the operation performed according to user.
Terminal according to embodiments of the present invention, the resource for obtaining terminal and preserving is instructed according to cleaning, resource is handled, And resource after processing is preserved, wherein, the memory space of resource occupation is less than the memory space of resource occupation, and inquiry after processing When resource whether is preserved on server, and preserving resource on the server, prompt message is deleted in display, and is performed according to user Operation delete resource.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, simultaneously as deleting resource Before, it is ensured that corresponding resource is preserved on server, and then can be that user shows resource provider just again.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Fig. 1 is the flow chart of the method for cleaning of terminal resource according to an embodiment of the invention.
Fig. 2 is the flow chart according to an embodiment of the invention for showing resource again.
Fig. 3 is the structure diagram of the cleaning plant of terminal resource according to an embodiment of the invention.
Fig. 4 is the structure diagram of the cleaning plant of terminal resource in accordance with another embodiment of the present invention.
Embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method for cleaning, device and terminal of the terminal resource of the embodiment of the present invention are described.
Fig. 1 is the flow chart of the method for cleaning of terminal resource according to an embodiment of the invention, as shown in Figure 1, the party Method includes:
S101, receives cleaning instruction, and the resource for obtaining terminal and preserving is instructed according to cleaning.
In this embodiment, above-mentioned terminal can be that personal computer PC, mobile phone, tablet computer etc. have various operation systems The hardware device of system.
Specifically, after cleaning instruction is received, the resource obtained under terminal difference path is instructed according to cleaning, wherein, on Stating resource can be included when the one or more being not limited in picture, Voice & Video.
S102, handles resource, and preserves resource after processing, wherein, the memory space of resource occupation is small after processing In the memory space of resource occupation.
Specifically, after the resource that terminal preserves is obtained, different types of resource can be treated differently, it is specific and Speech, when resource is picture, can carry out diminution processing, for example, can be reduced to picture to obtain the picture to picture Corresponding thumbnail.
When resource is audio or video, processing can be compressed to audio or video.For example, when resource is 1080P HD video 1, can be compressed 1080P HD videos 1, for example, can by the 1 boil down to 480P videos 1 of video, and Treated video i.e. 480P videos 1 are preserved in terminal.
Handled above by resource, and preserve resource after processing, the memory space after processing shared by resource is much Less than the memory space shared by original resource, resource can greatly reduce storage of the resource to terminal after preservation processing in the terminal The occupancy in space.
S103, inquires about on server whether preserve resource, if preserving resource on server, prompting letter is deleted in display Breath, and resource is deleted in the operation performed according to user.
Specifically, after preservation processing after resource, it can be sent and inquired about to server according to the identification information of resource after processing Request, server receiving terminal send inquiry request, and on the identification information-enquiry server in inquiry request whether Corresponding resource is preserved, if preserving corresponding resource on server, is returned to terminal and preserves corresponding resource on server Query result, if terminal determines to preserve corresponding resource on server according to query result, displayed on the terminals can delete and carry Show information, and corresponding resource is deleted in the operation performed according to user.
In this embodiment, if not preserving resource on server, resource is uploaded to server, so that server preserves There is resource.
Specifically, if server does not find corresponding resource according to inquiry request, i.e., corresponding money is not preserved on server Source, then return to the query result for not preserving corresponding resource on server, terminal receives query result, and is determining clothes to terminal When not preserving corresponding resource on business device, resource after uploading alignment processing to server, so as to preserve corresponding position on server Resource after reason.
For example, it is assumed that resource existing for terminal is 1080P HD videos 1, resource is 4800P videos after overcompression is handled 1, if detecting without corresponding 1080P HD videos 1 are preserved on server, uploading 1080P high definitions to server first regards Frequently 1, so as to preserve 1080P HD videos 1 on server, then, deletion 1080P HD videos 1 displayed on the terminals carry Show information, at this time, terminal will delete corresponding 1080P HD videos 1 according to the execution of user operation, thus, in cleaning 1080P Before HD video 1 in the future, it is ensured that the 1080P HD videos 1 of master are preserved on server, facilitate user to need to watch Again HD video can be obtained during 1080P HD videos 1 from server.
In addition, in order to ensure the security of resource, first resource can also be encrypted, then upload and add to server again Resource after close.
In this embodiment, after preserving corresponding resource on server is determined, deletion prompt message displayed on the terminals, And according to user perform operation delete resource while, can also generate it is corresponding with deleted resource first mark, with Corresponding resource is regained in the first mark of user's triggering.Thus, can facilitate user obtained again from server without The resource of processing, facilitates user to check undressed resource at any time.
In this embodiment, after the first mark corresponding with deleted resource is generated, if as shown in Fig. 2, user needs Again resource is showed, terminal will be that user shows corresponding resource, and the process that terminal shows resource for user again is as follows:
S21, receives first trigger request of the user to the first mark.
Specifically, when user needs to check the i.e. undressed resource of resource, user can be by triggering corresponding resource First mark, terminal receive first trigger request of the user to the first mark of corresponding resource.
S22, sends resource acquisition request to server according to the identification information of resource after the first trigger request and processing, connects Receive and preserve the resource of server return.
Specifically, first trigger request of the user to the first mark of corresponding resource is being received, terminal obtains the processing The identification information of resource afterwards, and send the resource comprising the identification information of resource after the first trigger request and processing to server and obtain Take request, server receives resource acquisition request, and the identification information in being asked according to resource acquisition obtain alignment processing after provide The resource in source, that is, obtain undressed resource, and the corresponding resource of acquisition is returned to terminal, and terminal receives and preserves clothes The undressed resource that business device returns.
In addition, if terminal uploads encrypted resource, server will obtain encrypted money according to resource acquisition request Source, and encrypted resource is returned to terminal, terminal receives the encrypted resource that server returns, and by password to encryption Resource afterwards is decrypted, and preserves the resource after decryption in the terminal.
For example, user needs to watch 1080P HD videos 1, at this time, 480P videos 1 correspond to after user can click on processing First mark after, terminal receive user to first mark the first trigger request, and obtain processing rear video 1 mark letter Breath, and the acquisition resource request comprising the first trigger request and identification information is sent to server, server receiving terminal is sent Acquisition resource request, and the identification information in request, obtains the 1080P HD videos 1 preserved on server, and will be right The 1080P HD videos 1 answered return to terminal, and terminal receives and preserves the 1080P HD videos 1 of return.
S23, receives user to returning to the second trigger request of resource, and shows resource according to the second trigger request.
After terminal obtains undressed resource, asked if user triggers showing for the second trigger request, that is, resource of resource Ask, terminal will show corresponding undressed resource according to the trigger action of user, as a result, user can show again Undressed resource.
For example, it is 1080P HD videos 1 that terminal, which obtains undressed resource, the 1080P of terminal preservation is clicked in user During HD video 1, terminal will play HD video 1 according to the trigger action of user.
In addition, in this embodiment, when resource is audio or video, generating the first mark corresponding with deleted resource After note, the resource on server can also directly be played according to the trigger action of user on the server, specifically, eventually End receives first trigger request of the user to the first mark, and according to the identification information of resource after trigger request and the processing established The resource on server is played, thus, the online resource checked on server is facilitated, reduces corresponding resource to terminal The occupancy of memory space.
In addition, in this embodiment, after preservation processing after resource, can also generate with handle after resource corresponding the Two marks, corresponding resource is obtained for the second mark of user's triggering.
Specifically, after user checks the processing that terminal preserves during resource, terminal receives user to alignment processing Resource checks request afterwards, and according to checking that request shows resource after corresponding processing, the resource after user checks alignment processing During, terminal can also receive threeth trigger request of the user to the second mark of corresponding resource, and according to the 3rd triggering Resource acquisition request please be sent to server by the identification information of resource after summation process, during server will be asked according to resource acquisition Identification information obtain corresponding resource, and corresponding resource is returned into terminal, terminal receives and preserves what server returned Resource.If the 4th trigger request that user triggers corresponding resource shows request, terminal receives user to returning to corresponding resource The 4th trigger request, and corresponding resource is showed according to the 4th trigger request.Wherein, the identification information of resource can after above-mentioned processing With the information of unique mark resource, for example, identification information can be the title of the resources such as picture, audio, video, it can also be He can identify the information of resource.
For example, resource present in terminal is 1080P HD videos 1, made by a variety of static images in the video 1 Into animation file 1, and, in user's playing animation text using the animation file 1 as resource conservation after the processing of video 1 in the terminal During part 1, if user is interested in some static images therein, user can be by clicking in the animation file 1 Two marks, after user clicks on the mark, terminal will be that user obtains 1080P HD videos 1, to facilitate user to check, specifically For, terminal obtains the 3rd trigger request of user and the 1 corresponding identification information of animation file sends resource to server and obtains Request is taken, identification information of the server in request obtains the 1080P HD videos 1 preserved on server, and is returned to terminal Corresponding 1080P HD videos 1 are returned, terminal receives and preserves corresponding 1080P HD videos 1, and the video 1 is clicked in user When, terminal receives the request that shows of user, and plays 1080P HD videos 1 for user.
The method for cleaning embodiment of above-mentioned terminal resource, according to cleaning instruct obtain terminal preserve resource, to resource into Row processing, and resource after processing is preserved, wherein, the memory space of resource occupation is less than the memory space of resource occupation after processing, And resource whether is preserved on inquiry server, and when preserving resource on the server, prompt message is deleted in display, and according to Resource is deleted in the operation that user performs.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, simultaneously as Before deletion resource, it is ensured that corresponding resource is preserved on server, and then can be that user show resource provider just again.
In order to realize above-described embodiment, the present invention also proposes a kind of cleaning plant of terminal resource.
Fig. 3 is the structure diagram of the cleaning plant of terminal resource according to an embodiment of the invention, as shown in figure 3, The device includes:Acquisition module 100, first processing module 200 and Second processing module 300, wherein:
Acquisition module 100 is used to receive cleaning instruction, and the resource for obtaining above-mentioned terminal and preserving is instructed according to above-mentioned cleaning;The One processing module 200 is used to handle above-mentioned resource, and preserves resource after processing, wherein, resource occupation after above-mentioned processing Memory space be less than above-mentioned resource occupation memory space;And Second processing module 300 be used to inquiring about on server whether Above-mentioned resource is preserved, if preserving above-mentioned resource on above-mentioned server, prompt message is deleted in display, and is performed according to user Operation delete above-mentioned resource.
Above-mentioned resource can include the one or more in picture, Voice & Video.
First processing module 200 to different types of resource used by processing mode it is different, specifically, when above-mentioned resource For picture when, above-mentioned first processing module 200 can carry out diminution processing to above-mentioned picture.Specifically, first processing module 200 can reduce picture to obtain the corresponding thumbnail of the picture, and preserve the corresponding breviary of the picture in the terminal Figure.
When above-mentioned resource is audio or video, above-mentioned first processing module 200 can carry out above-mentioned audio or video Compression is handled.
In addition, as shown in figure 4, above device can also include uploading module 400, which is used for above-mentioned After whether preserving above-mentioned resource on the inquiry server of Second processing module 300, if not preserved on above-mentioned server above-mentioned Resource, then upload above-mentioned resource, so that above-mentioned server preserves above-mentioned resource to above-mentioned server.
Above-mentioned uploading module 300 specifically can be used for above-mentioned resource is encrypted, and uploads and encrypt to above-mentioned server Above-mentioned resource afterwards.Thus, it is possible to ensure the security of resource.
It can check the resource preserved on the server again in order to facilitate user, above device can also include the first life Into module 500, which is used for when above-mentioned Second processing module 300 deletes above-mentioned resource, generates with being deleted Except corresponding first mark of resource, corresponding resource is regained for above-mentioned first mark of user's triggering.
Above device can also include the 3rd processing module 600, and the 3rd processing module 600 is used in the above-mentioned first generation After the generation of module 500 the first mark corresponding with deleted resource, receiving first triggering of the user to the above-mentioned first mark please Ask;Sending resource acquisition to above-mentioned server according to the identification information of resource after above-mentioned first trigger request and above-mentioned processing please Ask, receive and preserve the resource that above-mentioned server returns;And second trigger request of the user to the above-mentioned resource of return is received, and Above-mentioned resource is showed according to above-mentioned second trigger request.Thus, it can be realized by the 3rd processing module 600 and show money again Source, facilitates user to check resource at any time.
In addition, if uploading module 300 encrypts resource when uploading resource, accordingly, the 3rd processing module 600 can receive the encrypted above-mentioned resource that above-mentioned server returns, and above-mentioned encrypted above-mentioned resource can be carried out Decryption, and preserve the above-mentioned resource after decryption.
For audio or video, corresponding resource can be checked online in order to facilitate user, above device can also wrap Fourth processing module 700 is included, which is used for when above-mentioned resource is audio or video, in the above-mentioned first life Into after the generation of module 500 the first mark corresponding with deleted resource, first triggering of the user to the above-mentioned first mark is received Request;Played according to the identification information of resource after above-mentioned trigger request and the above-mentioned processing established upper on above-mentioned server State resource.
In addition, above device can also include the second generation module 800, which is used for above-mentioned the After one processing module, 200 preservation processing after resource, generation the second mark corresponding with resource after above-mentioned processing, for user Trigger above-mentioned second mark and obtain corresponding resource.
Above device can also include the 5th processing module 900, and the 5th processing module 900 is used to generate mould above-mentioned second After the generation of block 800 the second mark corresponding with resource after above-mentioned processing, receiving user please to checking for resource after above-mentioned processing Ask, and according to above-mentioned resource after checking the corresponding processing of request displaying;Receiving threeth triggering of the user to the above-mentioned second mark please Ask, and resource acquisition is sent to above-mentioned server according to the identification information of resource after above-mentioned 3rd trigger request and above-mentioned processing and is asked Ask, receive and preserve the resource that above-mentioned server returns;And fourth trigger request of the user to the above-mentioned resource of return is received, and Above-mentioned resource is showed according to above-mentioned 4th trigger request.
Generated comprising acquisition module 100, first processing module 200, Second processing module 300, uploading module 400, first Module 500, the 3rd processing module 600, fourth processing module 700, the end of the second generation module 800 and the 5th processing module 900 The process of the cleaning plant cleaning terminal resource of end resource can be found in Fig. 1, not repeat herein.
The cleaning plant embodiment of above-mentioned terminal resource, cleaning instruction is received by acquisition module, and is instructed according to cleaning The resource that terminal preserves is obtained, resource is handled by first processing module, and preserves resource after processing, wherein, processing The memory space of resource occupation is less than the memory space of resource occupation afterwards, and by being on Second processing module inquiry server No preservation resource, and when preserving resource on the server, prompt message is deleted in display, and the operation performed according to user is deleted Resource.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, simultaneously as before resource is deleted, it is ensured that Corresponding resource is preserved on server, and then can be that user shows resource provider just again.
In order to realize above-described embodiment, the present invention also proposes a kind of terminal, the terminal include housing, processor, memory, Circuit board and power circuit, wherein, foregoing circuit plate is placed in the interior volume that above-mentioned housing surrounds, above-mentioned processor and above-mentioned Memory is arranged on foregoing circuit plate;Above-mentioned power circuit, for each circuit or the device power supply for above-mentioned mobile terminal; Above-mentioned memory is used to store executable program code;Above-mentioned processor is by reading the executable journey stored in above-mentioned memory Sequence code runs program corresponding with above-mentioned executable program code, for performing following steps:
S101 ', receive cleaning instruction, and the resource for obtaining terminal and preserving is instructed according to cleaning.
In this embodiment, above-mentioned terminal can be that personal computer PC, mobile phone, tablet computer etc. have various operation systems The hardware device of system.
Specifically, after cleaning instruction is received, the resource obtained under terminal difference path is instructed according to cleaning, wherein, on Stating resource can be included when the one or more being not limited in picture, Voice & Video.
S102 ', handle resource, and preserve resource after processing, wherein, the memory space of resource occupation is small after processing In the memory space of resource occupation.
Specifically, after the resource that terminal preserves is obtained, different types of resource can be treated differently, it is specific and Speech, when resource is picture, can carry out diminution processing, for example, can be reduced to picture to obtain the picture to picture Corresponding thumbnail.
When resource is audio or video, processing can be compressed to audio or video.For example, when resource is 1080P HD video 1, can be compressed 1080P HD videos 1, for example, can by the 1 boil down to 480P videos 1 of video, and Treated video i.e. 480P videos 1 are preserved in terminal.
Handled above by resource, and preserve resource after processing, the memory space after processing shared by resource is much Less than the memory space shared by original resource, resource can greatly reduce storage of the resource to terminal after preservation processing in the terminal The occupancy in space.
S103 ', inquire about on server whether preserve resource, if preserving resource on server, prompting is deleted in display Information, and resource is deleted in the operation performed according to user.
Specifically, after preservation processing after resource, it can be sent and inquired about to server according to the identification information of resource after processing Request, server receiving terminal send inquiry request, and on the identification information-enquiry server in inquiry request whether Corresponding resource is preserved, if preserving corresponding resource on server, is returned to terminal and preserves corresponding resource on server Query result, if terminal determines to preserve corresponding resource on server according to query result, displayed on the terminals can delete and carry Show information, and corresponding resource is deleted in the operation performed according to user.
In this embodiment, if not preserving resource on server, resource is uploaded to server, so that server preserves There is resource.
Specifically, if server does not find corresponding resource according to inquiry request, i.e., corresponding money is not preserved on server Source, then return to the query result for not preserving corresponding resource on server, terminal receives query result, and is determining clothes to terminal When not preserving corresponding resource on business device, resource after uploading alignment processing to server, so as to preserve corresponding position on server Resource after reason.
For example, it is assumed that resource existing for terminal is 1080P HD videos 1, resource is 4800P videos after overcompression is handled 1, if detecting without corresponding 1080P HD videos 1 are preserved on server, uploading 1080P high definitions to server first regards Frequently 1, so as to preserve 1080P HD videos 1 on server, then, deletion 1080P HD videos 1 displayed on the terminals carry Show information, at this time, terminal will delete corresponding 1080P HD videos 1 according to the execution of user operation, thus, in cleaning 1080P Before HD video 1 in the future, it is ensured that the 1080P HD videos 1 of master are preserved on server, facilitate user to need to watch Again HD video can be obtained during 1080P HD videos 1 from server.
In addition, in order to ensure the security of resource, first resource can also be encrypted, then upload and add to server again Resource after close.
In this embodiment, after preserving corresponding resource on server is determined, deletion prompt message displayed on the terminals, And according to user perform operation delete resource while, can also generate it is corresponding with deleted resource first mark, with Corresponding resource is regained in the first mark of user's triggering.Thus, can facilitate user obtained again from server without The resource of processing, facilitates user to check undressed resource at any time.
In this embodiment, after the first mark corresponding with deleted resource is generated, if as shown in Fig. 2, user needs Again resource is showed, terminal will be that user shows corresponding resource, and the process that terminal shows resource for user again is as follows:
S21 ', receive first trigger request of the user to the first mark.
Specifically, when user needs to check the i.e. undressed resource of resource, user can be by triggering corresponding resource First mark, terminal receive first trigger request of the user to the first mark of corresponding resource.
S22 ', resource acquisition request is sent according to the identification information of resource after the first trigger request and processing to server, Receive and preserve the resource of server return.
Specifically, first trigger request of the user to the first mark of corresponding resource is being received, terminal obtains the processing The identification information of resource afterwards, and send the resource comprising the identification information of resource after the first trigger request and processing to server and obtain Take request, server receives resource acquisition request, and the identification information in being asked according to resource acquisition obtain alignment processing after provide The resource in source, that is, obtain undressed resource, and the corresponding resource of acquisition is returned to terminal, and terminal receives and preserves clothes The undressed resource that business device returns.
In addition, if terminal uploads encrypted resource, server will obtain encrypted money according to resource acquisition request Source, and encrypted resource is returned to terminal, terminal receives the encrypted resource that server returns, and by password to encryption Resource afterwards is decrypted, and preserves the resource after decryption in the terminal.
For example, user needs to watch 1080P HD videos 1, at this time, 480P videos 1 correspond to after user can click on processing First mark after, terminal receive user to first mark the first trigger request, and obtain processing rear video 1 mark letter Breath, and the acquisition resource request comprising the first trigger request and identification information is sent to server, server receiving terminal is sent Acquisition resource request, and the identification information in request, obtains the 1080P HD videos 1 preserved on server, and will be right The 1080P HD videos 1 answered return to terminal, and terminal receives and preserves the 1080P HD videos 1 of return.
S23 ', receive user to returning to the second trigger request of resource, and show resource according to the second trigger request.
After terminal obtains undressed resource, asked if user triggers showing for the second trigger request, that is, resource of resource Ask, terminal will show corresponding undressed resource according to the trigger action of user, as a result, user can show again Undressed resource.
For example, it is 1080P HD videos 1 that terminal, which obtains undressed resource, the 1080P of terminal preservation is clicked in user During HD video 1, terminal will play HD video 1 according to the trigger action of user.
In addition, in this embodiment, when resource is audio or video, generating the first mark corresponding with deleted resource After note, the resource on server can also directly be played according to the trigger action of user on the server, specifically, eventually End receives first trigger request of the user to the first mark, and according to the identification information of resource after trigger request and the processing established The resource on server is played, thus, the online resource checked on server is facilitated, reduces corresponding resource to terminal The occupancy of memory space.
In addition, in this embodiment, after preservation processing after resource, can also generate with handle after resource corresponding the Two marks, corresponding resource is obtained for the second mark of user's triggering.
Specifically, after user checks the processing that terminal preserves during resource, terminal receives user to alignment processing Resource checks request afterwards, and according to checking that request shows resource after corresponding processing, the resource after user checks alignment processing During, terminal can also receive threeth trigger request of the user to the second mark of corresponding resource, and according to the 3rd triggering Resource acquisition request please be sent to server by the identification information of resource after summation process, during server will be asked according to resource acquisition Identification information obtain corresponding resource, and corresponding resource is returned into terminal, terminal receives and preserves what server returned Resource.If the 4th trigger request that user triggers corresponding resource shows request, terminal receives user to returning to corresponding resource The 4th trigger request, and corresponding resource is showed according to the 4th trigger request.Wherein, the identification information of resource can after above-mentioned processing With the information of unique mark resource, for example, identification information can be the title of the resources such as picture, audio, video, it can also be He can identify the information of resource.
For example, resource present in terminal is 1080P HD videos 1, made by a variety of static images in the video 1 Into animation file 1, and, in user's playing animation text using the animation file 1 as resource conservation after the processing of video 1 in the terminal During part 1, if user is interested in some static images therein, user can be by clicking in the animation file 1 Two marks, after user clicks on the mark, terminal will be that user obtains 1080P HD videos 1, to facilitate user to check, specifically For, terminal obtains the 3rd trigger request of user and the 1 corresponding identification information of animation file sends resource to server and obtains Request is taken, identification information of the server in request obtains the 1080P HD videos 1 preserved on server, and is returned to terminal Corresponding 1080P HD videos 1 are returned, terminal receives and preserves corresponding 1080P HD videos 1, and the video 1 is clicked in user When, terminal receives the request that shows of user, and plays 1080P HD videos 1 for user.
Above-mentioned terminal embodiment, the resource for obtaining terminal and preserving is instructed according to cleaning, resource is handled, and at preservation Resource after reason, wherein, the memory space of resource occupation is less than on the memory space of resource occupation, and inquiry server after processing When whether preserving resource, and preserving resource on the server, prompt message is deleted in display, and is deleted according to the operation that user performs Except resource.Thus, occupancy of the resource to the memory space of terminal can be greatly reduced, simultaneously as before resource is deleted, it is ensured that Corresponding resource is preserved on server, and then can be that user show resource provider just again.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office Combined in an appropriate manner in one or more embodiments or example.In addition, without conflicting with each other, the skill of this area Art personnel can be tied the different embodiments or example described in this specification and different embodiments or exemplary feature Close and combine.
In addition, term " first ", " second " are only used for description purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, " multiple " are meant that at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used for realization specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic at the same time in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can be for example by carrying out optical scanner to paper or other media, then into edlin, interpretation or if necessary with it His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, those of ordinary skill in the art can be changed above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (13)

  1. A kind of 1. method for cleaning of terminal resource, it is characterised in that including:
    Cleaning instruction is received, the resource for obtaining the terminal and preserving is instructed according to the cleaning;
    The resource is handled, and preserves resource after processing, wherein, the memory space of resource occupation is less than after the processing The memory space of the resource occupation, the resource includes the one or more in picture, Voice & Video, when the resource is It is described that the resource is handled during picture, including:Diminution processing is carried out to the picture;When the resource for audio or It is described that the resource is handled during video, including:Processing is compressed to the audio or video;
    The resource whether is preserved on inquiry server, if preserving the resource on the server, display deletion carries Show information, and the resource is deleted in the operation performed according to user, and generate the first mark corresponding with the deleted resource Note;
    First trigger request of the user to the described first mark is received, when the resource is audio or video, according to described the The identification information of resource plays the resource on the server after one trigger request and the processing.
  2. 2. according to the method described in claim 1, it is characterized in that, whether preserve the resource on the inquiry server Afterwards, further include:
    If not preserving the resource on the server, the resource is uploaded to the server, so that the server Preserve the resource.
  3. 3. according to the method described in claim 2, it is characterized in that, further included after preservation processing after resource:
    Generation the second mark corresponding with resource after the processing, corresponding money is obtained for user's triggering second mark Source.
  4. 4. according to the method described in claim 3, it is characterized in that, in the generation and resource after the processing corresponding second After mark, further include:
    Receive user and request checked to resource after the processing, and according to it is described check the corresponding processing of request displaying after provide Source;
    Threeth trigger request of the user to the described second mark is received, and according to being provided after the 3rd trigger request and the processing The identification information in source sends resource acquisition request to the server, receives and preserve the resource that the server returns;And
    User is received to returning to the 4th trigger request of the resource, and the resource is showed according to the 4th trigger request.
  5. 5. according to the method described in claim 4, it is characterized in that, described upload the resource to the server, including:
    The resource is encrypted, and the encrypted resource is uploaded to the server.
  6. 6. according to the method described in claim 5, it is characterized in that, the resource for receiving and preserving the server and return, Including:
    The encrypted resource that the server returns is received, the encrypted resource is decrypted, and protects Deposit the resource after decryption.
  7. A kind of 7. cleaning plant of terminal resource, it is characterised in that including:
    Acquisition module, for receiving cleaning instruction, the resource for obtaining the terminal and preserving is instructed according to the cleaning;
    First processing module, for handling the resource, and preserves resource after processing, wherein, resource after the processing The memory space of occupancy is less than the memory space of the resource occupation, and the resource includes one kind in picture, Voice & Video Or it is several, when the resource is picture, the first processing module, is specifically used for:Diminution processing is carried out to the picture;When When the resource is audio or video, the first processing module, is specifically used for:Place is compressed to the audio or video Reason;
    Whether Second processing module, the resource is preserved for inquiring about on server, if being preserved on the server described Resource, then show and delete prompt message, and the resource is deleted in the operation performed according to user;
    First generation module, for when the Second processing module deletes the resource, generation to be corresponding with deleted resource First mark;
    Fourth processing module, is touched for when the resource is audio or video, receiving user to the first of the described first mark Hair request, and according to playing on the server identification information of resource after the trigger request and the processing Resource.
  8. 8. device according to claim 7, it is characterised in that further include:
    Uploading module, after whether preserving the resource on Second processing module inquiry server, if described The resource is not preserved on server, then uploads the resource to the server so that the server preserve it is described Resource.
  9. 9. device according to claim 8, it is characterised in that further include:
    Second generation module, after the resource after first processing module preservation processing, generates with being provided after the processing Corresponding second mark in source, corresponding resource is obtained for user's triggering second mark.
  10. 10. device according to claim 9, it is characterised in that further include:
    5th processing module, for generating the second mark corresponding with resource after the processing in second generation module Afterwards, receive user and request checked to resource after the processing, and according to the resource after checking the corresponding processing of request displaying; Threeth trigger request of the user to the described second mark is received, and according to resource after the 3rd trigger request and the processing Identification information sends resource acquisition request to the server, receives and preserve the resource that the server returns;And receive User shows the resource to returning to the 4th trigger request of the resource according to the 4th trigger request.
  11. 11. device according to claim 10, it is characterised in that the uploading module, is specifically used for:
    The resource is encrypted, and the encrypted resource is uploaded to the server.
  12. 12. according to the devices described in claim 11, it is characterised in that further include:
    3rd processing module, the encrypted resource returned for receiving the server, to described encrypted described Resource is decrypted, and preserves the resource after decryption.
  13. 13. a kind of terminal, the terminal includes housing, processor, memory, circuit board and power circuit, wherein, the circuit Plate is placed in the interior volume that the housing surrounds, and the processor and the memory are arranged on the circuit board;It is described Power circuit, for each circuit or the device power supply for the terminal;The memory is used to store executable program code; The processor is run and the executable program code by reading the executable program code stored in the memory Corresponding program, for performing following steps:
    Cleaning instruction is received, the resource for obtaining the terminal and preserving is instructed according to the cleaning;
    The resource is handled, and preserves resource after processing, wherein, the memory space of resource occupation is less than after the processing The memory space of the resource occupation, the resource includes the one or more in picture, Voice & Video, when the resource is It is described that the resource is handled during picture, including:Diminution processing is carried out to the picture;When the resource for audio or It is described that the resource is handled during video, including:Processing is compressed to the audio or video;
    The resource whether is preserved on inquiry server, if preserving the resource on the server, display deletion carries Show information, and the resource is deleted in the operation performed according to user, and generate the first mark corresponding with the deleted resource Note;
    First trigger request of the user to the described first mark is received, when the resource is audio or video, according to described the The identification information of resource plays the resource on the server after one trigger request and the processing.
CN201410433471.1A 2014-08-28 2014-08-28 Terminal resource cleaning method and device and terminal Active CN104199913B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201410433471.1A CN104199913B (en) 2014-08-28 2014-08-28 Terminal resource cleaning method and device and terminal
PCT/CN2015/087401 WO2016029807A1 (en) 2014-08-28 2015-08-18 Cleanup method and device for terminal resource and terminal
US15/506,706 US10409773B2 (en) 2014-08-28 2015-08-18 Method and device for cleaning up terminal resource and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410433471.1A CN104199913B (en) 2014-08-28 2014-08-28 Terminal resource cleaning method and device and terminal

Publications (2)

Publication Number Publication Date
CN104199913A CN104199913A (en) 2014-12-10
CN104199913B true CN104199913B (en) 2018-05-01

Family

ID=52085206

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410433471.1A Active CN104199913B (en) 2014-08-28 2014-08-28 Terminal resource cleaning method and device and terminal

Country Status (1)

Country Link
CN (1) CN104199913B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10409773B2 (en) 2014-08-28 2019-09-10 Beijing Kingsoft Internet Security Software Co., Ltd. Method and device for cleaning up terminal resource and terminal
CN104869153B (en) * 2015-04-23 2020-11-10 海尔优家智能科技(北京)有限公司 Message transmission method and device for Internet of things
CN104850599B (en) * 2015-04-29 2019-05-10 百度在线网络技术(北京)有限公司 It is a kind of for clearing up the method and apparatus of the caching of corresponding mobile device
CN106559190B (en) * 2015-09-29 2020-07-14 腾讯科技(深圳)有限公司 Media resource processing method, device and terminal
CN105677883B (en) * 2016-01-14 2019-05-28 网易(杭州)网络有限公司 The optimization method and device of animation resource
CN105530658B (en) * 2016-01-22 2021-04-23 深圳高新兴物联科技有限公司 Remote diagnosis method, device and system for wireless communication module
CN107133139A (en) * 2016-02-26 2017-09-05 宏碁股份有限公司 Intelligent disc monitoring method and the device using this method
CN108255937B (en) * 2017-12-08 2020-09-29 未鲲(上海)科技服务有限公司 SDN-based resource cleaning method and device, storage medium and computer equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167134A (en) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 Infinite storage system and method of mobile phone
CN103281350A (en) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 Mobile terminal and method, system and cloud server for managing application programs of mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103167134A (en) * 2012-08-23 2013-06-19 深圳市金立通信设备有限公司 Infinite storage system and method of mobile phone
CN103281350A (en) * 2013-04-18 2013-09-04 百度在线网络技术(北京)有限公司 Mobile terminal and method, system and cloud server for managing application programs of mobile terminal

Also Published As

Publication number Publication date
CN104199913A (en) 2014-12-10

Similar Documents

Publication Publication Date Title
CN104199913B (en) Terminal resource cleaning method and device and terminal
CN102662919B (en) Bookmarking segments of content
CN108521608A (en) Processing method, device, terminal and the storage medium of video file
US9256395B1 (en) Previewing audio data associated with an item
CN110139162B (en) Media content sharing method and device, storage medium and electronic device
JP2010528562A5 (en)
US9614882B2 (en) System independent remote storing of digital content
US10929460B2 (en) Method and apparatus for storing resource and electronic device
CN104956357A (en) Creating and sharing inline media commentary within a network
US20190253378A1 (en) Instant messaging method and device
CN103281375B (en) A kind of contact management method of third-party application and device, system
CN111050222A (en) Virtual article issuing method, device and storage medium
CN108429782A (en) Information-pushing method, device, terminal and server
CN110245304A (en) Data sharing method, equipment and computer-readable medium
US20170168660A1 (en) Voice bullet screen generation method and electronic device
CN109978708A (en) Social sharing information is controlled in the method and apparatus in present condition of social space
CN108573391A (en) A kind of processing method of promotional content, apparatus and system
CN107172178B (en) A kind of content delivery method and device
JP2006526838A5 (en)
JP2015041280A (en) Content distribution technique
CN101667281A (en) Method for customizing and sending advertisement and advertisement platform system
KR101292725B1 (en) System and method for providing chat service for the users enjoying same contents
CN112784103A (en) Information pushing method and device
CN110278273A (en) Multimedia file method for uploading, device, terminal, server and storage medium
US20150304460A1 (en) Method and apparatus for assembling data, and resource propagation system

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