The content of the invention
The present invention solves the technical problem of the method and mobile terminal that provide a kind of cleaning backstage, can realize
Backstage is cleared up under special scenes in time, it is to avoid background application produces interference to user.
To solve the above problems, one aspect of the present invention is:A kind of method on cleaning backstage is provided, is wrapped
Include:
Judge currently to whether there is default schedule, when it is present, then read the content of the schedule, and divide
Analysis draws the type of the schedule;
Judge whether that the application program being associated with the type of the schedule is currently running, when it is present, then
Terminate the program process.
Wherein, the application program method to set up that the type with the schedule is associated includes:
The application program of the type of schedule and needs cleaning is associated;
Preserve the schedule type and with the corresponding relation between the application program.
Wherein, the application program for judging whether to be associated with the type of the schedule is currently running, bag
Include:
Judge the schedule type whether be preserve schedule type;
When the type of the schedule is the type of the schedule for preserving, continuation judges and the schedule
Whether the corresponding application program of type is currently running, when the corresponding application program is currently running, then judge exist with
The associated application program of the type of the schedule is currently running.
Wherein, the type of the schedule is any one in office, meeting, trip, rest, and the application program is
Any one in game, audio/video player, social activity, chat.
Wherein, it is characterised in that methods described also includes:
Judge whether presently described schedule terminates, at the end of the schedule, the application program of end is entered
Cheng Jinhang recovers.
To solve the above problems, another technical solution used in the present invention is:A kind of mobile terminal is provided, including:
Agenda analysis module, for judging currently with the presence or absence of default schedule, when it is present, then reads the day
The content that journey is arranged, and analyze the type for drawing the schedule;
Process manager module, for the application program that judges whether to be associated with the type of the schedule
Operation, when it is present, then terminates the program process.
Wherein, the terminal also includes associate management module, for setting what is be associated with the type of the schedule
Application program, including:
Associative cell, for the application program of the type of schedule and needs cleaning to be associated;
Storage unit, for preserve the schedule type and with the corresponding relation between the application program.
Wherein, the process manager module is further included:
First judging unit, for judge the schedule type whether be preserve schedule type;
Second judging unit, during for being the type of the schedule for preserving when the type of the schedule, continues to sentence
Whether application program corresponding with the type of the schedule of breaking is currently running, when the corresponding application program is currently running
When, then judge that there is the application program being associated with the type of the schedule is currently running.
Wherein, the type of the schedule that the agenda analysis module analysis draw is in office, meeting, trip, rest
Any one, the application program that the process manager module terminates is any in game, audio/video player, social activity, chat
Kind.
Wherein, the process manager module also includes:
3rd judging unit, for judging whether presently described schedule terminates, at the end of the schedule, will
The program process of end is recovered.
The beneficial effects of the invention are as follows:By recognizing the type of current schedule, in time by with the schedule
The associated background application of type is cleared up, it is to avoid user is interfered, and reduces power consumption.
Specific embodiment
The present invention is illustrated with reference to the accompanying drawings and detailed description.
Refering to Fig. 1, Fig. 1 is the schematic flow sheet of the embodiment of method one on present invention cleaning backstage, and methods described includes:
S100:Judge currently to whether there is default schedule, when it is present, then read the interior of the schedule
Hold, and analyze the type for drawing the schedule.
Mobile terminal reads the file of storage schedule, judges current time with the presence or absence of default schedule, tool
Some important schedules can be set keep in advance by body ground, user, for example, setting same day 10-11 points has a schedule
Arrange to participate in meeting;Afternoon 2-3 points to have a schedule be trip etc. of driving, if then reaching time for pre-setting,
It is judged as there is default schedule, when current time is not previously provided with schedule by user, is then judged as not
There is default schedule.
When being judged as that current time has default schedule, then the content of the schedule is read, extract institute
The keyword in content is stated, and the type of the schedule is drawn according to crucial word analysis.For example, when the schedule
Content is " participating in so-and-so meeting in certain somewhere ", according to keyword " participations ", " meeting ", analyzes and draws the schedule
Type is " meeting ";When the schedule content is " driveing to park ", according to keyword " driving ", analysis draws the day
The type that journey is arranged is " trip ".
Specifically, step S100 can analyze the type for drawing the schedule according to the content of the schedule
It is any one in office, meeting, trip, rest.
S200:Judge whether that the application program being associated with the type of the schedule is currently running, work as presence
When, then terminate the program process.
After step S100 analyses draw the type of the schedule, continue to determine whether exist and the schedule
The associated application program of type be currently running, when it is present, then terminate the program process, wherein, in this implementation
The application program being associated with the type of the schedule in example is pre-set by user.
Fig. 2 is referred to, Fig. 2 present invention sets the application program method flow being associated with the type of the schedule and shows
It is intended to, methods described includes:
S110:The application program of the type of schedule and needs cleaning is associated.
With the application program of cleaning is needed be associated for the type of schedule in advance by user, for example, will trip and social activity,
The application programs such as chat are associated, and the social, chat application may include such as QQ, wechat chat software;By meeting or
Office be associated with the application program such as game, audio/video player, the application journey that the type of the schedule is cleared up with needs
Association between sequence is voluntarily set according to actual needs by user, is not limited herein.
Specifically, the application program is any one in game, audio/video player, social activity, chat.
S120:Preserve the schedule type and with the corresponding relation between the application program.
Can in table form be carried out by the type of the schedule and with the corresponding relation between the application program
Preserve.
It is understood that in other embodiments, the type of the schedule and between the application program
Corresponding relation can be set by system, be not necessarily required to user and pre-set.
Fig. 3 is referred to, the application being associated with the type of the schedule is judged whether in the step S200
Program is currently running, and specifically includes:
S210:Judge the schedule type whether be preserve schedule type.
After step S100 analyses draw the type of the schedule, the type that the type and step S120 are preserved
Compare, judge the type whether be step S120 preserve schedule type.
S220:When the type of the schedule is the type of the schedule for preserving, continuation judges and the schedule
Whether the corresponding application program of type of arrangement is currently running, and when the corresponding application program is currently running, then judges
The application program being associated in the presence of the type with the schedule is currently running.
When it is the type that step S120 is preserved that step S210 judges the type, the need for reading the type correspondence
The application program of cleaning, and judge that whether the application program, in operation, when the application program is currently running, is then judged
The application program being associated in the presence of the type with the schedule is currently running.
When being currently running in the presence of the application program being associated with the type of the schedule, then terminate the application journey
The process of sequence, does not do any action otherwise.
In other embodiments, also include after step S200:Judge whether presently described schedule terminates, when described
At the end of schedule, the program process of end is recovered.Specifically, the corresponding end of the schedule is read
Time, and judge whether current time reaches the end time, when reaching, then judge presently described schedule
Terminate, and the program process of the end is recovered, facilitate user to open the application program.
Fig. 4 is referred to, Fig. 4 is the structural representation of the embodiment of mobile terminal of the present invention, and the mobile terminal includes:Day
Journey analysis module 41, process manager module 42.
Agenda analysis module 41, for judging currently with the presence or absence of default schedule, when it is present, then reads described
The content of schedule, and analyze the type for drawing the schedule.
Agenda analysis module 41 reads the file of storage schedule, judges that current time is pacified with the presence or absence of default schedule
Row, when it is present, reads the content of the schedule, extracts the keyword of the content, is obtained according to the crucial word analysis
Go out the type of the schedule, for example, when the content of the schedule is " participating in so-and-so meeting in certain somewhere ", it is described
According to keyword " participation ", " meeting ", analysis show that the type of the schedule is " meeting " to agenda analysis module 41.
The agenda analysis module 41 can analyze the type of the schedule for drawing in office, meeting, trip, rest
Any one.
Process manager module 42, for the application program that judges whether to be associated with the type of the schedule just
In operation, when it is present, then terminate the program process.
Process manager module 42 analyzes the schedule type for drawing according to agenda analysis module 41, judges and the type
Whether associated application program is currently running, and when described program is currently running, then terminates described program.
The application program that the process manager module 42 terminates is any in game, audio/video player, social activity, chat
Kind.
The mobile terminal also includes associate management module 43, for setting what is be associated with the type of the schedule
Application program, including:
Associative cell 431, for the application program of the type of schedule and needs cleaning to be associated.
With the application program of cleaning is needed be associated the type of schedule in advance by associative cell 431, for example, will trip
Be associated with the application program such as social, chat, it will view or handle official business with play, audio/video player is associated.
Storage unit 432, for preserve the schedule type and with the corresponding relation between the application program.
Please continue to refer to Fig. 4, the process manager module 42 is specifically included:
First judging unit 421, for judge the schedule type whether be preserve schedule type.
After the analysis of schedule analysis module 41 draws the type of the schedule, the first judging unit 421 will be described
The type that type is preserved with storage unit 432 is contrasted, and judges whether the type is that the schedule that storage unit 432 is preserved is pacified
The type of row.
Second judging unit 422, during for being the type of the schedule for preserving when the type of the schedule, continues
Judge whether application program corresponding with the type of the schedule is currently running, when the corresponding application program is transported
During row, then judge that there is the application program being associated with the type of the schedule is currently running.
After it is the type that storage unit 432 is preserved that the first judging unit 421 judges the type of the schedule, the
The application program cleared up the need for the type correspondence that two judging units, 422 reading and saving unit 432 is preserved, and judge described
Whether application program is currently running, when the second judging unit 422 judges the application that is associated with the type of the schedule
When program is currently running, then terminate the application program.
Meanwhile, in other embodiments, the process manager module 42 also includes the 3rd judging unit 423, for judging
Whether presently described schedule terminates, and at the end of the schedule, the program process of end is recovered.
3rd judging unit 423 is contrasted the current time end time corresponding with the schedule, is sentenced
Whether the schedule of breaking is over, and when the schedule is over, then the application program that will be terminated is carried out
Recover, facilitate user to open the application program.
Fig. 5 is referred to, Fig. 5 is the structural representation of another embodiment of mobile terminal of the present invention.The terminal can be performed
The step of terminal is performed in the above method.Related content is described in detail in referring to the above method, be will not be repeated here.
The terminal includes:Receiver 51, processor 52, memory 53 and transmitter 54.
Receiver 51 is used for receiving network data.
Memory 53 is used for storage program area, instruction that processor 52 is performed and the message that receives etc..
Transmitter 54 is used to send data.
Processor 52 be used for pre-set preserve schedule type and and need cleaning application program between it is right
Should be related to, and judge that current time, with the presence or absence of default schedule, when it is present, then reads the interior of the schedule
Hold, and analyze and draw the type of the schedule, the type according to the schedule continue to determine whether to exist with it is described
The associated application program of the type of schedule is currently running, and when it is present, then terminates the program process.
In other embodiments, the processor 52 is additionally operable to judge whether presently described schedule terminates, when described
At the end of schedule, the program process of end is recovered.
Processor 52 can be analyzed and show that the type of schedule is any one in office, meeting, trip, rest, energy
Enough application programs for terminating are any one in game, audio/video player, social activity, chat.
Prior art is different from, the type by recognizing current schedule of the invention in time will be with the schedule
The associated background application of type cleared up, reduce power consumption, it is to avoid user is interfered.
Embodiments of the invention are the foregoing is only, the scope of the claims of the invention is not thereby limited, it is bored to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.