CN106569585B - A kind of method and terminal managing program process - Google Patents

A kind of method and terminal managing program process Download PDF

Info

Publication number
CN106569585B
CN106569585B CN201610984453.1A CN201610984453A CN106569585B CN 106569585 B CN106569585 B CN 106569585B CN 201610984453 A CN201610984453 A CN 201610984453A CN 106569585 B CN106569585 B CN 106569585B
Authority
CN
China
Prior art keywords
application
list
program
location information
default
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
CN201610984453.1A
Other languages
Chinese (zh)
Other versions
CN106569585A (en
Inventor
杨昕若
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Microphone Holdings Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610984453.1A priority Critical patent/CN106569585B/en
Publication of CN106569585A publication Critical patent/CN106569585A/en
Application granted granted Critical
Publication of CN106569585B publication Critical patent/CN106569585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/329Power saving characterised by the action undertaken by task scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of methods and terminal for managing program process, wherein, the described method includes: if detecting, triggering enters the predetermined registration operation of battery saving mode, then from running background record, corresponding first list of application in the preset time period before detecting the predetermined registration operation is obtained;Current location information is obtained by preset polling cycle;According to the default corresponding relationship of preset location information and list of application, corresponding second list of application of the current location information is obtained;According to the corresponding frequency of use of application program each in first list of application and second list of application, program process to be terminated is determined;The corresponding application program of program process to be terminated out of service.The terminal of that embodiment of the invention can effectively manage program process when terminal is in standby, and reduce the resources occupation rate of standby mode, save power consumption, and then extend stand-by time.

Description

A kind of method and terminal managing program process
Technical field
The present invention relates to electronic technology field more particularly to a kind of methods and terminal for managing program process.
Background technique
With the development of intelligent terminal, the function of intelligent terminal is stronger and stronger, and people can be from answering in intelligent terminal It is downloaded and is installed application program (Application, App) with market/shop, to enrich the function of intelligent terminal.
As the application program installed in intelligent terminal is more and more, intelligent terminal go out shield standby when still there are many application It will continue to run, the not used application program of active user increases its power consumption because of occupying system resources;But blindly cleaning is in The application program of operating status, which may result in user, can not continue to use certain functions in standby mode.For example, working as terminal When into standby mode, terminate the process for being currently at all applications of operating status, this will lead to user and is not available step counting Function or user can not play music etc. in standby mode.
In conclusion in the prior art, when intelligent terminal is in standby, cannot effectively manage application program into Journey results in waste of resources because of the application program occupying system resources that user does not use, and then it is standby to increase stand-by power consumption shortening Time.
Summary of the invention
The embodiment of the present invention provides a kind of method and terminal for managing program process, can be in standby shape in terminal When state, program process is effectively managed, reduces the resources occupation rate of standby mode, saves power consumption, and then extend stand-by time.
In a first aspect, the embodiment of the invention provides a kind of methods for managing program process, this method comprises:
If detecting, triggering enters the predetermined registration operation of battery saving mode, from running background record, obtains detecting Corresponding first list of application in preset time period before stating predetermined registration operation;
Current location information is obtained by preset polling cycle;
According to the default corresponding relationship of preset location information and list of application, it is corresponding to obtain the current location information The second list of application;
According to the corresponding frequency of use of application program each in first list of application and second list of application, determine Program process to be terminated;
The corresponding application program of program process to be terminated out of service.
On the other hand, the embodiment of the invention provides a kind of terminal, which includes:
First acquisition unit, if being recorded for detecting that triggering enters the predetermined registration operation of battery saving mode from running background In, obtain corresponding first list of application in the preset time period before detecting the predetermined registration operation;
Poll units, for obtaining current location information by preset polling cycle;
Second acquisition unit, for the default corresponding relationship according to preset location information and list of application, described in acquisition Corresponding second list of application of current location information;
Determination unit, for corresponding according to each application program in first list of application and second list of application Frequency of use determines program process to be terminated;
Administrative unit, for the corresponding application program of the program process to be terminated out of service.
If the embodiment of the present invention passes through the predetermined registration operation for detecting that triggering enters battery saving mode, recorded from running background In, obtain corresponding first list of application in the preset time period before detecting predetermined registration operation;By preset polling cycle Obtain current location information;According to the default corresponding relationship of location information and list of application, current location information pair is obtained The second list of application answered;According to the corresponding use of application program each in first list of application and second list of application Frequency determines program process to be terminated;The corresponding application program of program process to be terminated out of service. Since terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and User, which is obtained, according to the first list of application corresponding in the preset time period before detecting predetermined registration operation uses the short of application Phase behavior determines that user may need application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Information, and clear up the user in running background may not be needed using application program process, and then prevent user may not Application program occupying system resources to be used are needed, reduce power consumption to extend stand-by time.
Detailed description of the invention
Technical solution in order to illustrate the embodiments of the present invention more clearly, below will be to needed in embodiment description Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic flow diagram of method for managing program process provided in an embodiment of the present invention;
Fig. 2 be another embodiment of the present invention provides a kind of management program process method schematic flow diagram;
Fig. 3 is the schematic diagram for the first list of application that one embodiment of the invention provides;
Fig. 4 is the schematic diagram for the second list of application that one embodiment of the invention provides;
Fig. 5 be one embodiment of the invention provide comprising needing the white list of the application information in running background to show It is intended to;
Fig. 6 be another embodiment of the present invention provides comprising need running background application information white list Schematic diagram;
Fig. 7 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 8 be another embodiment of the present invention provides a kind of terminal schematic block diagram;
Fig. 9 is a kind of terminal schematic block diagram that yet another embodiment of the invention provides.
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.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in description of the invention and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, terminal described in the embodiment of the present invention is including but not limited to such as with touch sensitive surface The mobile phone, laptop computer or tablet computer of (for example, touch-screen display and/or touch tablet) etc it is other just Portable device.It is to be further understood that in certain embodiments, the equipment is not portable communication device, but there is touching Touch the desktop computer of sensing surface (for example, touch-screen display and/or touch tablet).
In following discussion, the terminal including display and touch sensitive surface is described.It is, however, to be understood that It is that terminal may include one or more of the other physical user-interface device of such as physical keyboard, mouse and/or control-rod.
Terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application journey Sequence, word-processing application, website create application program, disk imprinting application program, spreadsheet applications, game application Program, telephony application, videoconference application, email application, instant messaging applications, exercise Support application program, photo management application program, digital camera application program, digital camera application program, web-browsing application Program, digital music player application and/or video frequency player application program.
The various application programs that can be executed at the terminal can be used such as touch sensitive surface at least one is public Physical user-interface device.It can adjust and/or change among applications and/or in corresponding application programs and touch sensitive table The corresponding information shown in the one or more functions and terminal in face.In this way, the public physical structure of terminal is (for example, touch Sensing surface) it can support the various application programs with user interface intuitive and transparent for a user.
Referring to Figure 1, Fig. 1 is a kind of exemplary flow of method for managing program process provided in an embodiment of the present invention Figure.The executing subject that the method for program process is managed in the present embodiment is terminal.Terminal can be mobile phone, tablet computer etc. Mobile terminal, but it is not limited to this, can also be other terminals.The method of management program process as shown in Figure 1 can wrap Include following steps:
S101: if detecting, triggering enters the predetermined registration operation of battery saving mode, and from running background record, acquisition is being detected Corresponding first list of application in preset time period before to the predetermined registration operation.
Terminal obtains running background record when detecting that triggering enters the predetermined registration operation of battery saving mode from database, And obtained in the preset time period before detecting the predetermined registration operation according to running background record, each of running background applies journey The corresponding frequency of use of sequence, and the first list of application is formed according to the corresponding frequency of use of each application program got.It is default It is into the preset time period before battery saving mode in period.First list of application is answered for what user may be again started up in a short time Use list.Terminal can analyze the short-term row using application program of user within a preset period of time by the first list of application For.
Wherein, the application program for including in the first list of application can successively be arranged by the sequence of frequency of use from high to low Column, can also be arranged successively, herein with no restrictions by the sequence of frequency of use from low to high.
The predetermined registration operation that triggering enters battery saving mode can be user and send screen locking instruction by screen locking key, be also possible to end End is detecting that current time arrived the corresponding timing of preset executions screen locking operation and (have not been obtained within a certain period of time User's operation).The timing can be 5 seconds or 10 seconds etc..
The predetermined registration operation that triggering enters battery saving mode can also be that current electric quantity is lower than default power threshold.
It is understood that the first list of application described in the present embodiment be included in detect the predetermined registration operation it In preceding preset time period, the file of each application information (title, frequency of use etc.) of running background or message etc. are in Existing/existence form includes being not limited to can also be that the form of text document exists with table, can also be the shape with data packet Formula exists, herein with no restrictions.
S102: current location information is obtained by preset polling cycle.
Terminal is obtained the location information itself being presently in by preset polling cycle using location technology.
Wherein, location technology may include when be not limited to global positioning system (Global Positioning System, GPS).Preset polling cycle, which can be, positioned terminal every 5 minutes, obtained the current location information of terminal.It is default Polling cycle be not limited to 5 minutes, can also be configured according to actual needs, herein with no restrictions.The position being presently in Confidence breath can be geographical location information, be also possible to the mark (for example, family, company etc.) of specified place.
It is understood that not limiting the sequence that executes of step S101 and S102 in the present embodiment, terminal can first be held Row step S101 executes step S102 again, or first carries out step S102 and execute step S101 again, also may be performed simultaneously step S101 and S102.
S103: according to the default corresponding relationship of location information and list of application, it is corresponding to obtain the current location information The second list of application.
Terminal obtains the default corresponding relationship of pre-stored location information and list of application, location information from database With the default corresponding relationship of list of application, current corresponding second list of application of location information of terminal is obtained.For example, in terminal The corresponding list of application in office, the corresponding list of application of home address etc. has been stored in advance.
Second list of application includes the application program used in the location information and the corresponding user of the location information Information, the information of application program include but is not limited to application program mark and its corresponding access times, using tables such as times Levy the information of frequency of use.
Next application that second list of application identity user long-term action may use under the scene of current location, terminal User can be obtained from the second list of application uses the long-term habits of application program in the corresponding place of current location information.
Second list of application can be frequency applications list, i.e. the application program for including in the second list of application is corresponding to be made It is greater than predeterminated frequency threshold value with frequency.
It is understood that the second list of application described in the present embodiment is, to include that current location information is corresponding transported The file or message of row or each application information (title, frequency of use etc.) being currently running, presentation/existence form include It is not limited to can also be that the form of text document exists with table, can also be in the form of data packet and exist, do not do herein Limitation.
S104: frequency is used according to application program each in first list of application and second list of application is corresponding Rate determines program process to be terminated.
Terminal is according to the corresponding frequency of use of application program each in the first list of application and the second list of application, by using frequently The sequence of rate from high to low successively determines the application needed in running background from the first list of application and the second list of application Program.
Wherein, terminal can by from the first list of application determine needs running background application program, and will From the second list of application determine needs running background application program, by the sequence staggered row of frequency of use from high to low Sequence forms third list.
For example, if taking out the highest 1-1 application information of frequency of use from the first list of application, 1-2 is answered With program information ... ..., 1-n application information, n is the positive integer greater than 2;It takes out from the second list of application using frequency The highest 2-1 application information of rate, 2-2 application information ... ..., 2-n application information, n are greater than 2 Positive integer.
So terminal can answer 1-1 application information, the 1-2 application information ... ... of taking-up, 1-n Use program information;2-1 application information, 2-2 application information ... ..., 2-n application information are pressed using frequency Rate is ranked up from high to low are as follows: 1-1 application information, 2-1 application information, 1-2 application information, 2-2 application information ..., 1-n application information, 2-n application information, and form third list.
Terminal obtained from third list according to preset Minimal Protective value with it is pre- corresponding to preset Minimal Protective value The information of fixed number purpose application program.The application program with predetermined number corresponding to preset Minimal Protective value be need after The application program of reforwarding row.
Assuming that preset Minimal Protective value is N, predetermined number corresponding with preset Minimal Protective value is M, then M >=N. N is used to identify the quantity needed in the application process of running background, the smaller mark application program that currently needs to remove of the value of N into The number of journey is bigger.What the application program for the number C=current background operation for needing application program out of service to carry out carried out Number-M.
Terminal, will be in addition to the application program for needing to continue to run after determining the application information that needs continue to run The corresponding progress recognizing of other applications be program process to be terminated
The application program filtered out from the first list of application and the second list of application is carried out to the purpose of staggered-sequence It is: takes into account the first list of application and the second list of application, that is, takes into account acts and efforts for expediency and the long-term habits of user, thus point Analysis user may need application program to be used, and with can be when detecting enabled instruction, the quick start enabled instruction be corresponding Application program, reduce user wait application program launching consumed by the time.
S105: the corresponding application program of program process to be terminated out of service.
Terminal obtains program process to be terminated from the program process that current background is run, and out of service, The corresponding application program of program process to be terminated.
It is understood that terminal is in the corresponding background application of program process to be terminated out of service, locking is eventually The display screen at end.
Above scheme from running background record, obtains if terminal detects that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting predetermined registration operation;Work as by the acquisition of preset polling cycle Preceding location information;According to the default corresponding relationship of location information and list of application, current location information corresponding is obtained Two list of application;According to the corresponding frequency of use of application program each in first list of application and second list of application, Determine program process to be terminated;The corresponding application program of program process to be terminated out of service.Due to Terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and according to Corresponding first list of application obtains user and uses the short-term row of application in the preset time period before detecting predetermined registration operation To determine that user may need the letter of application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Breath, and clear up the user in running background may not be needed using application program process, and then prevent user that may be not required to Application program occupying system resources to be used reduce power consumption to extend stand-by time.
Refer to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of management program process method signal Flow chart.The executing subject that the method for program process is managed in the present embodiment is terminal.Terminal can be mobile phone, plate electricity The mobile terminals such as brain, but it is not limited to this, can also be other terminals.The method of management program process as shown in Figure 2 It can comprise the following steps that
S201: if detecting, triggering enters the predetermined registration operation of battery saving mode, and from running background record, acquisition is being detected Corresponding first list of application in preset time period before to the predetermined registration operation.
Terminal obtains running background record when detecting that triggering enters the predetermined registration operation of battery saving mode from database, And obtained in the preset time period before detecting the predetermined registration operation according to running background record, each of running background applies journey The corresponding frequency of use of sequence, and the first list of application is formed according to the corresponding frequency of use of each application program got.It is default It is into the preset time period before battery saving mode in period.First list of application is answered for what user may be again started up in a short time Use list.Terminal can analyze the short-term row using application program of user within a preset period of time by the first list of application For.Preset time period can be a hour, and but it is not limited to this, can specifically be configured, not do according to actual needs herein Limitation.
Wherein, the application program for including in the first list of application can successively be arranged by the sequence of frequency of use from high to low Column, can also be arranged successively, herein with no restrictions by the sequence of frequency of use from low to high.
The predetermined registration operation that triggering enters battery saving mode can be user and send screen locking instruction by screen locking key, be also possible to end End is detecting that current time arrived the corresponding timing of preset executions screen locking operation and (have not been obtained within a certain period of time User's operation).The timing can be 5 seconds or 10 seconds etc..
The predetermined registration operation that triggering enters battery saving mode can also be that current electric quantity is lower than default power threshold.
It is understood that the first list of application described in the present embodiment be included in detect the predetermined registration operation it In preceding preset time period, the file of each application information (title, frequency of use etc.) of running background or message etc. are in Existing/existence form includes being not limited to can also be that the form of text document exists with table, can also be the shape with data packet Formula exists, herein with no restrictions.
It is the schematic diagram that the present invention is the first list of application that an embodiment provides also referring to Fig. 3, Fig. 3.Such as Fig. 3 institute Show, the application information for including in the first list of application respectively corresponds office application, short message application, wechat application, connection People's application, picture library application, QQ application, pedometer application, 12306 ticket booking applications etc..
S202: current location information is obtained by preset polling cycle.
Terminal is obtained the location information itself being presently in by preset polling cycle using location technology.
Wherein, location technology may include when be not limited to global positioning system (Global Positioning System, GPS).Preset polling cycle, which can be, positioned terminal every 5 minutes, obtained the current location information of terminal.It is default Polling cycle be not limited to 5 minutes, can also be configured according to actual needs, herein with no restrictions.The position being presently in Confidence breath can be geographical location information, be also possible to the mark (for example, family, company etc.) of specified place.
It is understood that not limiting the sequence that executes of step S201 and S202 in the present embodiment, terminal can first be held Row step S201 executes step S202 again, or first carries out step S202 and execute step S201 again, also may be performed simultaneously step S201 and S202.
S203: according to the default corresponding relationship of location information and list of application, it is corresponding to obtain the current location information The second list of application.
Terminal obtains the default corresponding relationship of pre-stored location information and list of application, location information from database With the default corresponding relationship of list of application, current corresponding second list of application of location information of terminal is obtained.For example, in terminal The corresponding list of application in office, the corresponding list of application of home address etc. has been stored in advance.
Second list of application includes the application program used in the location information and the corresponding user of the location information Information, the information of application program include but is not limited to application program mark and its corresponding access times, using tables such as times Levy the information of frequency of use.
Next application that second list of application identity user long-term action may use under the scene of current location, terminal User can be obtained from the second list of application uses the long-term habits of application program in the corresponding place of current location information.
Second list of application can be frequency applications list, i.e. the application program for including in the second list of application is corresponding to be made It is greater than predeterminated frequency threshold value with frequency.
It is understood that the second list of application described in the present embodiment is, to include that current location information is corresponding transported The file or message of row or each application information (title, frequency of use etc.) being currently running, presentation/existence form include It is not limited to can also be that the form of text document exists with table, can also be in the form of data packet and exist, do not do herein Limitation.
Referring to Figure 4 together, Fig. 4 is the schematic diagram for the second list of application that one embodiment of the invention provides.Wherein, Fig. 4- 1 is the schematic diagram of corresponding second list of application in position 1, and Fig. 4-2 is the schematic diagram of corresponding second list of application in position 2.
If the current location information corresponding position 1 of terminal, terminal gets position 1 corresponding second as shown in Fig. 4-1 List of application.The application information that second list of application includes respectively corresponds wechat application, discussion bar application, QQ application, microblogging Using, 12306 ticket booking application.Include in second list of application as shown in Fig. 4-1 it is each application by frequency of use from high to low Sequence arranged.
If the current location information corresponding position 2 of terminal, terminal gets position 2 corresponding second as shown in the Fig. 4-2 List of application.The application information that second list of application includes respectively corresponds Meituan application, QQ is applied, Taobao applies, is easy-to-use It converges and applies, reads application.Each application for including in second list of application as shown in Fig. 4-1 is by frequency of use from high to low suitable Sequence is arranged.
It is understood that before step S203, shown method can also include:
Obtain the current location information of preset number;
According to the current location information of the preset number, judge that the adjacent polling cycle of any two obtains Whether the corresponding distance of the current location information got is less than or equal to pre-determined distance threshold value;
If the distance is less than or equal to the pre-determined distance threshold value, according to operation data in first time and described Current location information establishes the default corresponding relationship of the preset location information and list of application;Wherein, described first when Between be the time corresponding to the polling cycle of the preset number;
If the distance be greater than the pre-determined distance threshold value, according in first time operation data and each wheel The period corresponding current location information is ask, the corresponding list of application of the current location information is updated.
For example, it is assumed that with 5 minutes for a polling cycle, preset number 12, then, terminal obtains 12 polling cycles Corresponding location information;And judge in 12 location informations, corresponding two positions of the adjacent polling cycle of any two Whether the distance between information is less than or equal to pre-determined distance threshold value.Wherein, pre-determined distance threshold value can be according to preset location institute The area accounted for is configured, herein with no restrictions.
Terminal is in confirming 12 location informations, between corresponding two location informations of the adjacent polling cycle of any two Distance be respectively less than or be equal to pre-determined distance threshold value, terminal recognition be in 12 polling cycles, user is in same place.Eventually End obtains operation data (the application journey that terminal is run of within 12 polling cycles corresponding period (5*12=60 minutes) The mark of sequence and the corresponding running frequency of each application program) to establish list of application, and by the list of application and this 12 This corresponding location information of a polling cycle establishes mapping relations, and is associated with preservation in the database.
It is understood that terminal can establish the corresponding list of application of multiple location informations in this way, according to The corresponding relationship of at least one location information and list of application obtains preset location information and list of application in step S203 Default corresponding relationship.
Terminal can also be updated according to the application information in log when the corresponding application of same position information arranges Table.For example, terminal confirm 12 location informations in, between corresponding two location informations of the adjacent polling cycle of any two Distance be greater than pre-determined distance threshold value when, according in 12 polling cycles corresponding time operation data and each poll week Phase corresponding current location information, updates the corresponding list of application of current location information.
For example, terminal is after establishing the default corresponding relationship of preset position information and list of application, if in the 6th poll The distance between period corresponding first location information second location information corresponding with the 7th round inquiry period is greater than pre-determined distance Threshold value, terminal from the operation data in 12 polling cycles corresponding time, obtain the first polling cycle to the according to timestamp Operation data in the six polling cycles corresponding period, and the corresponding application of first location information is updated according to the operation data The information that list includes.Terminal can also ask the operation in the period to the 12nd polling cycle corresponding period according to 7th round Data update the information that the corresponding list of application of second location information includes.
S204: frequency is used according to application program each in first list of application and second list of application is corresponding Rate determines program process to be terminated.
Terminal is according to the corresponding frequency of use of application program each in the first list of application and the second list of application, by using frequently The sequence of rate from high to low successively determines the application needed in running background from the first list of application and the second list of application Program.
Wherein, terminal can by from the first list of application determine needs running background application program, and will From the second list of application determine needs running background application program, by the sequence staggered row of frequency of use from high to low Sequence forms third list.
For example, if taking out the highest 1-1 application information of frequency of use from the first list of application, 1-2 is answered With program information ... ..., 1-n application information, n is the positive integer greater than 2;It takes out from the second list of application using frequency The highest 2-1 application information of rate, 2-2 application information ... ..., 2-n application information, n are greater than 2 Positive integer.
So terminal can answer 1-1 application information, the 1-2 application information ... ... of taking-up, 1-n Use program information;2-1 application information, 2-2 application information ... ..., 2-n application information are pressed using frequency Rate is ranked up from high to low are as follows: 1-1 application information, 2-1 application information, 1-2 application information, 2-2 application information ..., 1-n application information, 2-n application information, and form third list.
Terminal obtained from third list according to preset Minimal Protective value with it is pre- corresponding to preset Minimal Protective value The information of fixed number purpose application program.The application program with predetermined number corresponding to preset Minimal Protective value be need after The application program of reforwarding row.
Assuming that preset Minimal Protective value is N, predetermined number corresponding with preset Minimal Protective value is M, then M >=N. N is used to identify the quantity needed in the application process of running background, the smaller mark application program that currently needs to remove of the value of N into The number of journey is bigger.What the application program for the number C=current background operation for needing application program out of service to carry out carried out Number-M.
It is understood that preset Minimal Protective value can be fixed for N, it is also possible to what dynamic adjusted.For example, The corresponding preset Minimal Protective value of first default cleaning cycle is N, and the second default cleaning cycle is corresponding preset minimum to be protected Shield value is N-1 ... ..., and the corresponding preset Minimal Protective value of the n-th default cleaning cycle is N-n.Wherein, n, N are positive integer, And n is less than or equal to N.
Terminal, will be in addition to the application program for needing to continue to run after determining the application information that needs continue to run The corresponding progress recognizing of other applications be program process to be terminated
The application program filtered out from the first list of application and the second list of application is carried out to the purpose of staggered-sequence It is: takes into account the first list of application and the second list of application, that is, takes into account acts and efforts for expediency and the long-term habits of user, thus point Analysis user may need application program to be used, and with can be when detecting enabled instruction, the quick start enabled instruction be corresponding Application program, reduce user wait application program launching consumed by the time.
Further, step S204 may include: the sequence by frequency of use from high to low, from first list of application The middle determining information needed in the first kind application program of running background;It determines and is needed on backstage from second list of application The information of second class application program of operation;Believed according to the first kind application information and the second class application program Breath determines program process to be terminated from first list of application.
Also referring to Fig. 3 to Fig. 5, wherein Fig. 5 is one embodiment of the invention offer comprising needing in running background The schematic diagram of the white list of application information.
Assuming that preset Minimal Protective value is 5 (mark needs that 5 applications is kept to run on backstage), terminal presses frequency of use Sequence from high to low determines the first kind application program 510 needed in running background from the first list of application as shown in Figure 3 Information;Identical with first kind application program 510 application program is removed from the second list of application as shown in Figure 4, by making Determine the information needed in the second class application program 520 of running background with frequency sequence from high to low, terminal is by the first kind The information of application program 510, the information of the second class application program 520 are staggered by the sequence of frequency of use from high to low, obtain To intelligent white list.
Wherein, first kind application program 510 includes office application, short message application, wechat application;Second class application program 520 include QQ application, microblogging application.The first kind application program 510 and the second class application program for including in intelligent white list 520 be the application program needed in running background.
All progress recognizings corresponding to application program in addition to intelligent white list as shown in Figure 5 are to end by terminal Program process only.
Further, whether step S204 can also include: to judge in currently running application program comprising user's needs The default application used in the standby state;Wherein, the default application is the application program needed in running background;If described It include the default application in currently running application program, according in first list of application and second list of application Each corresponding frequency of use of application program and the default application determine program process to be terminated;Wherein, it is described to The program process of termination does not include the first kind application program, the second class application program and the default application Corresponding process.
For example, terminal can also be judged according to current program process in currently running application program whether include The default application that user needs to use in the standby state, wherein the default application is the application program needed in running background, For example, pedometer, voice applications, can also include needing to call application of flash lamp etc..
Terminal is confirming that currently running application program includes default application, is arranged according to the first list of application and the second application The corresponding frequency of use of each application program in table, obtains intelligent white list as shown in Figure 5, and by currently running default application Intelligent white list as shown in Figure 5 is increased to, white list as shown in FIG. 6 is obtained.Include in intelligence white list as shown in FIG. 6 First kind application program 510, the second class application program 520 and default application (presetting application at this time be pedometer) be needs In the application program of running background.
All progress recognizings corresponding to application program in addition to intelligent white list as shown in FIG. 6 are to end by terminal Program process only.
S205: the corresponding application program of program process to be terminated out of service.
Terminal obtains program process to be terminated from the program process that current background is run, and out of service, The corresponding application program of program process to be terminated.
It is understood that terminal is in the corresponding background application of program process to be terminated out of service, locking is eventually The display screen at end.
It is understood that terminal is executing the step the primary cleaning of S201~S205 completion.
S206: if the number of the corresponding program process to be terminated of the second default cleaning cycle is less than or equal to The number of the corresponding program process to be terminated of first default cleaning cycle is then increased by preset value described default clear Manage period corresponding duration.
When terminal clears up the program process of terminal in a default cleaning cycle, statistics is default first The number of corresponding program process to be terminated in cleaning cycle.Wherein, corresponding first number of the first default cleaning cycle, Corresponding second number ... ... of second default cleaning cycle, corresponding n-th number of the n-th default cleaning cycle.
Terminal is when obtaining corresponding second number of the second default cleaning cycle, by the second default cleaning cycle corresponding Two numbers the first number corresponding with the first default cleaning cycle is compared, and judges whether the second number is less than or equal to first Number.Terminal is when confirming that the second number is less than or equal to the first number, by the corresponding time management application program of predetermined period Process.
Terminal increases the default corresponding duration of cleaning cycle when confirming that the second number is greater than the first number, by preset value. Preset value is to need extended duration, can be specifically configured according to the actual situation, herein with no restrictions.When preset value is one When the time corresponding to default cleaning cycle, the corresponding duration of default cleaning cycle can be adjusted to 2 times of former duration by terminal (for example, a length of half an hour when default cleaning cycle original, default cleaning cycle after adjusting duration when it is 1 hour a length of), but simultaneously It is without being limited thereto, it can specifically be configured according to the actual situation, herein with no restrictions.
Above scheme from running background record, obtains if terminal detects that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting predetermined registration operation;Work as by the acquisition of preset polling cycle Preceding location information;According to the default corresponding relationship of location information and list of application, current location information corresponding is obtained Two list of application;According to the corresponding frequency of use of application program each in first list of application and second list of application, Determine program process to be terminated;The corresponding application program of program process to be terminated out of service.Due to Terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and according to Corresponding first list of application obtains user and uses the short-term row of application in the preset time period before detecting predetermined registration operation To determine that user may need the letter of application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Breath, and clear up the user in running background may not be needed using application program process, and then prevent user that may be not required to Application program occupying system resources to be used reduce power consumption to extend stand-by time.
Intelligent white list is added in the default application being currently running by terminal, can be maintained at running background, can be prevented Cause user can not be the case where terminal is in standby using default application because stopping the process of default application, Neng Goubian In user's using terminal.
Since terminal protects the application just interacted with user and again while cleaning up useless application and saving power consumption The application of most possible and user interaction after secondary bright screen, to improve user experience.
It is repeatedly cleared up in screen lock state simultaneously, cleaning cycle, which automatically prolongs, can also improve cleaning effect, while will not be more Secondary wake-up system causes itself to become power consumption arch-criminal.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention referring to Fig. 7, Fig. 7.Terminal can be mobile phone, put down The mobile terminals such as plate computer, but it is not limited to this, can also be other terminals, herein with no restrictions.The terminal 700 of the present embodiment Including each unit be used to execute each step in the corresponding embodiment of Fig. 1, referring specifically to the corresponding implementation of Fig. 1 and Fig. 1 Associated description in example, does not repeat herein.The terminal of the present embodiment includes: first acquisition unit 710, poll units 720, second Acquiring unit 730, determination unit 740 and administrative unit 750.
If first acquisition unit 710 is used to detect the predetermined registration operation that triggering enters battery saving mode, remember from running background In record, corresponding first list of application in the preset time period before detecting predetermined registration operation is obtained.
If being transported for example, first acquisition unit 710 is used to detect the predetermined registration operation that triggering enters battery saving mode from backstage In row record, corresponding first list of application in the preset time period before detecting predetermined registration operation is obtained.First obtains list Member 710 sends the first list of application to determination unit 740.
Poll units 720 are for being obtained current location information by preset polling cycle.Poll units 720 will be current Location information is sent to second acquisition unit 730.
Second acquisition unit 730 is used to receive the current location information of the transmission of poll units 720, according to preset position The default corresponding relationship of information and list of application obtains corresponding second list of application of current location information.
For example, second acquisition unit 730 receives the current location information that poll units 720 are sent, according to preset position The default corresponding relationship of confidence breath and list of application, obtains corresponding second list of application of current location information.Second obtains Unit 730 sends the second list of application to determination unit 740.
Determination unit 740 is used to receive the first list of application and second acquisition unit of the transmission of first acquisition unit 710 730 the second list of application sent use frequency according to application program each in the first list of application and the second list of application is corresponding Rate determines program process to be terminated.
For example, determination unit 740 receives the first list of application and second acquisition unit that first acquisition unit 710 is sent 730 the second list of application sent use frequency according to application program each in the first list of application and the second list of application is corresponding Rate determines program process to be terminated.
Determination unit 740 sends Procession information of application programme to be terminated to administrative unit 750.
Administrative unit 750 is used to receive the Procession information of application programme to be terminated of the transmission of determination unit 740, out of service The corresponding application program of program process to be terminated.
For example, administrative unit 750 receives the Procession information of application programme to be terminated that determination unit 740 is sent, stop fortune The row corresponding application program of program process to be terminated.
Above scheme from running background record, obtains if terminal detects that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting predetermined registration operation;Work as by the acquisition of preset polling cycle Preceding location information;According to the default corresponding relationship of location information and list of application, current location information corresponding is obtained Two list of application;According to the corresponding frequency of use of application program each in first list of application and second list of application, Determine program process to be terminated;The corresponding application program of program process to be terminated out of service.Due to Terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and according to Corresponding first list of application obtains user and uses the short-term row of application in the preset time period before detecting predetermined registration operation To determine that user may need the letter of application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Breath, and clear up the user in running background may not be needed using application program process, and then prevent user that may be not required to Application program occupying system resources to be used reduce power consumption to extend stand-by time.
Referring to Fig. 8, Fig. 8 be another embodiment of the present invention provides a kind of terminal schematic block diagram.Terminal can be hand The mobile terminals such as machine, tablet computer, but it is not limited to this, can also be other terminals, herein with no restrictions.The end of the present embodiment The each unit that end 800 includes is used to execute each step in the corresponding embodiment of Fig. 2, corresponding referring specifically to Fig. 2 and Fig. 2 Associated description in embodiment, does not repeat herein.The terminal of the present embodiment includes: first acquisition unit 801, the first judging unit 802, poll units 803, second acquisition unit 804, determination unit 805, administrative unit 806, adjustment unit 807, terminal may be used also To include third acquiring unit 808, second judgment unit 809 and setting unit 810.Wherein it is determined that unit 805 may include Acquiring unit 8051 and screening unit 8052.
If first acquisition unit 801 is used to detect the predetermined registration operation that triggering enters battery saving mode, remember from running background In record, corresponding first list of application in the preset time period before detecting predetermined registration operation is obtained.
If being transported for example, first acquisition unit 801 is used to detect the predetermined registration operation that triggering enters battery saving mode from backstage In row record, corresponding first list of application in the preset time period before detecting predetermined registration operation is obtained.First obtains list Member 801 sends the first list of application to determination unit 805.
Whether the first judging unit 802 is for judging in currently running application program to include that user needs in standby mode The lower default application used;Wherein, application is preset to need the application program in running background.First judging unit 802 will be sentenced Disconnected result is sent to determination unit 805.
Poll units 803 are for being obtained current location information by preset polling cycle.Poll units 803 will be current Location information is sent to second acquisition unit 804, third acquiring unit 808.
Further, when terminal further includes third acquiring unit 808, second judgment unit 809 and setting unit 810 When, third acquiring unit 808 is used to receive the current location information of the transmission of poll units 803, obtains the current of preset number Location information;
The current position for the preset number that second judgment unit 809 is used to be obtained according to third acquiring unit 808 Whether information, the corresponding distance of current location information for judging that the adjacent polling cycle of any two is got are less than or equal to Pre-determined distance threshold value;
If setting unit 810 is less than or equal to pre-determined distance threshold value for the judgement distance of second judgment unit 809, according to the Operation data and the current location information in one time establish default pair of preset location information and list of application It should be related to;Wherein, time corresponding to the polling cycle for preset number at the first time.
If setting unit 810 is also used to the distance greater than the pre-determined distance threshold value, according to the operation number in first time Accordingly and the corresponding current location information of each polling cycle, the corresponding list of application of current location information is updated.
Setting unit 810 is by the default corresponding relationship of preset location information and list of application to second acquisition unit 804 It sends.
Second acquisition unit 804 is used to receive the current location information and setting unit of the transmission of poll units 803 The default corresponding relationship of the 810 preset location informations sent and list of application, according to preset location information and list of application Default corresponding relationship, obtain corresponding second list of application of current location information.
For example, second acquisition unit 804 receives the current location information and setting unit that poll units 803 are sent The default corresponding relationship of the 810 preset location informations sent and list of application, according to preset location information and list of application Default corresponding relationship, obtain corresponding second list of application of current location information.Second acquisition unit 804 is applied second List is sent to determination unit 805.
Determination unit 805 is used to receive the first list of application and second acquisition unit of the transmission of first acquisition unit 801 804 the second list of application sent use frequency according to application program each in the first list of application and the second list of application is corresponding Rate determines program process to be terminated.
For example, determination unit 805 receives the first list of application and second acquisition unit that first acquisition unit 801 is sent 804 the second list of application sent use frequency according to application program each in the first list of application and the second list of application is corresponding Rate determines program process to be terminated.
Determination unit 805 is also used to receive the judging result of the first judging unit 802 transmission, if the first judging unit is sentenced It includes the default application that disconnected result, which is in currently running application program, according in the first list of application and the second list of application The corresponding frequency of use of each application program, and default application determine program process to be terminated;Wherein, to be terminated to answer It does not include first kind application program, the second class application program and the default corresponding process of application with program process.
Further, when determination unit 805 includes acquiring unit 8051 and screening unit 8052,
Acquiring unit 8051 is used to press the sequence of frequency of use from high to low, determines and is needed rear from the first list of application The information of the first kind application program of platform operation;The the second class application journey needed in running background is determined from the second list of application The information of sequence;
Screening unit 8052 is used for according to first kind application information and the second class application information, from the first application Program process to be terminated is determined in list;Wherein, program process to be terminated does not include first kind application program And the second corresponding process of class application program.
Determination unit 805 sends Procession information of application programme to be terminated to administrative unit 806.
Administrative unit 806 is used to receive the Procession information of application programme to be terminated of the transmission of determination unit 805, out of service The corresponding application program of program process to be terminated.
For example, administrative unit 806 receives the Procession information of application programme to be terminated that determination unit 805 is sent, stop fortune The row corresponding application program of program process to be terminated.
If number of the adjustment unit 807 for the corresponding program process to be terminated of the second default cleaning cycle is less than Or the number of program process to be terminated corresponding equal to the first default cleaning cycle, then increase default cleaning by preset value Period corresponding duration.
Above scheme from running background record, obtains if terminal detects that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting predetermined registration operation;Work as by the acquisition of preset polling cycle Preceding location information;According to the default corresponding relationship of location information and list of application, current location information corresponding is obtained Two list of application;According to the corresponding frequency of use of application program each in first list of application and second list of application, Determine program process to be terminated;The corresponding application program of program process to be terminated out of service.Due to Terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and according to Corresponding first list of application obtains user and uses the short-term row of application in the preset time period before detecting predetermined registration operation To determine that user may need the letter of application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Breath, and clear up the user in running background may not be needed using application program process, and then prevent user that may be not required to Application program occupying system resources to be used reduce power consumption to extend stand-by time.
Intelligent white list is added in the default application being currently running by terminal, can be maintained at running background, can be prevented Cause user can not be the case where terminal is in standby using default application because stopping the process of default application, Neng Goubian In user's using terminal.
Since terminal protects the application just interacted with user and again while cleaning up useless application and saving power consumption The application of most possible and user interaction after secondary bright screen, to improve user experience.
It is repeatedly cleared up in screen lock state simultaneously, cleaning cycle, which automatically prolongs, can also improve cleaning effect, while will not be more Secondary wake-up system causes itself to become power consumption arch-criminal.
It is a kind of terminal schematic block diagram that yet another embodiment of the invention provides referring to Fig. 9, Fig. 9.This implementation as shown in the figure Terminal 900 in example may include: one or more processors 910;One or more input equipments 920, it is one or more defeated Equipment 930 and memory 940 out.Above-mentioned processor 910, input equipment 920, output equipment 930 and memory 940 pass through bus 950 connections.
Memory 940 is for storing program instruction.
The program instruction that processor 910 is used to be stored according to memory 940 executes following operation:
If processor 910 is used to detect the predetermined registration operation that triggering enters battery saving mode, from running background record, obtain Take corresponding first list of application in the preset time period before detecting the predetermined registration operation.
Processor 910 is also used to obtain current location information by preset polling cycle.
Processor 910 is also used to the default corresponding relationship according to preset location information and list of application, works as described in acquisition Corresponding second list of application of preceding location information.
Processor 910 is also used to corresponding according to application program each in first list of application and second list of application Frequency of use, determine program process to be terminated.
Processor 910 is also used to the corresponding application program of program process to be terminated out of service.
Further, processor 910 is also used to the sequence by frequency of use from high to low, from first list of application Determine the information needed in the first kind application program of running background;It is determined from second list of application and needs to transport on backstage The information of the second capable class application program;According to the first kind application information and the second class application information, Program process to be terminated is determined from first list of application;Wherein, the program process to be terminated is not Including the first kind application program and the corresponding process of the second class application program.
Further, processor 910 be also used to judge in currently running application program whether comprising user need to The default application used under machine state;Wherein, the default application is the application program needed in running background;And if being used for Include the default application in the currently running application program, is arranged according to first list of application and second application Each corresponding frequency of use of application program and the default application determine program process to be terminated in table;Wherein, institute State program process to be terminated not and include the first kind application program, the second class application program and described default Using corresponding process.
Further, if processor 910 is also used to the corresponding application program to be terminated of the second default cleaning cycle The number of process is less than or equal to the number of the corresponding program process to be terminated of the first default cleaning cycle, then presses Preset value increases the corresponding duration of the default cleaning cycle.
Further, processor 910 is also used to obtain the current location information of preset number;And it is used for basis The current location information of the preset number, judge that the adjacent polling cycle of any two is got described works as Whether the corresponding distance of preceding location information is less than or equal to pre-determined distance threshold value;If being also used to the distance less than or equal to institute State pre-determined distance threshold value, according in first time operation data and the current location information establish the preset position The default corresponding relationship of confidence breath and list of application;Wherein, the first time is the polling cycle of the preset number The corresponding time;If the distance is greater than the pre-determined distance threshold value, according to the operation data in first time and each The corresponding current location information of the polling cycle updates the corresponding application column of the current location information Table.
Above scheme from running background record, obtains if terminal detects that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting predetermined registration operation;Work as by the acquisition of preset polling cycle Preceding location information;According to the default corresponding relationship of location information and list of application, current location information corresponding is obtained Two list of application;According to the corresponding frequency of use of application program each in first list of application and second list of application, Determine program process to be terminated;The corresponding application program of program process to be terminated out of service.Due to Terminal can obtain user in the corresponding long-term habits using application in current location according to current location information, and according to Corresponding first list of application obtains user and uses the short-term row of application in the preset time period before detecting predetermined registration operation To determine that user may need the letter of application program to be used so as to take into account long-term habits and the acts and efforts for expediency of user Breath, and clear up the user in running background may not be needed using application program process, and then prevent user that may be not required to Application program occupying system resources to be used reduce power consumption to extend stand-by time.
Intelligent white list is added in the default application being currently running by terminal, can be maintained at running background, can be prevented Cause user can not be the case where terminal is in standby using default application because stopping the process of default application, Neng Goubian In user's using terminal.
Since terminal protects the application just interacted with user and again while cleaning up useless application and saving power consumption The application of most possible and user interaction after secondary bright screen, to improve user experience.
It is repeatedly cleared up in screen lock state simultaneously, cleaning cycle, which automatically prolongs, can also improve cleaning effect, while will not be more Secondary wake-up system causes itself to become power consumption arch-criminal.
It should be appreciated that in embodiments of the present invention, alleged processor 910 can be central processing unit (Central Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device is also possible to any conventional processor etc..
Input equipment 920 may include that Trackpad, fingerprint adopt sensor (for acquiring the finger print information and fingerprint of user Directional information), microphone etc., output equipment 930 may include display (LCD etc.), loudspeaker etc..
The memory 940 may include read-only memory and random access memory, and to processor 910 provide instruction and Data.The a part of of memory 940 can also include nonvolatile RAM.For example, memory 940 can also be deposited Store up the information of device type.
In the specific implementation, processor 910 described in the embodiment of the present invention, input equipment 920, output equipment 930 can Described in the first embodiment and second embodiment for executing the method for management program process provided in an embodiment of the present invention Implementation, also can be performed the embodiment of the present invention described in terminal implementation, details are not described herein.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description The specific work process at end and unit, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In several embodiments provided herein, it should be understood that disclosed terminal and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.In addition, shown or discussed phase Mutually between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication of device or unit Connection is also possible to electricity, mechanical or other form connections.
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.Some or all of unit therein can be selected to realize the embodiment of the present invention according to the actual needs Purpose.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (9)

1. a kind of method for managing program process, which is characterized in that the described method includes:
If detect triggering enter battery saving mode predetermined registration operation, from running background record in, obtain detect it is described pre- If corresponding first list of application in the preset time period before operation;
Current location information is obtained by preset polling cycle;
According to the default corresponding relationship of preset location information and list of application, the current location information corresponding the is obtained Two list of application;
By the sequence of frequency of use from high to low, is determined from first list of application and need to answer in the first kind of running background With the information of program;The information needed in the second class application program of running background is determined from second list of application;
According to the first kind application information and the second class application information, from first list of application really Fixed program process to be terminated;Wherein, the program process to be terminated does not include the first kind application program And the corresponding process of the second class application program;
The corresponding application program of program process to be terminated out of service.
2. the method according to claim 1, wherein the method also includes:
Judge the default application for whether needing to use in the standby state comprising user in currently running application program;Wherein, The default application is the application program needed in running background;
If in the currently running application program including the default application, arranged into battery saving mode according to first application Each corresponding frequency of use of application program and the default application determine to be terminated answer in table and second list of application Use program process;Wherein, the program process to be terminated does not include that the first kind application program, second class are answered With program and the default corresponding process of application.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
If it is default that the number of the corresponding program process to be terminated of the second default cleaning cycle is less than or equal to first It is corresponding then to increase default cleaning cycle by preset value for the number of the corresponding program process to be terminated of cleaning cycle Duration.
4. the method according to claim 1, wherein the method also includes:
Obtain the current location information of preset number;
According to the current location information of the preset number, judge that the adjacent polling cycle of any two is got The corresponding distance of the current location information whether be less than or equal to pre-determined distance threshold value;
If the distance is less than or equal to the pre-determined distance threshold value, according to operation data in first time and described current Location information establish the default corresponding relationship of the preset location information and list of application;Wherein, the first time is Time corresponding to the polling cycle of the preset number;
If the distance is greater than the pre-determined distance threshold value, according in first time operation data and each poll week The phase corresponding current location information updates the corresponding list of application of the current location information.
5. a kind of terminal, which is characterized in that the terminal includes:
First acquisition unit, if from running background record, being obtained for detecting that triggering enters the predetermined registration operation of battery saving mode Take corresponding first list of application in the preset time period before detecting the predetermined registration operation;
Poll units, for obtaining current location information by preset polling cycle;
Second acquisition unit obtains described current for the default corresponding relationship according to preset location information and list of application Corresponding second list of application of location information;
Determination unit is determined from first list of application and is needed on backstage for pressing the sequence of frequency of use from high to low The information of the first kind application program of operation;The the second class application needed in running background is determined from second list of application The information of program;And for according to the first kind application information and the second class application information, from described Program process to be terminated is determined in first list of application;Wherein, the program process to be terminated does not include institute State first kind application program and the corresponding process of the second class application program;
Administrative unit, for the corresponding application program of the program process to be terminated out of service.
6. terminal according to claim 5, which is characterized in that the terminal further include:
First judging unit, for judging in currently running application program whether to include that user needs to use in the standby state Default application;Wherein, the default application is the application program needed in running background;
If the determination unit is also used in the currently running application program comprising the default application, into battery saving mode According to the corresponding frequency of use of application program each in first list of application and second list of application and described default Using determining program process to be terminated;Wherein, the program process to be terminated does not include that the first kind is answered With program, the second class application program and the default corresponding process of application.
7. terminal according to claim 6, which is characterized in that the terminal further include:
Adjustment unit, if the number for the corresponding program process to be terminated of the second default cleaning cycle be less than or The number of the program process to be terminated corresponding equal to the first default cleaning cycle is then increased by preset value default clear Manage period corresponding duration.
8. terminal according to claim 5, which is characterized in that the terminal further include:
Third acquiring unit, for obtaining the current location information of preset number;
Second judgment unit judges that any two are adjacent for the current location information according to the preset number Whether the corresponding distance of the current location information that the polling cycle is got is less than or equal to pre-determined distance threshold value;
Setting unit, if being less than or equal to the pre-determined distance threshold value for the distance, according to the operation number in first time Accordingly and the current location information establishes the default corresponding relationship of the preset location information and list of application;Wherein, The first time is the time corresponding to the polling cycle of the preset number;
If the setting unit is also used to the distance greater than the pre-determined distance threshold value, according to the operation data in first time And the corresponding current location information of each polling cycle, it is corresponding described to update the current location information List of application.
9. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In being realized when the computer program is executed by processor such as the step of Claims 1-4 described in any item methods.
CN201610984453.1A 2016-11-07 2016-11-07 A kind of method and terminal managing program process Active CN106569585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610984453.1A CN106569585B (en) 2016-11-07 2016-11-07 A kind of method and terminal managing program process

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610984453.1A CN106569585B (en) 2016-11-07 2016-11-07 A kind of method and terminal managing program process

Publications (2)

Publication Number Publication Date
CN106569585A CN106569585A (en) 2017-04-19
CN106569585B true CN106569585B (en) 2019-08-09

Family

ID=58540772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610984453.1A Active CN106569585B (en) 2016-11-07 2016-11-07 A kind of method and terminal managing program process

Country Status (1)

Country Link
CN (1) CN106569585B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291543B (en) * 2017-07-31 2020-08-07 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal
CN107402791B (en) * 2017-07-31 2020-05-12 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal
CN107302591A (en) * 2017-07-31 2017-10-27 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN107450951B (en) * 2017-07-31 2020-08-04 Oppo广东移动通信有限公司 Application processing method and device, storage medium and terminal
CN107241450A (en) * 2017-08-04 2017-10-10 广东欧珀移动通信有限公司 Method of data synchronization, device, storage medium and electronic equipment
CN108509017A (en) * 2018-03-22 2018-09-07 上海爱优威软件开发有限公司 A kind of control method and system of terminal applies
GB2572584B (en) * 2018-04-04 2022-09-28 Jaguar Land Rover Ltd Controlling an access control device based on position
CN109446048B (en) * 2018-10-30 2023-12-22 深圳市科华通诚科技有限公司 Background management and control method, device and computer readable storage medium
CN111913553B (en) * 2019-05-07 2024-07-23 南京中兴新软件有限责任公司 Method and device for controlling terminal power consumption, terminal and computer readable storage medium
CN111381662A (en) * 2020-03-19 2020-07-07 深圳传音控股股份有限公司 Power saving control method, control device and storage medium
CN112198955A (en) * 2020-10-23 2021-01-08 Tcl通讯(宁波)有限公司 Power saving processing method and device, storage medium and mobile terminal
CN116501162B (en) * 2023-04-23 2023-11-24 深圳中柏科技有限公司 Method and device for automatically adjusting power consumption of intelligent notebook computer and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251981A (en) * 2005-03-09 2006-09-21 Matsushita Electric Ind Co Ltd Power saving control system, recording medium and program
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN105573461A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Intelligent power-saving method and device and terminal
CN105873196A (en) * 2016-03-23 2016-08-17 努比亚技术有限公司 Mobile terminal and method for reducing power consumption of mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006251981A (en) * 2005-03-09 2006-09-21 Matsushita Electric Ind Co Ltd Power saving control system, recording medium and program
CN104298336A (en) * 2013-07-19 2015-01-21 贝壳网际(北京)安全技术有限公司 Mobile terminal and control method and device of application program of mobile terminal
CN105573461A (en) * 2014-10-16 2016-05-11 中兴通讯股份有限公司 Intelligent power-saving method and device and terminal
CN104834517A (en) * 2015-04-08 2015-08-12 来安县新元机电设备设计有限公司 Mobile terminal power-saving method and mobile terminal
CN105873196A (en) * 2016-03-23 2016-08-17 努比亚技术有限公司 Mobile terminal and method for reducing power consumption of mobile terminal

Also Published As

Publication number Publication date
CN106569585A (en) 2017-04-19

Similar Documents

Publication Publication Date Title
CN106569585B (en) A kind of method and terminal managing program process
CN108512695B (en) Method and device for monitoring application blockage
KR102245025B1 (en) Memory return method and device
CN110324793B (en) Information reminding method and device and electronic terminal
CN106227585B (en) Application program starting method, device and equipment
CN107861773A (en) Associate management-control method, device, storage medium and the mobile terminal started
CN105491539A (en) Message push management method and device
CN103905442B (en) Awakening method and device in a kind of data syn-chronization
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN107943599A (en) Red packet based reminding method, device, computer installation and computer-readable recording medium
CN107957913A (en) Associate management-control method, device, storage medium and the mobile terminal started
CN107291320A (en) The display methods and equipment of application icon
CN107197082A (en) A kind of information prompting method and terminal
CN108762844A (en) Application program preloads method, apparatus, storage medium and terminal
CN106453904A (en) Information reminding method and terminal
CN106227483B (en) Display control method and mobile terminal
CN107862203A (en) Control method, device, storage medium and the terminal of application program
CN106406494B (en) A kind of method and terminal of processor scheduling
CN107831886A (en) Association starts management-control method, device, storage medium and the intelligent terminal of application
CN108616668B (en) Method for monitoring dialing task, electronic device and computer readable storage medium
CN112261595A (en) Event reminding method and device, storage medium and mobile terminal
CN104980451A (en) Information prompting method and apparatus
CN107608723A (en) One kind application alignment awakening method, terminal and computer-readable recording medium
CN107704734A (en) A kind of recognition methods of user account and its equipment
CN106408490A (en) Active work order processing method and active work order processing apparatus

Legal Events

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

Effective date of registration: 20210528

Address after: 518057 Desai Science and Technology Building, 9789 Shennan Avenue, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province, 17th Floor (15th Floor of Natural Floor) 1702-1703

Patentee after: Shenzhen Microphone Holdings Co.,Ltd.

Address before: 518040 21 floor, east block, Times Technology Building, 7028 Shennan Road, Futian District, Shenzhen, Guangdong.

Patentee before: DONGGUAN GOLDEX COMMUNICATION TECHNOLOGY Co.,Ltd.