CN109947717A - A kind of document handling method and terminal device - Google Patents

A kind of document handling method and terminal device Download PDF

Info

Publication number
CN109947717A
CN109947717A CN201810096431.0A CN201810096431A CN109947717A CN 109947717 A CN109947717 A CN 109947717A CN 201810096431 A CN201810096431 A CN 201810096431A CN 109947717 A CN109947717 A CN 109947717A
Authority
CN
China
Prior art keywords
file
user
terminal device
condition
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810096431.0A
Other languages
Chinese (zh)
Inventor
郑聪聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810096431.0A priority Critical patent/CN109947717A/en
Publication of CN109947717A publication Critical patent/CN109947717A/en
Pending legal-status Critical Current

Links

Abstract

The embodiment of the invention discloses a kind of document handling method and terminal devices, it is related to field of terminal technology, when being able to solve user and needing next time using certain files in these cache files, terminal device needs that above-mentioned file is re-downloaded or cached by network flow, thus the problem of will cause the consuming of network flow.The specific scheme is that whether detection user meets preset condition to the operation behavior of the first file cached in terminal device;In the case where operation behavior meets preset condition, the first file is saved to the target storage domain into terminal device.During the embodiment of the present invention is applied to terminal device preservation file.

Description

A kind of document handling method and terminal device
Technical field
The present embodiments relate to field of terminal technology more particularly to a kind of document handling methods and terminal device.
Background technique
In general, user, in the application program of using terminal equipment, terminal device can will apply journey by network flow File cache in sequence is into terminal device, in order to which user's next time uses these cache files.
And the use with user to the application program of terminal device, a large amount of caching text is often generated in terminal device Part, some files in these cache files may be useless file for a user, these useless files can occupy The memory space of terminal device.Currently, terminal device can be in the automatic cleaning cache file in backstage, to discharge depositing for terminal device Store up space;Alternatively, user can by being operated to the cache file in application program, with triggering terminal equipment cleaning these Cache file.
It, can will be in the application program of terminal device since terminal device is when clearing up cache file but in the above method The cleaning of all cache files so that terminal is set when user is needed using certain files in these cache files next time It is standby to need that above-mentioned file is re-downloaded or cached by network flow, to will cause the consuming of network flow.
Summary of the invention
The embodiment of the present invention provides a kind of document handling method and terminal device, is able to solve since terminal device is being cleared up When cache file, all cache files in the application program of terminal device can be cleared up, so that user needs to make next time When with certain files in these cache files, terminal device needs to re-download or cache by network flow certain texts Part, thus the problem of will cause the consuming of network flow.
In order to solve the above-mentioned technical problem, the present invention adopts the following technical scheme:
The first aspect of the present invention provides a kind of document handling method, is applied to terminal device, this document processing method packet Include: whether detection user meets preset condition to the operation behavior of the first file cached in terminal device;It is full in operation behavior In the case where sufficient preset condition, the first file is saved to the target storage domain into terminal device.
The second aspect of the present invention provides a kind of terminal device, which includes: detection unit and storage unit. Wherein, whether detection unit meets default item to the operation behavior of the first file cached in terminal device for detecting user Part.Storage unit, in the case where detection unit detection operation behavior meets preset condition, the first file to be saved to end Target storage domain in end equipment.
The third aspect of the present invention provides a kind of terminal device, which includes processor, memory and be stored in On memory and the computer program that can run on a processor, such as first party is realized when which is executed by processor The step of document handling method described in face.
The fourth aspect of the present invention provides a kind of computer readable storage medium, deposits on the computer readable storage medium Computer program is stored up, the step of document handling method as described in relation to the first aspect is realized when which is executed by processor Suddenly.
In embodiments of the present invention, terminal device can be in operation row of the user to the first file cached in terminal device In the case where meeting preset condition, the first file is saved to the target storage domain into terminal device.Since user is to The operation behavior of one file meets preset condition, and the first file of characterization may need the next file continued to use for user, because This terminal device saves the first file to target storage domain, realizes and quickly and conveniently backs up to the first file;Also, Since terminal device will not be automatically deleted the first file in the domain of target storage, when user's next time uses the first file, Terminal device needs not move through network flow and re-downloads or cache first file, saves network flow.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart one of document handling method provided in an embodiment of the present invention;
Fig. 3 is a kind of flowchart 2 of document handling method provided in an embodiment of the present invention;
Fig. 4 is a kind of flow chart 3 of document handling method provided in an embodiment of the present invention;
Fig. 5 is a kind of example schematic one of the display interface of mobile phone provided in an embodiment of the present invention;
Fig. 6 is a kind of example schematic two of the display interface of mobile phone provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 8 is a kind of hardware structural diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Term " first " and " second " in the specification and claims of the embodiment of the present invention etc. are for distinguishing not Same object, rather than it is used for the particular order of description object.For example, the first input and the second input etc. are for distinguishing difference Input, rather than for describe input particular order.It is unless otherwise indicated, " more in the description of the embodiment of the present invention It is a " meaning refer to two or more.
The terms "and/or" is a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, For example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.Symbol herein "/" indicates that affiliated partner is relationship such as A/B expression A or B perhaps.
In embodiments of the present invention, " illustrative " or " such as " etc. words for indicate make example, illustration or explanation.This Be described as in inventive embodiments " illustrative " or " such as " any embodiment or design scheme be not necessarily to be construed as comparing Other embodiments or design scheme more preferably or more advantage.Specifically, use " illustrative " or " such as " etc. words purport Related notion is being presented in specific ways.
The embodiment of the present invention provides a kind of document handling method and terminal device, can be applied to terminal device and saves file Process, be able to solve in the prior art since terminal device is when clearing up cache file, can be by the application program of terminal device In the cleaning of all cache files so that when user is needed using certain files in these cache files next time, terminal Equipment needs to re-download or cache by network flow certain files, to will cause asking for the consuming of network flow Topic.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, introduce applied by document handling method provided in an embodiment of the present invention Software environment.
As shown in Figure 1, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 1, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 1 The software program of document handling method provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation, so that This document processing method can be run based on Android operation system as shown in Figure 1.I.e. processor or terminal device can lead to It crosses and runs software program realization document handling method provided in an embodiment of the present invention in Android operation system.
In the first embodiment of the invention, Fig. 2 shows a kind of document handling method provided in an embodiment of the present invention, This method can be applied to the terminal device for the Android operation system for having as shown in Figure 1.As shown in Fig. 2, this document processing side Method includes step 201 and step 202:
Whether step 201, terminal device detection user meet the operation behavior of the first file cached in terminal device Preset condition.
In the embodiment of the present invention, user can be inputted the first file in the application program of terminal device, with touching It sends out terminal device and caches the first file;Terminal device in response to user input, by the one of the first file cache to terminal device A default storage region (the such as second default storage region);Terminal device can detecte user and delay in the second default storage region The operation behavior for the first file deposited.
Optionally, in the embodiment of the present invention, the first file can be audio file, video file, picture file or text This document etc., the embodiment of the present invention do not do any restriction herein.
Optionally, in the embodiment of the present invention, before above-mentioned steps 201, file process side provided in an embodiment of the present invention Method further includes step 301:
Step 301, terminal device obtain user to the operation behavior of the first file cached in terminal device.
Optionally, in the embodiment of the present invention, operation behavior may include any one of following behavior: user uses first The number of the first file is used continuously in the frequency of file, user, user uses the time interval of the first file, user twice in succession Whether the mark of the first file is added to preset path using the percentage of the first file and user every time.
It is understood that user refers to the first file using the percentage of the first file every time in the embodiment of the present invention The middle file used accounts for the percentage of entire first file;Continuously refer between operation twice without other any operations.
Illustratively, this sentences the first file to be illustrated for audio file.User opens music class application program Afterwards, song 1 is selected in music class application program, with the file of triggering terminal device plays song 1, and by the file of song 1 It caches to the second default storage region.Terminal device detects user and plays song to the operation behavior of the file of song 1, such as user Song 1 file frequency, user continuously play the number of the file of song 1, user play twice in succession song 1 file when Between interval, user play the percentage of the first file every time and user whether the mark of the file of song 1 is added to it is default Path (such as predetermined directory).
Optionally, in the embodiment of the present invention, preset condition may include following condition A, condition B, condition C, condition D and item At least one of part E.
Condition A: user is greater than or equal to the first preset threshold using the frequency of the first file.
In the embodiment of the present invention, user can use the total degree of the first file using the frequency of the first file for user. Terminal device may determine that whether user is greater than or equal to the first preset threshold using the frequency of the first file, to determine user's Whether operation behavior meets preset condition.
Illustratively, this sentences the first file to be illustrated for audio file.User is played by terminal device and is sung When the file of song 1, the file number that terminal device can play song 1 to user in one day is counted, and judges to count Number a whether be greater than or equal to the first preset threshold.
Condition B: the number that the first file is used continuously in user is greater than or equal to the second preset threshold.
Illustratively, this sentences the first file to be illustrated for audio file.User is played by terminal device and is sung When the file of song 1, it is b that terminal device, which gets user and continuously plays the number of the file of song 1, and whether terminal device judges b More than or equal to the second preset threshold.
Condition C: user uses the time interval of the first file to be less than or equal to preset duration twice in succession.
Illustratively, when user plays the file of song 1 by terminal device, terminal device gets user twice in succession The time interval for playing the file of song 1 is c minutes, and terminal device judges whether c is less than or equal to preset duration.
Condition D: user uses the percentage of the first file to be greater than or equal to third predetermined threshold value every time.
Illustratively, it is assumed that third predetermined threshold value 90%.When user plays the file of song 1 by terminal device, eventually It is a% that end equipment, which gets user and plays the percentage of the file of song 1, and terminal device judges whether a% is greater than or equal to 90%.
Condition E: the mark of the first file is added to preset path by user.
Optionally, in the embodiment of the present invention, the mark of the first file can be the title of the first file, the mark of the first file Know and is used for unique identification first file.
Illustratively, it is assumed that preset path is song catalog 1.When user plays the file of song 1 by terminal device, eventually Whether end equipment detection user by the title of the file of song 1 is added to song catalog 1.
It is understood that user can need to adjust the first preset threshold, according to itself in the embodiment of the present invention Two preset thresholds, preset duration and third predetermined threshold value.
Step 202, in the case where operation behavior meets preset condition, the first file is saved to terminal and is set by terminal device Target storage domain in standby.
Wherein, the region of the first file cached in target storage domain and terminal device is that the difference in terminal device is deposited Storage area domain.
Optionally, in the embodiment of the present invention, the first file can be copied to the target in terminal device and deposited by terminal device Storage area domain.
In the embodiment of the present invention, terminal device can the operation behavior for detecting user meet above-mentioned condition A, condition B, In the case where at least one of condition C, condition D and condition E, the first file cached in terminal device is copied to terminal and is set Target storage domain in standby.
Illustratively, this sentences user and meets above-mentioned condition B to the operation behavior of the first file cached in terminal device It is illustrated with for condition D.Assuming that third predetermined threshold value is 90%, the second preset threshold is 2.Terminal device judges that user broadcasts The percentage a% of file of song 1 of singing is equal to 90%, and user continuously plays the number b=3 of the file of song 1, then by terminal The file of the song 1 cached in the second default storage region in equipment is copied to the target storage domain in terminal device.
Optionally, in an implementation of the embodiment of the present invention, operation behavior may include that user uses every time The number and user of the percentage of one file and user's the first file of continuous use use the time of the first file twice in succession At least one of in interval.Correspondingly, in conjunction with Fig. 2, as shown in figure 3, above-mentioned steps 202 can specifically pass through step 202a and step Rapid 202b is realized:
Step 202a, the case where user uses the percentage of the first file to be greater than or equal to third predetermined threshold value every time Under, the first file is saved the first default storage region into terminal device by terminal device.
In the embodiment of the present invention, the percentage of the first file is used to be greater than or equal to third predetermined threshold value every time in user In the case of, the first file cached in terminal device can be moved to the first default storage region by terminal device.
Step 202b, it is greater than or equal to the in the number that the first file in the first default storage region is used continuously in user Two preset thresholds and/or user use twice in succession the time interval of the first file in the first default storage region be less than or In the case where preset duration, terminal device saves the first file in the first default storage region to target storage Domain.
In the embodiment of the present invention, terminal device, can will be in the first default storage region when executing above-mentioned steps 202b The first file be copied to target storage domain.
Due to user using the first file percentage be greater than or equal to third predetermined threshold value in the case where, terminal device The first file cached in terminal device can be moved to the first default storage region, therefore terminal device is judging user company It, can be directly from first when the continuous number for using the first file and/or user use the time interval of the first file twice in succession The first file is searched in default storage region, does not need that (such as second presets and deposit from the entire default storage region of terminal device Storage area domain) in search, thus save search the first file time-consuming.
Optionally, in the embodiment of the present invention, after above-mentioned steps 202, file process side provided in an embodiment of the present invention Method further includes step 203:
Step 203, terminal device delete the first file cached in terminal device.
Optionally, in the embodiment of the present invention, terminal device can be automatically deleted the first file cached in terminal device.
Illustratively, for terminal device in the case where not receiving the input of user's the first file of deletion, terminal device is silent Recognize the first file deleted and cached in terminal device.
For example, terminal device can be automatically deleted the first file cached in the second default storage region of terminal device.
Illustratively, in the embodiment of the present invention, in the case where the first file is moved to the first default storage region, terminal Equipment deletes the first file in the second default storage region in the first default storage region.
Optionally, in the embodiment of the present invention, terminal device can also delete the first default memory block according to the input of user The first file in domain.Specifically, in conjunction with Fig. 2, as shown in figure 4, after step 202, file provided in an embodiment of the present invention Processing method further includes step 401- step 404:
Step 401, terminal device receive the first input of user.
Wherein, the first input deletes the first file for triggering terminal equipment.
In the embodiment of the present invention, user can carry out the first input to the first file, delete first with triggering terminal equipment File.
Illustratively, this sentences terminal device to be illustrated for mobile phone.As shown in figure 5, user can open mobile phone " setting " interface 11 in 10 music class application program, and on " setting " interface 11 selection " remove cache file " choosing , the first file is deleted to trigger mobile phone 10.
Step 402 inputs, terminal device display reminding information on the display interface of terminal device in response to first.
Wherein, prompt information be used to indicate user whether the first file in delete target storage region.
Illustratively, after the option of " removing cache file " on user's click " setting " interface 11 as shown in Figure 5, such as Shown in Fig. 6, mobile phone 10 shows " whether the first file in delete target storage region " on the display interface 12 of mobile phone 10 Prompt information 13, and "Yes" icon and "No" icon for user's selection.
Step 403, terminal device, in response to the second input, are deleted eventually in the case where receiving the second input of user The first file cached in end equipment.
Wherein, the second input is for the first file in triggering terminal equipment not delete target storage region.
Illustratively, after user clicks "No" icon on " setting " interface 11 as shown in FIG. 6, mobile phone 10 only deletes The first file in two default storage regions.
Step 404, terminal device are inputted in response to third, are deleted eventually in the case where the third for receiving user is inputted The first file in the first file and target storage domain cached in end equipment.
Wherein, third input is for the first file in triggering terminal equipment delete target storage region.
Illustratively, after user clicks "Yes" icon on " setting " interface 11 as shown in FIG. 6, mobile phone 10 deletes second The first file in the first file and target storage domain in default storage region.
The embodiment of the present invention provides a kind of document handling method, and terminal device can be in user to caching in terminal device In the case that the operation behavior of first file meets preset condition, the first file is saved to the target storage into terminal device Domain.Since operation behavior of the user to the first file meets preset condition, the first file of characterization may be needed for user next time after The continuous file used, therefore terminal device saves the first file to target storage domain, realizes to the first file quickly, just It backs up promptly;Also, since terminal device will not be automatically deleted the first file in the domain of target storage, user makes next time When with the first file, terminal device needs not move through network flow and re-downloads or cache first file, saves net Network flow.
In second of embodiment of the present invention, Fig. 7 shows one kind of terminal device involved in the embodiment of the present invention Possible structural schematic diagram, as shown in fig. 7, the terminal device 70 may include: detection unit 71 and storage unit 72.
Wherein, detection unit 71, for detect user to the operation behavior of the first file cached in terminal device whether Meet preset condition.Storage unit 72, in the case where detection unit 71 detects operation behavior and meets preset condition, by the One file saves the target storage domain into terminal device.
In one possible implementation, aforesaid operations behavior includes any one of following behavior: user uses the The number of the first file is used continuously in the frequency of one file, user, user uses the time interval of the first file twice in succession, uses Family uses whether the percentage of the first file and user by the mark of the first file are added to preset path every time.
In one possible implementation, above-mentioned preset condition include following condition A, condition B, condition C, condition D and At least one of condition E.Wherein, condition A: user is greater than or equal to the first preset threshold using the frequency of the first file.Item Part B: the number that the first file is used continuously in user is greater than or equal to the second preset threshold.Condition C: user uses twice in succession The time interval of one file is less than or equal to preset duration.Condition D: user is greater than or is waited using the percentage of the first file every time In third predetermined threshold value.Condition E: the mark of the first file is added to preset path by user.
In one possible implementation, operation behavior includes the percentage that user uses the first file every time, and The number of user's the first file of continuous use and user use at least one in the time interval of the first file twice in succession.Phase It answers, storage unit 72 is specifically used for: using the percentage of the first file to be greater than or equal to third predetermined threshold value every time in user In the case where, the first file is saved to the first default storage region into terminal device;It is default in user's continuous use first The number of the first file in storage region be greater than or equal to the second preset threshold and/or user use twice in succession it is first pre- In the case that if the time interval of the first file in storage region is less than or equal to preset duration, by the first default storage region In the first file save to target storage domain.
In one possible implementation, the terminal device in the embodiment of the present invention further include: receiving unit, display are single Member and deletion unit.Wherein, receiving unit, for first file to be saved to the domain of target storage in storage unit 72, The first input of user is received, which deletes the first file for triggering terminal equipment.Display unit, in response to Received first input of receiving unit, the display reminding information on the display interface of terminal device, the prompt information are used to indicate User whether the first file in delete target storage region.Unit is deleted, is used for: in the feelings for the second input for receiving user Under condition, in response to the second input, the first file cached in terminal device is deleted, which is used for triggering terminal equipment not The first file in delete target storage region.Unit is deleted, is also used to ring in the case where the third for receiving user inputs It should be inputted in third, delete the first file in the first file and target storage domain cached in terminal device, the third is defeated Enter for the first file in triggering terminal equipment delete target storage region.
Terminal device 70 provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again for detailed description and beneficial effect.
In the third embodiment of the invention, a kind of Fig. 8 terminal device of each embodiment to realize the present invention it is hard Part structural schematic diagram.As shown in figure 8, the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio Output unit 103, sensor 105, display unit 106, user input unit 107, interface unit 108, is deposited input unit 104 The components such as reservoir 109, processor 110 and power supply 111.
It should be noted that it will be understood by those skilled in the art that terminal device structure shown in Fig. 8 is not constituted pair The restriction of terminal device, terminal device may include perhaps combining certain components or not than illustrating more or fewer components Same component layout.In the embodiment of the present application, terminal device includes but is not limited to mobile phone, tablet computer, laptop, the palm Upper computer, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 110, it is whether full to the operation behavior of the first file cached in terminal device for detecting user Sufficient preset condition;In the case where operation behavior meets preset condition, the first file is saved into the target into terminal device and is deposited Storage area domain.
Terminal device 100 provided by the embodiments of the present application can be realized terminal device in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again for detailed description and beneficial effect.
It should be understood that the embodiment of the present application in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Process ing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 capture mould in video The image data of the static images or video that are obtained in formula or image capture mode by image capture apparatus (such as camera) carries out Processing.Treated, and picture frame may be displayed on display unit 106.It can be with through treated the picture frame of graphics processor 1041 It is stored in memory 109 (or other storage mediums) or is sent via radio frequency unit 101 or network module 102.Wheat Gram wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be with The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in fig. 8, touch panel 1071 and display Panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present application also provides a kind of terminal device, including processor 110, and memory 109 is stored in On memory 109 and the computer program that can run on the processor 110, the computer program are executed by processor 110 Each process of Shi Shixian above method embodiment, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
The embodiment of the present application also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, realizes each process of above method embodiment when which is executed by processor, and can reach identical Technical effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic disk Or CD etc..
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form belongs within the protection of the application.

Claims (11)

1. a kind of document handling method is applied to terminal device, which is characterized in that the described method includes:
Whether detection user meets preset condition to the operation behavior of the first file cached in the terminal device;
In the case where the operation behavior meets the preset condition, first file is saved into the terminal device Target storage domain.
2. the method according to claim 1, wherein the operation behavior includes any one of following behavior:
The number of first file is used continuously using the frequency of first file, user in user, user makes twice in succession Use the percentage of first file and user whether will be described every time with the time interval of first file, user The mark of first file is added to preset path.
3. according to the method described in claim 2, it is characterized in that, the preset condition includes following condition A, condition B, condition C, at least one of condition D and condition E;
Condition A: user is greater than or equal to the first preset threshold using the frequency of first file;
Condition B: the number that first file is used continuously in user is greater than or equal to the second preset threshold;
Condition C: user is less than or equal to preset duration using the time interval of first file twice in succession;
Condition D: user is greater than or equal to third predetermined threshold value using the percentage of first file every time;
Condition E: the mark of first file is added to the preset path by user.
4. according to the method described in claim 3, it is characterized in that, the operation behavior includes that user uses described first every time The number of first file is used continuously in the percentage of file and user and user uses first file twice in succession Time interval at least one of;
It is described in the case where the operation behavior meets the preset condition, first file is saved to the terminal and is set Target storage domain in standby, comprising:
In the case where user is greater than or equal to the third predetermined threshold value using the percentage of first file every time, by institute It states the first file and saves the first default storage region into the terminal device;
It is greater than or equal to described the in the number that first file in the described first default storage region is used continuously in user Two preset thresholds and/or user were used twice in succession between the time of first file in the described first default storage region Every be less than or equal to the preset duration in the case where, by first file in the described first default storage region save to The target storage domain.
5. method according to claim 1-4, which is characterized in that described to save first file to described After target storage domain in terminal device, the method also includes:
The first input of user is received, first input deletes first file for triggering the terminal device;
In response to first input, the display reminding information on the display interface of the terminal device, the prompt information is used First file in the target storage domain whether is deleted in instruction user;
In the case where receiving the second input of user, in response to second input, deletes and cached in the terminal device First file, it is described second input for trigger the terminal device do not delete it is described in the target storage domain First file;
In the case where the third for receiving user inputs, is inputted in response to the third, delete and cached in the terminal device First file and the target storage domain in first file, third input is for triggering the terminal Equipment deletes first file in the target storage domain.
6. a kind of terminal device, which is characterized in that the terminal device includes:
Whether detection unit meets the operation behavior of the first file cached in the terminal device for detecting user default Condition;
Storage unit, in the case where the detection unit detects the operation behavior and meets the preset condition, by institute It states the first file and saves the target storage domain into the terminal device.
7. terminal device according to claim 6, which is characterized in that the operation behavior includes any in following behavior :
The number of first file is used continuously using the frequency of first file, user in user, user makes twice in succession Use the percentage of first file and user whether will be described every time with the time interval of first file, user The mark of first file is added to preset path.
8. terminal device according to claim 7, which is characterized in that the preset condition include following condition A, condition B, At least one of condition C, condition D and condition E;
Condition A: user is greater than or equal to the first preset threshold using the frequency of first file;
Condition B: the number that first file is used continuously in user is greater than or equal to the second preset threshold;
Condition C: user is less than or equal to preset duration using the time interval of first file twice in succession;
Condition D: user is greater than or equal to third predetermined threshold value using the percentage of first file every time;
Condition E: the mark of first file is added to the preset path by user.
9. terminal device according to claim 8, which is characterized in that the operation behavior includes described in user uses every time The number of first file is used continuously in the percentage of first file and user and user uses described first twice in succession At least one of in the time interval of file;
The storage unit, is specifically used for:
In the case where user is greater than or equal to the third predetermined threshold value using the percentage of first file every time, by institute It states the first file and saves the first default storage region into the terminal device;
It is greater than or equal to described the in the number that first file in the described first default storage region is used continuously in user Two preset thresholds and/or user were used twice in succession between the time of first file in the described first default storage region Every be less than or equal to the preset duration in the case where, by first file in the described first default storage region save to The target storage domain.
10. according to the described in any item terminal devices of claim 6-9, which is characterized in that the terminal device further include:
Receiving unit is received for saving first file to the target storage domain in the storage unit The first input of user, first input delete first file for triggering the terminal device;
Display unit, for being inputted in response to the receiving unit received described first, in display circle of the terminal device Display reminding information on face, the prompt information be used to indicate user whether delete in the target storage domain described first File;
Unit is deleted, in response to second input, deleting the end in the case where receiving the second input of user First file cached in end equipment, second input do not delete the target storage for triggering the terminal device First file in region;
The deletion unit is also used to input, delete in response to the third in the case where the third for receiving user is inputted First file in first file and the target storage domain cached in the terminal device, the third are defeated Enter and deletes first file in the target storage domain for triggering the terminal device.
11. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in document handling method the step of.
CN201810096431.0A 2018-01-31 2018-01-31 A kind of document handling method and terminal device Pending CN109947717A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810096431.0A CN109947717A (en) 2018-01-31 2018-01-31 A kind of document handling method and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810096431.0A CN109947717A (en) 2018-01-31 2018-01-31 A kind of document handling method and terminal device

Publications (1)

Publication Number Publication Date
CN109947717A true CN109947717A (en) 2019-06-28

Family

ID=67006027

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810096431.0A Pending CN109947717A (en) 2018-01-31 2018-01-31 A kind of document handling method and terminal device

Country Status (1)

Country Link
CN (1) CN109947717A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101109A1 (en) * 2012-10-09 2014-04-10 International Business Machines Corporation Backup management of software environments in a distributed network environment
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN105893173A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Caching data processing method and device
CN107608791A (en) * 2017-09-06 2018-01-19 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for removing cache file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140101109A1 (en) * 2012-10-09 2014-04-10 International Business Machines Corporation Backup management of software environments in a distributed network environment
CN105095107A (en) * 2014-05-04 2015-11-25 腾讯科技(深圳)有限公司 Buffer memory data cleaning method and apparatus
CN105893173A (en) * 2015-12-10 2016-08-24 乐视网信息技术(北京)股份有限公司 Caching data processing method and device
CN107608791A (en) * 2017-09-06 2018-01-19 深圳市金立通信设备有限公司 A kind of method, terminal and computer-readable recording medium for removing cache file

Similar Documents

Publication Publication Date Title
CN110062105A (en) A kind of interface display method and terminal device
CN110413364A (en) A kind of information processing method and terminal
CN109543099A (en) A kind of content recommendation method and terminal device
CN108345474A (en) Startup method, starter and the mobile terminal of application program
CN109857495A (en) A kind of display control method and terminal device
CN110489385A (en) A kind of information processing method and terminal device
CN109522278A (en) A kind of file memory method and terminal device
CN110225178A (en) A kind of information display method and terminal device
CN107704133A (en) Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium
CN110049187A (en) A kind of display methods and terminal device
CN110046013A (en) A kind of interface display method and terminal device
CN109922265A (en) Video capture method and terminal device
CN108446338A (en) A kind of method and terminal preserving browsing record
CN109753331A (en) A kind of information preview method and mobile terminal
CN109816679A (en) A kind of image processing method and terminal device
CN108833684A (en) A kind of information cuing method and terminal device
CN108920054A (en) A kind of application recommended method and terminal
CN108804151A (en) A kind of method and terminal of re-launching applications
CN109117054A (en) A kind of display control method and terminal
CN108170559A (en) A kind of data back up method and terminal
CN108008892A (en) The method and terminal that a kind of function enables
CN107992378B (en) A kind of document handling method and mobile terminal
CN110086705A (en) A kind of method and terminal device sending image
CN109992192A (en) A kind of interface display method and terminal device
CN110012152A (en) A kind of interface display method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190628