CN104199731A - Method and device for managing application program processes - Google Patents

Method and device for managing application program processes Download PDF

Info

Publication number
CN104199731A
CN104199731A CN201410466754.6A CN201410466754A CN104199731A CN 104199731 A CN104199731 A CN 104199731A CN 201410466754 A CN201410466754 A CN 201410466754A CN 104199731 A CN104199731 A CN 104199731A
Authority
CN
China
Prior art keywords
priority
application
application program
screen
dormancy
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410466754.6A
Other languages
Chinese (zh)
Other versions
CN104199731B (en
Inventor
王浩
唐淳
张越
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410466754.6A priority Critical patent/CN104199731B/en
Publication of CN104199731A publication Critical patent/CN104199731A/en
Application granted granted Critical
Publication of CN104199731B publication Critical patent/CN104199731B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and device for managing application program processes. The method includes: a receiving system broadcasts a message to determine whether the screen of a terminal is closed or not; when the screen is closed, the process information objects of operating application programs are acquired through an application program calling interface, and the importance attribute numerical values are acquired through the process information objects of the operating application programs so as to determine the process priority of each application program; the processes with low priority are closed or set into a sleep state according to preset process managing rules. The method has the advantages that the processes with low priority are closed or set into the sleep state according to the priority of the processes, the processes with low priority are set into sleep preferably after screen locking, and accordingly internal memory space is saved, and power consumption is reduced.

Description

The method that the process of application programs manages and device
Technical field
The present invention relates to technical field of mobile terminals, be specifically related to method and device that a kind of process of application programs manages.
Background technology
Android system in the process using, due to user's self operation or application program (software) certainly set out into, can produce a large amount of running background process and service.In these background process and service, some is user's needs, as instant messaging, security protection software; Process and service that other mostly are nonessential existence, be used for helper applications self sending out notice, prompting.These processes and service also can exist for a long time after mobile phone screen locking, take mobile phone EMS memory, consuming cells electric weight, and mobile phone is used and causes inconvenience.
Summary of the invention
In view of the above problems, the present invention has been proposed so that method and the device that provides a kind of process of the application programs that overcomes the problems referred to above or address the above problem at least in part to manage.
According to one aspect of the present invention, a kind of method that provides process of application programs to manage, comprising: receiving system broadcast, determine that whether terminal is in screen closed condition; When definite screen is during in closed condition, obtain the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program; According to preset management of process rule, dormant state is closed or be set to process lower priority.
Preferably, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
Preferably, described importance attribute refers to the constant IMOPORTANCE of RunningAppProcessInfo object the inside.
Preferably, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
Preferably, also comprise: provide visualization interface to user, accept the manual calibration of user to management of process.
Preferably, the described manual calibration to management of process comprises: according to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or, select according to user, the process of application-specific is carried out screen locking dormancy or kept background operation state.
Preferably, also comprise: judge that whether application program corresponding to process is included in preset application program white list, if so, remains running status by this process.
Preferably, also comprise: judge whether application program corresponding to process is included in preset application program blacklist, and if so, this process is set to dormant state.
According to another aspect of the present invention, the device that provides a kind of process of application programs to manage, comprising: broadcast receiving element, for receiving system broadcast, determine that whether terminal is in screen closed condition; Process priority acquiring unit, for when definite screen is during in closed condition, obtains the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program; Administrative unit, for according to preset management of process rule, closes or is set to dormant state by process lower priority.
Preferably, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
Preferably, described importance attribute refers to the constant IMOPORTANCE of RunningAppProcessInfo object the inside.
Preferably, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
Preferably, also comprise: manual calibration unit, for providing visualization interface to user, accept the manual calibration of user to management of process.
Preferably, described manual calibration unit specifically for: according to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or, select according to user, the process of application-specific is carried out screen locking dormancy or kept background operation state.
Preferably, also comprise: list judging unit, judge whether application program corresponding to process is included in preset application program white list, if so, indicate described management of process unit that this process is remained to running status.
Preferably, also comprise: list judging unit, for judging whether application program corresponding to process is included in preset application program blacklist, if so, indicate this process of described management of process unit to be set to dormant state.
Visible, the embodiment of the present invention, is closed or dormancy the lower process of priority as foundation by process priority, preferred implementing thread sleep processing lower to priority after screen locking, thus save memory headroom, reduce electric quantity consumption.In addition, under the dual decision logic of automatic intelligent identification and user's manual calibration, can ensure that the required useful background process of user is never by auto sleep, unwanted other background process of user are all by auto sleep.Keep long-term low EMS memory occupation and the low electric quantity consumption of Android cell phone system with this.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to better understand technological means of the present invention, and can be implemented according to the content of instructions, and for above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Brief description of the drawings
By reading below detailed description of the preferred embodiment, various other advantage and benefits will become cheer and bright for those of ordinary skill in the art.Accompanying drawing is only for the object of preferred implementation is shown, and do not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the method flow diagram that the process of application programs manages according to an embodiment of the invention; And
Fig. 2 shows the device schematic diagram that the process of application programs manages according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, but should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can be by the those skilled in the art that conveys to complete the scope of the present disclosure.
The process that the present invention discloses a kind of application programs manages method, and its scheme is, by the operation of monitoring application program background process, to determine the priority of process, closes the process that priority is lower, thereby releasing memory space is optimized terminal operating environment.
Referring to Fig. 1, the method flow diagram that the process of the application programs providing for one embodiment of the invention manages.
The method comprises the following steps:
S101: receiving system broadcast, determine that whether terminal is in screen closed condition.
It will be appreciated by those skilled in the art that operating system comprises application layer (app layer) and system framework layer (framework layer).A kind of preferably implementation of the present invention is app layer and framework layer are improved, thereby the process of utilizing this two-layer coordinated to realize application programs to manage.Concrete, first register receiving system and close screen broadcasting message, when system screen blackening, application layer just can be received the pass screen broadcast of system, then, application layer, by interface interchange, is realized the process priority of each application program of traversal.
S102: when definite screen is during in closed condition, obtain the priority of the corresponding process of each application program by API.
Can, by the API of operating system, realize the traversal to process priority.API (Application Programming Interface, application programming interface) be the calling interface that operating system is left application program for, application program makes operating system go the order of executive utility (action) by the API of call operation system.Can adopt interrupt mechanism to realize monitors API.
Can be understood as alternately between app layer and framework layer in the embodiment of the present invention: injected system service routine, the false handle (variable) that the handle (variable) for accepting Inter-Process Communication data in replacement system service is app layer, so false handle (variable) will have precedence over system service and receive the control request from third party's program, the logic of false handle (memory variable) meeting executive process control invoked time, and the rule that can arrange according to user, carries out corresponding operating.
Concrete, determine that the mode of process priority can have multiple.
(1) first kind of way is: by the process identification (PID) of each application program, find the process significance index of each application program, according to process significance index, determine the process priority of each application program.
Concrete, in Android system, by the PID of program, finding corresponding PROC/PID/oom_adj file, the numerical value in file reading, as the standard and the threshold values that judge priority.Wherein, PID (Process Identifier) is the identify label of each process, and it is unique that program one operational system will be distributed to one of process automatically.Can be by the PID of application program, find oom_adj corresponding to application program.
Those skilled in the art understand, and Android is a multitask system, that is to say and can move multiple programs simultaneously.In general, starting a program of operation has regular hour expense, therefore in order to accelerate travelling speed, in the time exiting a program, Android can't kill immediately (kill) it, when this program of reruning next time like this, startup that can be very fast.Along with the program retaining in system is more and more, internal memory is certain to occur not enough, and low memory killer is exactly in the time that Installed System Memory is worth lower than certain, removes relevant program, and safeguards system keeps having the free memory of some.Low memory killer is according to two principles, and the importance of process and discharge the retrievable free memory quantity of this process decides the process of release.Process importance determines by significance index oom_adj.Wherein, OOM (out of memory, internal memory overflows) refers to system the inside, and due to Installed System Memory pressure, system can be selected to protect some system processs, and by some, other process kill falls, releasing memory.The file relevant to OOM is exactly the oom_adj under catalogue/proc/pid/oom_adj.Oom_adj is appreciated that the factor in position, and scope is-17 to 15.Be set to 0 expression never by kill, all the other situation values are more greatly more easily by kill.
Program is divided into following a few class by Android, for example, and the order reducing successively according to importance:
FOREGROUD_APP, oom_adj=0, represents foreground program, can be understood as the program using;
VISIBLE_APP, oom_adj=1, represents the visible program of user;
SECONDARY_SERVER, oom_adj=2, represent background service, such as QQ can be in running background service;
HOME_APP, oom_adj=4, represents HOME, is exactly main interface;
HIDDEN_APP, oom_adj=7, represents the program being hidden;
CONTENT_PROVIDER, oom_adj=14, represents content provider;
EMPTY_APP, oom_adj=15, represents dummy routine, and service is neither provided, and content is not provided yet.
(2) second way is: the Procession information of application programme that the system of obtaining is being moved, by the numerical value of the importance attribute in the Procession information of application programme moving, determine the process priority of each application program.
Concrete, by obtaining the program of moving in Android program, by the RunningAppProcessInfo object getting, by the numerical value of its importance attribute, as the standard and the threshold values that judge priority.
In Android system, the constant IMOPORTANCE (importance attribute) of RunningAppProcessInfo (Procession information of application programme moving) the inside represents the importance of this app process, because when system recoveries, can carry out collection process according to IMOPORTANCE.For example:
Public static final int IMPORTANCE_BACKGROUND=400 represents background program;
Public static final int IMPORTANCE_EMPTY=500 represents null process;
Public static final int IMPORTANCE_FOREGROUND=100 be illustrated in screen foremost, can get the program of focus;
Public static final int IMPORTANCE_SERVICE=300 is illustrated in the program in service;
Public static final int IMPORTANCE_VISIBLE=200 is illustrated in screen front end, obtains the program less than focus.
Concrete, the example of importance property value that obtains RunningAppProcessInfo object is as follows:
First to obtain the object instance of ActivityManager, by calling getSystemService (ACTIVITY_SERVICE), will return to the example of an ActivityManager; Obtaining after this example, calling its getRunningAppProcesses () method, can return to a List, the data type of depositing in this List is ActivityManager.RunningAppProcessInfo.So, this List is traveled through, in every RunningAppProcessInfo from List, can obtain the relevant information of enjoying.
For example, show in the middle of being tied to a ListView with a ListAdapter, code is as follows:
Visible, in above-mentioned code, " public int importance " (process severity level in system) is exactly the importance property value that will obtain in the embodiment of the present invention.
S103: according to preset management of process rule, dormant state is closed or be set to process lower priority.
Wherein, management of process rule can have various ways, for example: directly priority is closed lower than the process of priority lowest threshold; Or after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.For example, in user's screen locking after 1 minute, the software that user software low priority, system software and user is manually set to forced dormancy all finishes process, under the prerequisite that does not affect critical software process and service, significantly reduced mobile phone EMS memory take with screen locking during electric quantity consumption.
In addition, the embodiment of the present invention can also provide the mode of user's manual calibration to supplement management of process.Concrete, provide visualization interface to user, accept the manual calibration of user to management of process.Manual calibration to management of process comprises: according to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or, select according to user, the process of application-specific is carried out screen locking dormancy or kept background operation state.
For example, user can check which software priority higher (wouldn't dormancy), which software priority lower (after screen locking can by dormancy), which software (dormancy) not in running background according to visualization interface.And the software that is put under " dormancy after screen locking " because of error in judgement can be ignored to dormancy, make it remain background operation state.Can will do not put under the software forced dormancy of " dormancy after screen locking " because of error in judgement, make it after each screen locking, all can be moved to end process yet.
And, can also application program white list and application program blacklist mode scheme is optimized.A kind of situation is to judge that whether application program corresponding to process is included in preset application program white list, if so, remains running status by this process.But it is lower by the application program of user or system special concern maintenance running status that this situation can ensure priority, for example a application program of watching video, if thereby user wishes to complete at the follow-up reforwarding row of screen locking the operation that off-line is downloaded, this application program can be joined in application program white list, like this, even if the corresponding process priority of this application program is lower, also can be by dormancy.Another situation is to judge whether application program corresponding to process is included in preset application program blacklist, and if so, this process is set to dormant state.But this situation can ensure priority and may be higher be set to especially the not committed memory of application program of dormancy by user or system.
Visible, the embodiment of the present invention, is closed or dormancy the lower process of priority as foundation by process priority, preferred implementing thread sleep processing lower to priority after screen locking, thus save memory headroom, reduce electric quantity consumption.In addition, under the dual decision logic of automatic intelligent identification and user's manual calibration, can ensure that the required useful background process of user is never by auto sleep, unwanted other background process of user are all by auto sleep.Keep long-term low EMS memory occupation and the low electric quantity consumption of Android cell phone system with this.
The device corresponding with said method, the present invention also provides a kind of process of application programs to manage.This device can be realized by hardware, software or software and hardware combining mode.This device can refer to the functional module of terminal inner, also can refer to terminal itself, as long as terminal comprises the function that realizes this device.Wherein, the operating system of terminal comprises ccf layer and application layer.
Fig. 2 shows the device schematic diagram that the process of application programs manages according to an embodiment of the invention.This device comprises:
Broadcast receiving element 201, for receiving system broadcast, determines that whether terminal is in screen closed condition;
Process priority acquiring unit 202, for when definite screen is during in closed condition, obtains the priority of the corresponding process of each application program by application call interface;
Management of process unit 203, for according to preset management of process rule, closes or is set to dormant state by process lower priority.
Preferably, described process priority acquiring unit 202 specifically for: by the process identification (PID) of each application program, find the process significance index of each application program, according to described process significance index, determine the process priority of each application program.
Preferably, described process priority acquiring unit 202 is specifically for the Procession information of application programme that the system of obtaining is being moved, by the numerical value of the importance attribute in the described Procession information of application programme moving, determine the process priority of each application program.
Preferably, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
Preferably, also comprise manual calibration unit 204, for providing visualization interface to user, accept the manual calibration of user to management of process.
Preferably, described manual calibration unit 204 specifically for: according to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or, select according to user, the process of application-specific is carried out screen locking dormancy or kept background operation state.
Preferably, this device also comprises: list judging unit 205, judge whether application program corresponding to process is included in preset application program white list, and if so, indicate described management of process unit 203 that this process is remained to running status.
Preferably, this device also comprises: list judging unit 205, and for judging whether application program corresponding to process is included in preset application program blacklist, if so, indicate described management of process unit 203 these processes to be set to dormant state.
The algorithm providing at this is intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with demonstration.Various general-purpose systems also can with based on using together with this teaching.According to description above, it is apparent constructing the desired structure of this type systematic.In addition, the present invention is not also for any certain programmed language.It should be understood that and can utilize various programming languages to realize content of the present invention described here, and the description of above language-specific being done is in order to disclose preferred forms of the present invention.
In the instructions that provided herein, a large amount of details are described.But, can understand, embodiments of the invention can be put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.But, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more feature of feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them in addition multiple submodules or subelement or sub-component.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this instructions (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this instructions (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature instead of further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with array mode arbitrarily.
All parts embodiment of the present invention can realize with hardware, or realizes with the software module of moving on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that can use in practice microprocessor or digital signal processor (DSP) to realize the some or all parts in the device managing according to the process of the application programs of the embodiment of the present invention.The present invention can also be embodied as part or all equipment or the device program (for example, computer program and computer program) for carrying out method as described herein.Realizing program of the present invention and can be stored on computer-readable medium like this, or can there is the form of one or more signal.Such signal can be downloaded and obtain from internet website, or provides on carrier signal, or provides with any other form.
It should be noted above-described embodiment the present invention will be described instead of limit the invention, and those skilled in the art can design alternative embodiment in the case of not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and is not listed as element or step in the claims.Being positioned at word " " before element or " one " does not get rid of and has multiple such elements.The present invention can be by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim of having enumerated some devices, several in these devices can be to carry out imbody by same hardware branch.The use of word first, second and C grade does not represent any order.Can be title by these word explanations.
The invention provides following scheme:
The method that the process of A1, a kind of application programs manages, comprising:
Receiving system broadcast, determines that whether terminal is in screen closed condition;
When definite screen is during in closed condition, obtain the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program;
According to preset management of process rule, dormant state is closed or be set to process lower priority.
A2, method as described in A1, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
A3, method as described in A2, described importance attribute refers to the constant IMOPORTANCE of RunningAppProcessInfo object the inside.
A4, method as described in A1, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
A5, method as described in A1, also comprise: provide visualization interface to user, accept the manual calibration of user to management of process.
A6, method as described in A5, the described manual calibration to management of process comprises:
According to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or,
Select according to user to, the process of application-specific is carried out screen locking dormancy or kept background operation state.
A7, method as described in A1, also comprise:
Judge that whether application program corresponding to process is included in preset application program white list, if so, remains running status by this process.
A8, method as described in A1, also comprise:
Judge whether application program corresponding to process is included in preset application program blacklist, and if so, this process is set to dormant state.
The device that the process of B9, a kind of application programs manages, comprising:
Broadcast receiving element, for receiving system broadcast, determines that whether terminal is in screen closed condition;
Process priority acquiring unit, for when definite screen is during in closed condition, obtains the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program;
Administrative unit, for according to preset management of process rule, closes or is set to dormant state by process lower priority.
B10, device as described in B9, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
B11, device as described in B10, described importance attribute refers to the constant IMOPORTANCE of RunningAppProcessInfo object the inside.
B12, device as described in B9, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
Device described in B13, B9, also comprises: manual calibration unit, for providing visualization interface to user, accept the manual calibration of user to management of process.
B14, device as described in B13, described manual calibration unit specifically for: according to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or, select according to user, the process of application-specific is carried out screen locking dormancy or kept background operation state.
B15, device as described in B9, also comprise: list judging unit, judge whether application program corresponding to process is included in preset application program white list, and if so, indicate described management of process unit that this process is remained to running status.
B16, device as described in B9, also comprise: list judging unit, and for judging whether application program corresponding to process is included in preset application program blacklist, if so, indicate this process of described management of process unit to be set to dormant state.

Claims (10)

1. the method that the process of application programs manages, is characterized in that, comprising:
Receiving system broadcast, determines that whether terminal is in screen closed condition;
When definite screen is during in closed condition, obtain the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program;
According to preset management of process rule, dormant state is closed or be set to process lower priority.
2. the method for claim 1, is characterized in that, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
3. method as claimed in claim 2, is characterized in that, described importance attribute refers to the constant IMOPORTANCE of RunningAppProcessInfo object the inside.
4. the method for claim 1, it is characterized in that, described management of process rule comprises: after terminal is reached the schedule time by screen locking, priority is set to dormant state lower than user application and the process corresponding to system application of priority lowest threshold.
5. the method for claim 1, is characterized in that, also comprises: provide visualization interface to user, accept the manual calibration of user to management of process.
6. method as claimed in claim 5, is characterized in that, the described manual calibration to management of process comprises:
According to the priority of each process, process is carried out wouldn't dormancy, dormancy or the directly operation of dormancy after screen locking; Or,
Select according to user to, the process of application-specific is carried out screen locking dormancy or kept background operation state.
7. the method for claim 1, is characterized in that, also comprises:
Judge that whether application program corresponding to process is included in preset application program white list, if so, remains running status by this process.
8. the method for claim 1, is characterized in that, also comprises:
Judge whether application program corresponding to process is included in preset application program blacklist, and if so, this process is set to dormant state.
9. the device that the process of application programs manages, is characterized in that, comprising:
Broadcast receiving element, for receiving system broadcast, determines that whether terminal is in screen closed condition;
Process priority acquiring unit, for when definite screen is during in closed condition, obtains the priority of the corresponding process of each application program by application call interface; The described priority of obtaining the corresponding process of each application program comprises: the Procession information of application programme object that the system of obtaining is being moved, obtain the numerical value of importance attribute by the described Procession information of application programme object moving, determine the process priority of each application program;
Administrative unit, for according to preset management of process rule, closes or is set to dormant state by process lower priority.
10. device as claimed in claim 9, is characterized in that, the described Procession information of application programme object moving refers to the RunningAppProcessInfo object in Android operating system.
CN201410466754.6A 2014-09-12 2014-09-12 The method and device being managed to the process of application program Active CN104199731B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410466754.6A CN104199731B (en) 2014-09-12 2014-09-12 The method and device being managed to the process of application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410466754.6A CN104199731B (en) 2014-09-12 2014-09-12 The method and device being managed to the process of application program

Publications (2)

Publication Number Publication Date
CN104199731A true CN104199731A (en) 2014-12-10
CN104199731B CN104199731B (en) 2018-02-06

Family

ID=52085028

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410466754.6A Active CN104199731B (en) 2014-09-12 2014-09-12 The method and device being managed to the process of application program

Country Status (1)

Country Link
CN (1) CN104199731B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486510A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal
CN105159776A (en) * 2015-08-03 2015-12-16 中科创达软件股份有限公司 Process handling method and apparatus
CN105278370A (en) * 2015-09-30 2016-01-27 小米科技有限责任公司 Power-saving mode starting method and device
CN106201684A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of method managing application and terminal
CN107003902A (en) * 2015-04-14 2017-08-01 华为技术有限公司 A kind of method of management of process, device and equipment
CN107239354A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 A kind of method and terminal for notifying to cease screen event
CN107450709A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 application processing method, device, storage medium and electronic equipment
CN107479954A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 process management method, device, storage medium and electronic equipment
CN107544847A (en) * 2017-08-16 2018-01-05 惠州Tcl移动通信有限公司 Terminal discharges method, storage medium and the terminal that background process takes resource automatically
CN107741864A (en) * 2017-09-20 2018-02-27 维沃移动通信有限公司 The progress control method and mobile terminal of a kind of application program
CN108509263A (en) * 2018-03-28 2018-09-07 深圳酷泰丰科技有限公司 A kind of background process management method and system
CN110086932A (en) * 2019-04-24 2019-08-02 努比亚技术有限公司 A kind of process initiation control method, wearable device and storage medium
CN110096347A (en) * 2019-03-29 2019-08-06 努比亚技术有限公司 A kind of process back-stage management method, terminal and computer readable storage medium
CN110955512A (en) * 2018-09-27 2020-04-03 阿里巴巴集团控股有限公司 Cache processing method and device, storage medium, processor and computing equipment
CN111027055A (en) * 2019-03-19 2020-04-17 哈尔滨安天科技集团股份有限公司 Method and device for hiding android system process and storage device
CN111352710A (en) * 2018-12-24 2020-06-30 北京奇虎科技有限公司 Process management method and device, computing equipment and storage medium
CN111984538A (en) * 2020-08-24 2020-11-24 深圳市捷诚技术服务有限公司 System information output method and device, computer readable storage medium and terminal
CN112256171A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for presenting information in screen locking interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092691A (en) * 2013-01-23 2013-05-08 广东欧珀移动通信有限公司 Process management method and management unit of Android system
CN103345397A (en) * 2013-07-11 2013-10-09 北京奇虎科技有限公司 Method and device for cleaning processes of mobile terminal
CN103744585A (en) * 2014-02-14 2014-04-23 贝壳网际(北京)安全技术有限公司 Information displaying method applied to screen locking state and device thereof
CN104010230A (en) * 2014-06-17 2014-08-27 合一网络技术(北京)有限公司 Video playing method and system in screen-locked state

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092691A (en) * 2013-01-23 2013-05-08 广东欧珀移动通信有限公司 Process management method and management unit of Android system
CN103345397A (en) * 2013-07-11 2013-10-09 北京奇虎科技有限公司 Method and device for cleaning processes of mobile terminal
CN103744585A (en) * 2014-02-14 2014-04-23 贝壳网际(北京)安全技术有限公司 Information displaying method applied to screen locking state and device thereof
CN104010230A (en) * 2014-06-17 2014-08-27 合一网络技术(北京)有限公司 Video playing method and system in screen-locked state

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486510A (en) * 2014-12-16 2015-04-01 上海斐讯数据通信技术有限公司 Method for reducing power consumption of intelligent terminal, and system for reducing power consumption of intelligent terminal
CN107003902A (en) * 2015-04-14 2017-08-01 华为技术有限公司 A kind of method of management of process, device and equipment
CN105159776B (en) * 2015-08-03 2019-02-19 中科创达软件股份有限公司 Process handling method and device
CN105159776A (en) * 2015-08-03 2015-12-16 中科创达软件股份有限公司 Process handling method and apparatus
CN105278370A (en) * 2015-09-30 2016-01-27 小米科技有限责任公司 Power-saving mode starting method and device
CN106201684A (en) * 2016-06-30 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of method managing application and terminal
CN107239354A (en) * 2017-06-06 2017-10-10 深圳天珑无线科技有限公司 A kind of method and terminal for notifying to cease screen event
CN107450709B (en) * 2017-07-31 2019-09-24 Oppo广东移动通信有限公司 Application processing method, device, storage medium and electronic equipment
CN107450709A (en) * 2017-07-31 2017-12-08 广东欧珀移动通信有限公司 application processing method, device, storage medium and electronic equipment
US11157315B2 (en) 2017-07-31 2021-10-26 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method for process management and electronic device
CN107479954B (en) * 2017-07-31 2019-10-29 Oppo广东移动通信有限公司 Process management method, device, storage medium and electronic equipment
CN107479954A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 process management method, device, storage medium and electronic equipment
WO2019034104A1 (en) * 2017-08-16 2019-02-21 捷开通讯(深圳)有限公司 Method of automatically releasing resource occupied by background process of terminal, storage medium and terminal
CN107544847A (en) * 2017-08-16 2018-01-05 惠州Tcl移动通信有限公司 Terminal discharges method, storage medium and the terminal that background process takes resource automatically
US11138041B2 (en) 2017-08-16 2021-10-05 JRD Communication (Shenzhen) Ltd. Method for automatically releasing resource occupied by process in background of terminal, storage medium and terminal
CN107741864A (en) * 2017-09-20 2018-02-27 维沃移动通信有限公司 The progress control method and mobile terminal of a kind of application program
WO2019184821A1 (en) * 2018-03-28 2019-10-03 深圳酷泰丰科技有限公司 Method and system for managing background process
CN108509263A (en) * 2018-03-28 2018-09-07 深圳酷泰丰科技有限公司 A kind of background process management method and system
CN110955512A (en) * 2018-09-27 2020-04-03 阿里巴巴集团控股有限公司 Cache processing method and device, storage medium, processor and computing equipment
CN110955512B (en) * 2018-09-27 2023-05-30 阿里巴巴集团控股有限公司 Cache processing method, device, storage medium, processor and computing equipment
CN111352710B (en) * 2018-12-24 2024-02-06 三六零科技集团有限公司 Process management method and device, computing equipment and storage medium
CN111352710A (en) * 2018-12-24 2020-06-30 北京奇虎科技有限公司 Process management method and device, computing equipment and storage medium
CN111027055A (en) * 2019-03-19 2020-04-17 哈尔滨安天科技集团股份有限公司 Method and device for hiding android system process and storage device
CN110096347A (en) * 2019-03-29 2019-08-06 努比亚技术有限公司 A kind of process back-stage management method, terminal and computer readable storage medium
CN110086932B (en) * 2019-04-24 2021-05-25 努比亚技术有限公司 Process starting control method, wearable device and storage medium
CN110086932A (en) * 2019-04-24 2019-08-02 努比亚技术有限公司 A kind of process initiation control method, wearable device and storage medium
CN111984538A (en) * 2020-08-24 2020-11-24 深圳市捷诚技术服务有限公司 System information output method and device, computer readable storage medium and terminal
CN112256171A (en) * 2020-10-20 2021-01-22 北京字节跳动网络技术有限公司 Method, device, terminal and storage medium for presenting information in screen locking interface
WO2022083568A1 (en) * 2020-10-20 2022-04-28 北京字节跳动网络技术有限公司 Method and apparatus for presenting information on lock-screen interface, and terminal and storage medium

Also Published As

Publication number Publication date
CN104199731B (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN104199669A (en) Method and device for managing application program processes
CN104199731A (en) Method and device for managing application program processes
CN104252389B (en) application program operation method, system
CN105354492B (en) Communication terminal and its message informing control method and device
CN110502402B (en) Message processing method and device and terminal device
CN103888619B (en) A kind of message treatment method and system thereof
CN105094279A (en) Method, apparatus and system for improving standby performance of intelligent terminal
CN103218307B (en) Internal storage management system and EMS memory management process
CN103841204A (en) Traffic-free downloading method, device and system based on mobile terminal
AU2013232671A1 (en) Method, apparatus and computer storage medium for plug-in management and control
CN105094280A (en) Method, apparatus and system for improving standby performance of intelligent terminal
CN110554762A (en) Method and terminal for controlling application program
CN106648849A (en) Process freezing method and mobile terminal
CN108536492B (en) Method, device, equipment and storage medium for acquiring attribute information of live broadcast room
CN105095749A (en) Status bar notification takeover method and device
KR20110112407A (en) A method, apparatus and computer program for conserving battery charge
CN104317373A (en) Method and device for cooling mobile terminal
EP3418892A1 (en) Method and device for managing and controlling broadcast, and terminal
CN106886456A (en) A kind of application program intelligent control method and device
CN103024532A (en) Hardware monitoring method and system
CN111131841A (en) Live indirect access method and device, electronic equipment and storage medium
CN106874048A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN105337783A (en) Method of monitoring abnormal flow consumption of communication equipment and apparatus
CN106874086A (en) A kind of processing method of application program self-starting, device and mobile terminal
CN104216819A (en) Method for managing terminal application

Legal Events

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

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co., Ltd