Management method and system for background application program

A technology of application program and management method, applied in the field of background application program management method and management system, can solve the problems of large system resources, affecting the fluency of the terminal, etc., and achieve the effect of improving the fluency

Active Publication Date: 2015-06-24
ZHEJIANG UNIV
5 Cites 20 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] In view of this, the present invention provides a background application management method and management system to solve the te...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

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.

Application Domain

Technology Topic

Image

  • Management method and system for background application program
  • Management method and system for background application program

Examples

  • Experimental program(2)

Example Embodiment

[0020] Example one
[0021] Such as figure 1 Shown is a flowchart of a background application management method provided by an embodiment of the present invention, and the method includes the following steps:
[0022] Step S101: Obtain the feedback delay of the terminal to the operation in the current state.
[0023] In the embodiment of the present invention, as the use time of the terminal changes, the state of the terminal will also change accordingly. The system for background application management first obtains the feedback time of the terminal on the operation in the current state. Specifically, the operation includes: User operation or simulated user operation of the terminal. Wherein, if the operation is a user operation simulated by the terminal, the obtaining the feedback delay of the terminal on the operation is specifically:
[0024] 1. Simulate user operations by calling the application programming interface API of the user interface UI.
[0025] In the embodiment of the present invention, the system for background application management simulates user operations by calling API (Application Programming Interface, abbreviation: application programming interface) of UI (User Interface, abbreviation: user interface) in the terminal.
[0026] Take the Android system as an example:
[0027] Call the Android system window manager WindowManager, embed the WindowManager.LayoutParams.TYPE_SYSTEM_ALERT type View, so that the module can always be in a suspended state, always occupying a small area on the edge of the screen.
[0028] Set up a Touch listener in View to simulate a short-distance sliding operation. At the beginning of the simulation execution and the end of the simulation execution, piling inserts the code to obtain the timestamp. The code to get the timestamp gets the accurate time of the current system: startTime and endTime by calling the uptime command of the underlying shell. In order to ensure that the test does not affect the user's operation, set up another monitor to monitor whether there are other Touch operations from the user. When an operation from the user is detected, stop the simulation operation until the end of the user operation, and then start again.
[0029] 2. Obtain the feedback delay of the terminal to the operation according to the simulated user operation.
[0030] Step S102, comparing the feedback delay with a preset feedback delay threshold.
[0031] In the embodiment of the present invention, after acquiring the feedback time of the terminal on the operation, the system for performing background application management compares the feedback time with a preset feedback time threshold, so that subsequent steps can be processed according to the comparison . Among them, the feedback time threshold varies according to actual application scenarios, and is not limited here.
[0032] Step S103: If the feedback delay is greater than the feedback delay threshold, the occupancy rate of the application program is compared with a preset occupancy rate threshold, where the occupancy rate includes: CPU occupancy rate and/or memory occupancy rate.
[0033] In the embodiment of the present invention, if the feedback delay is greater than the preset feedback delay threshold, it means that the terminal has been stuck, and the system for background application management compares the occupancy rate of the application with the preset occupancy rate. The thresholds are compared, so that in subsequent steps, the application is managed according to the occupancy rate, where the occupancy rate includes but is not limited to: CPU occupancy rate and/or memory occupancy rate.
[0034] Step S104: If the occupancy rate of the application program is greater than the occupancy rate threshold, the application program is managed.
[0035] In the embodiment of the present invention, if the occupancy rate of the application program is greater than the occupancy rate legal system, it means that the application program needs to be managed, and the system for background application management manages the application program, where the management includes but is not limited to: Stop, pause or delete.
[0036] In the embodiment of the present invention, the feedback delay of the terminal to the operation in the current state is obtained, and the feedback delay is compared with the preset feedback delay threshold. If the feedback delay is greater than the feedback delay threshold and the application occupancy rate is greater than the preset If the occupancy threshold is higher, the terminal manages the application program, which improves the smoothness of terminal operation.
[0037] As an optional embodiment of the present invention, before the step of comparing the feedback delay with a preset feedback delay threshold, the method further includes the following steps:
[0038] The feedback delay threshold is preset.
[0039] As another optional embodiment of the present invention, before the step of comparing the occupancy rate of the application program with a preset occupancy rate threshold if the feedback delay is greater than the feedback delay threshold, the The method also includes the following steps:
[0040] Preset the occupancy rate threshold.

Example Embodiment

[0041] Example two
[0042] Such as figure 2 Shown is a structural diagram of a background application management system provided by an embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown, including:
[0043] The feedback delay acquiring unit 201 is configured to acquire the feedback delay of the terminal to the operation in the current state.
[0044] In the embodiment of the present invention, as the use time of the terminal changes, the state of the terminal will also change accordingly. The system for background application management first obtains the feedback time of the terminal on the operation in the current state. Specifically, the operation includes: User operation or simulated user operation of the terminal. The feedback delay acquiring unit 201 includes:
[0045] The user operation simulation subunit 2011 is used to simulate a user operation by calling an application programming interface API of the user interface UI.
[0046] In the embodiment of the present invention, the system for background application management simulates user operations by calling API (Application Programming Interface, abbreviation: application programming interface) of UI (User Interface, abbreviation: user interface) in the terminal.
[0047] The feedback delay obtaining subunit 2012 is configured to obtain the feedback delay of the terminal on the operation according to the user operation simulated by the user operation simulation subunit 2011.
[0048] The feedback delay comparing unit 202 is configured to compare the feedback delay acquired by the feedback delay acquiring unit 201 with a preset feedback delay threshold.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Classification and recommendation of technical efficacy words

Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products