CN104731643A - Management method and system for background application program - Google Patents

Management method and system for background application program Download PDF

Info

Publication number
CN104731643A
CN104731643A CN201510089150.9A CN201510089150A CN104731643A CN 104731643 A CN104731643 A CN 104731643A CN 201510089150 A CN201510089150 A CN 201510089150A CN 104731643 A CN104731643 A CN 104731643A
Authority
CN
China
Prior art keywords
feedback
delay
threshold value
occupancy
application program
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
CN201510089150.9A
Other languages
Chinese (zh)
Other versions
CN104731643B (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201510089150.9A priority Critical patent/CN104731643B/en
Publication of CN104731643A publication Critical patent/CN104731643A/en
Application granted granted Critical
Publication of CN104731643B publication Critical patent/CN104731643B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)

Abstract

The invention belongs to the field of electric digital data processing, and provides a management method and system for a background application program. The method comprises the steps that the feedback delay of a terminal to operation under the current state is obtained; the feedback delay is compared with the preset feedback delay threshold value; if the feedback delay is larger than the preset feedback delay threshold value, the occupancy rate of the application program and the preset occupancy rate threshold value are compared, and the occupancy rate comprises a CPU occupancy rate or a memory occupancy rate; if the occupancy rate of the application program is larger than the occupancy rate threshold value, the application program is managed. According to the embodiment, the feedback delay of the terminal to the operation under the current state is obtained, the feedback delay is compared with the preset feedback delay threshold value, and if the feedback delay is larger than the preset feedback delay threshold value and the occupancy rate of the application program is larger than the preset occupancy rate threshold value, the application program is managed through the terminal, and the running fluency of the terminal is improved.

Description

A kind of management method of background application and management system
Technical field
The invention belongs to electric digital data processing field, particularly relate to a kind of management method and management system of background application.
Background technology
Take Linux as the Android operation system of core, as a set of perfect mobile device operation system scheme, be just progressively extended to each class of electronic devices platform from cell phone platform.But then, the inherent opening of Android platform allows increasing third-party application select to keep process in system background, and these background process do not provide kernel service, but occupy very large system resource, affect the fluency of foreground application.
Summary of the invention
Given this, the invention provides a kind of management method and management system of background application, large to solve background application occupying system resources in prior art, affect the technical matters of the fluency of terminal.
The embodiment of the present invention is achieved in that a kind of management method and management system of background application, said method comprising the steps of:
Under obtaining current state, terminal is to the delay of feedback of operation;
Described delay of feedback and the delay of feedback threshold value preset are compared;
If described delay of feedback is greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage;
If the described occupancy of application program is greater than described occupancy threshold value, then described application program is managed.
The embodiment of the present invention also provides a kind of management system of background application, and described system comprises:
Delay of feedback acquiring unit, for obtaining under current state terminal to the delay of feedback of operation;
Delay of feedback comparing unit, compares with the delay of feedback threshold value preset for the delay of feedback obtained by described delay of feedback acquiring unit;
Occupancy comparing unit, if the comparative result for delay of feedback comparing unit is delay of feedback be greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage;
Administrative unit, if be that described occupancy is greater than described occupancy threshold value for the comparative result of described occupancy comparing unit, then manages described application program.
The embodiment of the present invention, under obtaining current state, terminal is to the delay of feedback of operation, delay of feedback and the delay of feedback threshold value preset are compared, if delay of feedback be greater than delay of feedback threshold value and, application program occupancy is greater than default occupancy threshold value, then terminal application programs manages, and improves the fluency of terminal operating.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of the background application management method that the embodiment of the present invention provides;
Fig. 2 is the structural drawing of the background application management system that the embodiment of the present invention provides.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
In order to technical solutions according to the invention are described, be described below by specific embodiment.
Embodiment one
Be illustrated in figure 1 the process flow diagram of the background application management method that the embodiment of the present invention provides, said method comprising the steps of:
Step S101, under obtaining current state, terminal is to the delay of feedback of operation.
In embodiments of the present invention, terminal is along with the change of service time, and the state of terminal also can change thereupon, and under first the system of carrying out background application management obtains current state, terminal is to the feedback time of operation, concrete, this operation comprises: the analog subscriber operation of user operation or terminal.Wherein, if described in be operating as the user operation of terminal simulation, then described acquisition terminal is to the delay of feedback of operation, is specially:
1, operated by the application programming interface API analog subscriber of invoke user interface UI.
In embodiments of the present invention, carry out the system of background application management by calling UI (UserInterface in terminal, be called for short: user interface) API (Application Programming Interface, be called for short: application programming interface) carry out analog subscriber operation.
Illustrate with Android system:
Call android system window manager WindowManager, embed the View of WindowManager.LayoutParams.TYPE_SYSTEM_ALERT type, make module can be in suspended state always, always occupy the region that screen edge one piece is very little.
A Touch audiomonitor is set in View, simulation execution one section of short distance slide.Perform in simulation and start and simulate the position performing and terminate, the code that acquisition time stabs is inserted in piling.The code of acquisition time stamp, by calling the uptime order of bottom shell, obtains the correct time of current system: startTime and endTime.For ensureing that test does not affect user operation, another audiomonitor being set, monitoring and whether have other Touch from user to operate, when listening to the operation from user, stopping simulated operation, until user operation terminates, then restarting.
2, the delay of feedback of terminal to operation is obtained according to described analog subscriber operation.
Step S102, compares described delay of feedback and the delay of feedback threshold value preset.
In embodiments of the present invention, the system of carrying out background application management obtain terminal to the feedback time of operation after, this feedback time and the feedback time threshold value preset are compared, so that in follow-up step, compare process according to this.Wherein, feedback time threshold value is different according to the difference of practical application scene, does not limit at this.
Step S103, if described delay of feedback is greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage.
In embodiments of the present invention, if delay of feedback is greater than default delay of feedback threshold value, then represent that terminal has occurred blocking the phenomenon of timing, the occupancy of application program and the occupancy threshold value preset compare by the system of carrying out background application management, to make in follow-up step, carry out the management of application program according to this occupancy, wherein, this occupancy includes but not limited to: CPU usage and/or memory usage.
Step S104, if the described occupancy of application program is greater than described occupancy threshold value, then manages described application program.
In embodiments of the present invention; if the occupancy of application program is greater than occupancy legal system, then represent that these application program needs manage, the system of carrying out background application management manages this application program; wherein, this management includes but not limited to: stop, suspending or delete.
The embodiment of the present invention, under obtaining current state, terminal is to the delay of feedback of operation, delay of feedback and the delay of feedback threshold value preset are compared, if delay of feedback be greater than delay of feedback threshold value and, application program occupancy is greater than default occupancy threshold value, then terminal application programs manages, and improves the fluency of terminal operating.
As an embodiment of the present invention, before the described step described delay of feedback and the delay of feedback threshold value preset compared, described method is further comprising the steps of:
Preset described delay of feedback threshold value.
As another alternative embodiment of the invention, if be greater than described delay of feedback threshold value at described delay of feedback, then, before the step occupancy of application program and the occupancy threshold value preset compared, described method is further comprising the steps of:
Preset described occupancy threshold value.
Embodiment two
Be illustrated in figure 2 the structural drawing of the background application management system that the embodiment of the present invention provides, for convenience of explanation, the part relevant to the embodiment of the present invention be only shown, comprise:
Delay of feedback acquiring unit 201, for obtaining under current state terminal to the delay of feedback of operation.
In embodiments of the present invention, terminal is along with the change of service time, and the state of terminal also can change thereupon, and under first the system of carrying out background application management obtains current state, terminal is to the feedback time of operation, concrete, this operation comprises: the analog subscriber operation of user operation or terminal.Described delay of feedback acquiring unit 201, comprising:
User operation analog submodule unit 2011, operates for the application programming interface API analog subscriber by invoke user interface UI.
In embodiments of the present invention, carry out the system of background application management by calling UI (UserInterface in terminal, be called for short: user interface) API (Application Programming Interface, be called for short: application programming interface) carry out analog subscriber operation.
Delay of feedback obtains subelement 2012, for obtaining the delay of feedback of terminal to operation according to the user operation of described user operation analog submodule unit 2011 simulation.
Delay of feedback comparing unit 202, compares with the delay of feedback threshold value preset for the delay of feedback obtained by described delay of feedback acquiring unit 201.
In embodiments of the present invention, the system of carrying out background application management obtain terminal to the feedback time of operation after, this feedback time and the feedback time threshold value preset are compared, so that in follow-up step, compare process according to this.Wherein, feedback time threshold value is different according to the difference of practical application scene, does not limit at this.
Occupancy comparing unit 203, if the comparative result for delay of feedback comparing unit 202 is delay of feedback be greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage.
In embodiments of the present invention, if delay of feedback is greater than default delay of feedback threshold value, then represent that terminal has occurred blocking the phenomenon of timing, the occupancy of application program and the occupancy threshold value preset compare by the system of carrying out background application management, to make in follow-up step, carry out the management of application program according to this occupancy, wherein, this occupancy includes but not limited to: CPU usage and/or memory usage.
Administrative unit 204, if be that described occupancy is greater than described occupancy threshold value for the comparative result of described occupancy comparing unit 203, then manages described application program.
In embodiments of the present invention; if the occupancy of application program is greater than occupancy legal system, then represent that these application program needs manage, the system of carrying out background application management manages this application program; wherein, this management includes but not limited to: stop, suspending or delete.
The embodiment of the present invention, under obtaining current state, terminal is to the delay of feedback of operation, delay of feedback and the delay of feedback threshold value preset are compared, if delay of feedback be greater than delay of feedback threshold value and, application program occupancy is greater than default occupancy threshold value, then terminal application programs manages, and improves the fluency of terminal operating.
As an embodiment of the present invention, before described delay of feedback comparing unit 202 compares, described system also comprises:
Delay of feedback threshold preset unit 205, for presetting described delay of feedback threshold value.
As another alternative embodiment of the invention, before described occupancy comparing unit 203 compares, described system also comprises:
Occupancy threshold preset unit 206, for presetting described occupancy threshold value.
One of ordinary skill in the art will appreciate that the unit included by above-described embodiment two is carry out dividing according to function logic, but be not limited to above-mentioned division, as long as corresponding function can be realized; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
Those of ordinary skill in the art it is also understood that, the all or part of step realized in above-described embodiment method is that the hardware that can carry out instruction relevant by program has come, described program can be stored in a computer read/write memory medium, described storage medium, comprises ROM/RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. a management method for background application, is characterized in that, said method comprising the steps of:
Under obtaining current state, terminal is to the delay of feedback of operation;
Described delay of feedback and the delay of feedback threshold value preset are compared;
If described delay of feedback is greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage;
If the described occupancy of application program is greater than described occupancy threshold value, then described application program is managed.
2. the method for claim 1, is characterized in that, before the described step described delay of feedback and the delay of feedback threshold value preset compared, described method is further comprising the steps of:
Preset described delay of feedback threshold value.
3. the method for claim 1, is characterized in that, if be greater than described delay of feedback threshold value at described delay of feedback, then, before the step occupancy of application program and the occupancy threshold value preset compared, described method is further comprising the steps of:
Preset described occupancy threshold value.
4. the method as described in any one of claims 1 to 3, is characterized in that, if described in be operating as the user operation of terminal simulation, then described acquisition terminal is to the delay of feedback of operation, is specially:
Operated by the application programming interface API analog subscriber of invoke user interface UI;
The delay of feedback of terminal to operation is obtained according to described analog subscriber operation.
5. a management system for background application, is characterized in that, described system comprises:
Delay of feedback acquiring unit, for obtaining under current state terminal to the delay of feedback of operation;
Delay of feedback comparing unit, compares with the delay of feedback threshold value preset for the delay of feedback obtained by described delay of feedback acquiring unit;
Occupancy comparing unit, if the comparative result for delay of feedback comparing unit is delay of feedback be greater than described delay of feedback threshold value, then the occupancy of application program and the occupancy threshold value preset are compared, described occupancy comprises: CPU usage and/or memory usage;
Administrative unit, if be that described occupancy is greater than described occupancy threshold value for the comparative result of described occupancy comparing unit, then manages described application program.
6. system as claimed in claim 5, it is characterized in that, before described delay of feedback comparing unit compares, described system also comprises:
Delay of feedback threshold preset unit, for presetting described delay of feedback threshold value.
7. system as claimed in claim 5, it is characterized in that, before described occupancy comparing unit compares, described system also comprises:
Occupancy threshold preset unit, for presetting described occupancy threshold value.
8. the system as described in any one of claim 5-7, is characterized in that, described delay of feedback acquiring unit, comprising:
User operation analog submodule unit, operates for the application programming interface API analog subscriber by invoke user interface UI;
Delay of feedback obtains subelement, for obtaining the delay of feedback of terminal to operation according to the user operation of described user operation analog submodule unit simulation.
CN201510089150.9A 2015-02-27 2015-02-27 A kind of management method and management system of background application Active CN104731643B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510089150.9A CN104731643B (en) 2015-02-27 2015-02-27 A kind of management method and management system of background application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510089150.9A CN104731643B (en) 2015-02-27 2015-02-27 A kind of management method and management system of background application

Publications (2)

Publication Number Publication Date
CN104731643A true CN104731643A (en) 2015-06-24
CN104731643B CN104731643B (en) 2019-02-26

Family

ID=53455557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510089150.9A Active CN104731643B (en) 2015-02-27 2015-02-27 A kind of management method and management system of background application

Country Status (1)

Country Link
CN (1) CN104731643B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105893130A (en) * 2016-03-31 2016-08-24 维沃移动通信有限公司 Mobile terminal application program processing method and mobile terminal
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal
CN106708613A (en) * 2016-05-05 2017-05-24 腾讯科技(深圳)有限公司 Input control sensitivity detection method and device
WO2017101332A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Method and apparatus for triggering background tasks
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN107577508A (en) * 2017-08-14 2018-01-12 广东欧珀移动通信有限公司 Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN107704316A (en) * 2017-08-04 2018-02-16 广东欧珀移动通信有限公司 Applied program processing method, device, mobile terminal and storage medium
WO2018036505A1 (en) * 2016-08-25 2018-03-01 华为技术有限公司 Method and device for managing background applications of terminal
CN107766139A (en) * 2017-10-26 2018-03-06 广东欧珀移动通信有限公司 Application management method and device
CN107783835A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 System optimization method and device
CN108614697A (en) * 2016-12-13 2018-10-02 杭州华为数字技术有限公司 Backstage Dex compiles the method and device of management and control

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
CN103136102A (en) * 2013-02-07 2013-06-05 百度在线网络技术(北京)有限公司 Method and device for testing fluency of Android platform
CN103473011A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Mobile terminal, and performance detecting method and performance detecting device for mobile terminal
CN104239196A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Method and device for detecting abnormal operation of application program and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102946486A (en) * 2012-11-20 2013-02-27 惠州Tcl移动通信有限公司 Background application automatic clearing method based on mobile phone and mobile phone
US20150058867A1 (en) * 2012-11-20 2015-02-26 Huizhou Tcl Mobile Communication Co., Ltd. Method, an electronic device, and a storage medium for auto-cleaning up applications in a background
CN103136102A (en) * 2013-02-07 2013-06-05 百度在线网络技术(北京)有限公司 Method and device for testing fluency of Android platform
CN103473011A (en) * 2013-09-03 2013-12-25 小米科技有限责任公司 Mobile terminal, and performance detecting method and performance detecting device for mobile terminal
CN104239196A (en) * 2014-09-17 2014-12-24 北京金山安全软件有限公司 Method and device for detecting abnormal operation of application program and mobile terminal

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017101332A1 (en) * 2015-12-15 2017-06-22 乐视控股(北京)有限公司 Method and apparatus for triggering background tasks
CN105893130B (en) * 2016-03-31 2019-06-07 维沃移动通信有限公司 A kind of processing method and mobile terminal of application program for mobile terminal
CN105893130A (en) * 2016-03-31 2016-08-24 维沃移动通信有限公司 Mobile terminal application program processing method and mobile terminal
CN106708613A (en) * 2016-05-05 2017-05-24 腾讯科技(深圳)有限公司 Input control sensitivity detection method and device
CN106708613B (en) * 2016-05-05 2019-09-17 腾讯科技(深圳)有限公司 A kind of detection method and detection device of input control sensitivity
CN106095566A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of response control mehtod and mobile terminal
CN107783833A (en) * 2016-08-25 2018-03-09 华为技术有限公司 A kind of management method and device of terminal background application
WO2018036505A1 (en) * 2016-08-25 2018-03-01 华为技术有限公司 Method and device for managing background applications of terminal
CN107783833B (en) * 2016-08-25 2020-04-28 华为技术有限公司 Management method and device for terminal background application program
CN107783835A (en) * 2016-08-31 2018-03-09 中国电信股份有限公司 System optimization method and device
CN108614697B (en) * 2016-12-13 2021-03-30 华为技术有限公司 Background Dex compiling control method and device
CN108614697A (en) * 2016-12-13 2018-10-02 杭州华为数字技术有限公司 Backstage Dex compiles the method and device of management and control
CN107704316A (en) * 2017-08-04 2018-02-16 广东欧珀移动通信有限公司 Applied program processing method, device, mobile terminal and storage medium
CN107577508B (en) * 2017-08-14 2020-07-21 Oppo广东移动通信有限公司 Application processing method and device, readable storage medium and mobile terminal
CN107577508A (en) * 2017-08-14 2018-01-12 广东欧珀移动通信有限公司 Applied program processing method, device, readable storage medium storing program for executing and mobile terminal
CN107544842A (en) * 2017-08-25 2018-01-05 广东欧珀移动通信有限公司 Applied program processing method and device, computer equipment, storage medium
CN107766139B (en) * 2017-10-26 2019-06-11 Oppo广东移动通信有限公司 Application management method and device
CN107766139A (en) * 2017-10-26 2018-03-06 广东欧珀移动通信有限公司 Application management method and device

Also Published As

Publication number Publication date
CN104731643B (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN104731643A (en) Management method and system for background application program
US9639256B2 (en) Method for starting activity of mobile terminal and the mobile terminal
CN104636144A (en) Background program management method and device of mobile terminal
CN105373419A (en) Background application operation method and system
WO2019228344A1 (en) Resource configuration method and apparatus, and terminal and storage medium
CN105487980A (en) Method and device for repairing running abnormity of application program
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
CN105573484A (en) Projection method and terminal
CN110213620B (en) Bandwidth allocation method and device
CN105739956A (en) Method and system for constructing intelligent rule model of computer system
CN105005607A (en) Page information loading method and page information loading device
CN104808991A (en) Terminal processing method
CN105022687A (en) Implementation method and device of sliding operation in automated testing scheme
CN104954699A (en) Shooting parameter setting method and user terminal
CN109729506B (en) Service caching method, system and device
CN103874987A (en) Embedded multimedia card partition memory space adjustment method and terminal
CN108234551B (en) Data processing method and device
CN109376020B (en) Data processing method, device and storage medium under multi-block chain interaction concurrence
CN104601786A (en) Method for controlling information reminder light of terminal, and terminal
CN110868347A (en) Message prompting method, device and system
CN104809049A (en) Terminal
US20230115955A1 (en) Voice call method and apparatus and electronic device
CN109379548B (en) Multimedia recording method, device, terminal and storage medium
CN103761096A (en) Automatic input method and device achieved based on IBinder mechanism
CN107766057B (en) Unloading control method, device, terminal and readable storage medium

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