CN110377362B - Method, device, terminal and storage medium for cleaning application program - Google Patents

Method, device, terminal and storage medium for cleaning application program Download PDF

Info

Publication number
CN110377362B
CN110377362B CN201910647440.9A CN201910647440A CN110377362B CN 110377362 B CN110377362 B CN 110377362B CN 201910647440 A CN201910647440 A CN 201910647440A CN 110377362 B CN110377362 B CN 110377362B
Authority
CN
China
Prior art keywords
application program
screenshot
ending
target application
cleaning
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910647440.9A
Other languages
Chinese (zh)
Other versions
CN110377362A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910647440.9A priority Critical patent/CN110377362B/en
Publication of CN110377362A publication Critical patent/CN110377362A/en
Application granted granted Critical
Publication of CN110377362B publication Critical patent/CN110377362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3013Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is an embedded system, i.e. a combination of hardware and software dedicated to perform a certain function in mobile devices, printers, automotive or aircraft systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44594Unloading
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure relates to the technical field of computers, and in particular relates to a method, a device, a terminal and a storage medium for cleaning an application program. The method for cleaning the application program is applied to the intelligent terminal, and comprises the following steps: determining a target application program; ending the running process of the target application program and capturing a screenshot of the target application program; displaying the screenshot; and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot. Therefore, the method for cleaning the application program can effectively clean the idle application, save system resources, inform the user of the ending condition of the application program in a screenshot mode, and directly restart the application program or cancel displaying the screenshot according to the triggering event of the user on the screenshot, so that user experience is improved.

Description

Method, device, terminal and storage medium for cleaning application program
Technical Field
The disclosure relates to the technical field of computers, and in particular relates to a method, a device, a terminal and a storage medium for cleaning an application program.
Background
With the continuous development of electronic technology and the increasing popularity of intelligent terminals, existing intelligent terminals can install various application programs, such as social software, players, maps, games, and the like, and have the capability of simultaneously running multiple tasks. However, in the use process of the intelligent terminal, a user often forgets to close the application program which is used currently, so that a plurality of idle application programs are active in the foreground or the background of the system for a long time and consume system resources, the intelligent terminal is easy to operate and is blocked, the operation smoothness of the terminal and the cruising ability of the terminal are further affected, and the use experience of the user is reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In one aspect, the present disclosure provides a method for cleaning an application, where the method is applied to an intelligent terminal, and the method includes:
determining a target application program;
ending the running process of the target application program and capturing a screenshot of the target application program;
displaying the screenshot;
and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot.
In another aspect, the present disclosure provides an apparatus for cleaning an application, where the apparatus is applied to an intelligent terminal, the apparatus includes:
a determining unit configured to determine a target application;
the ending unit is used for ending the running process of the target application program and capturing the screenshot of the target application program;
the display unit is used for displaying the screenshot;
and the operation unit is used for restarting the target application program or canceling the display of the screenshot in response to the trigger event of the screenshot.
In another aspect, the present disclosure provides a terminal including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for cleaning the application program.
In another aspect, the present disclosure provides a computer storage medium storing program code for executing the method of cleaning an application described above.
The method for cleaning the application program provided by the disclosure comprises the following steps: determining a target application program; ending the running process of the target application program and capturing a screenshot of the target application program; displaying the screenshot; and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot. Therefore, the method for cleaning the application program can effectively clean idle application, save system resources, inform the user of the ending condition of the application program in a screenshot mode, and restart the application program or cancel the screenshot according to the triggering event of the user on the screenshot, so that the user can conveniently perform subsequent operation, and further user experience is improved.
Drawings
The foregoing and other features, advantages and aspects of embodiments of the disclosure will become more apparent from the following detailed description of the embodiments, read in conjunction with the accompanying drawings, which illustrate more clearly the embodiments of the disclosure. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of a method of cleaning an application provided by an embodiment of the present disclosure;
FIG. 2A is a flow chart of a method of cleaning an application provided in another embodiment of the present disclosure;
FIG. 2B is a flow chart of a method of cleaning an application provided in another embodiment of the present disclosure;
FIG. 3A is a schematic diagram of a display application window provided by an embodiment of the present disclosure;
FIG. 3B is a schematic diagram of a screenshot of a display application window provided by an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an apparatus for cleaning an application according to an embodiment of the disclosure;
FIG. 5 is a schematic diagram of an apparatus for cleaning an application according to another embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of an electronic device used to implement an embodiment of the present disclosure.
Detailed Description
The method for cleaning the application program provided by the disclosure comprises the following steps: determining a target application program; ending the running process of the target application program and capturing a screenshot of the target application program; displaying the screenshot; and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot. Therefore, the method for cleaning the application program can effectively clean idle application, save system resources, inform the user of the ending condition of the application program in a screenshot mode, and can directly restart the application program or cancel displaying the screenshot according to the triggering event of the user on the screenshot, so that the user can conveniently perform subsequent operation, and further user experience is improved.
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Fig. 1 is a flowchart of a method of cleaning an application according to an embodiment of the present disclosure, only portions relevant to the present disclosure being shown for ease of illustration.
In an embodiment of the present disclosure, the method is applied to an intelligent terminal, where the intelligent terminal includes a display device, including the following two cases: (1) The intelligent terminal is connected or controlled to the display device in a wired or wireless mode, and whether the intelligent terminal is provided with other display devices or not; and (2) the intelligent terminal itself has a display device. Any user equipment capable of human-computer interaction with a user through a display device and controlling the display device is included in the smart terminals of the present disclosure, including, but not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like.
As shown in fig. 1, the method includes:
in step 101, a target application is determined. The target application program is an application program to be cleaned, which is currently operated by the intelligent terminal, and comprises an application program operated by the foreground and the background of the intelligent terminal. The determination of the target application includes both manual determination and automatic determination. Fig. 2 and 3 illustrate embodiments of manually and automatically determining a target application, respectively, provided by the present disclosure, as will be described below.
Fig. 2A illustrates an embodiment of a manually targeted application program provided by the present disclosure. In step 211, a triggering event of the application is detected. The triggering event of the application program comprises a preset control, such as a key displayed on a display interface, or a preset operation gesture or a voice command, and the preset operation command comprises but is not limited to touch operation such as touch, long press, sliding and the like, and operation commands input by an external input device such as clicking and the like. In step 212, the target application program is determined according to the triggering event of the application program, that is, the application program pointed by the triggering event is determined as the target application program.
Fig. 2B illustrates an embodiment of an automatically targeted application program provided by the present disclosure.
In step 221, an application program currently operated by the intelligent terminal and use information of the application program are obtained.
Likewise, applications run by the intelligent terminal include applications run by the intelligent terminal foreground and background. Specifically, an application program currently running by the intelligent terminal and use information of the application program are monitored and acquired. The use information comprises information related to the use state of the application program, such as the last use time of the user of the application program, the running conditions of the application program in the foreground and the background, the use frequency of the application program, the memory occupancy rate of the application program, the CPU use rate of the application program and the like. The last use time of the user refers to the time point of the last operation of the application program by the user, and the intelligent terminal can record and read the time; the running conditions of the application program in the front and the back refer to whether the application program runs in the front or the back; the CPU utilization rate of the application program and the memory occupancy rate of the application program are real-time data of the current intelligent terminal, and the real-time data are monitored and obtained in real time; the activity of the application program is a total or average use times or use duration of the application program in a period of time, the use times comprise the opening times of the application program, the use duration comprises the screen occupation time of the application program, and the activity of the application program can be acquired in real time or in non-real time, for example, the activity of the application program can be acquired from an intelligent terminal in advance and updated regularly.
In step 222, a status value of the intelligent terminal is detected.
Specifically, the state value of the intelligent terminal is monitored in real time, wherein the state value comprises a measurable numerical value representing the current processing capacity of the intelligent terminal, such as the CPU utilization rate, the CPU temperature, the memory occupancy rate and the like of the intelligent terminal, and reflects the current workload of the intelligent terminal and the capacity of subsequent processing of other possible application programs. The temperature of the CPU is related to the load of the CPU, and in general, the larger the load of the CPU is, the higher the temperature of the CPU is, and when the temperature of the CPU is too high, the CPU is subjected to frequency-reducing or power-off protection. Taking a personal computer as an example, the normal operating temperature range of the CPU is typically 50 degrees to 75 degrees.
In step 223, when the status value exceeds a preset threshold, a target application is determined according to a preset priority and the usage information.
Specifically, if the detected state value of the intelligent terminal exceeds a preset threshold value, the automatic cleaning application program is indicated to be needed to reduce the workload of the intelligent terminal. For example, the preset threshold value is set to 70% of the memory occupancy rate, which means that when the current memory occupancy rate of the intelligent terminal exceeds 70%, the automatic cleaning application program is started. The application program which needs to be automatically cleaned, namely the target application program of the present disclosure, is determined by the preset priority and the obtained use information of the application program.
The priority refers to a priority order of cleaning the application programs related to the use information of the application programs, for example, the application programs can be cleaned according to an order from early to late when the user of the application program uses the application programs last, that is, the application programs with earliest use times of the user are cleaned preferentially; or preferentially cleaning the application programs running in the background, and finally cleaning the running programs in the foreground; or cleaning the application programs according to the order of the CPU utilization rate or the memory occupancy rate from high to low, namely preferentially cleaning the application programs with high CPU utilization rate or high memory occupancy rate; or cleaning the application programs in the order of low activity of the application programs, namely preferentially cleaning the application programs with low activity. It should be noted that, the priority measurement factor is not limited to one type of usage information, for example, the priority measurement factor may include the running conditions of the application program in the foreground and the background, the memory occupancy rate and the activity of the application program, that is, the three factors are measured comprehensively. For example, considering the running situation of the application program in the foreground and the background, if the application program runs in the foreground and the background simultaneously, the application program in the background is preferably ended, in the application program running in the background, the memory occupancy rate of the application program is M (M is between 0% and 100%), the activity of the application program is F (indicating the number of times of starting the application program in a week), the priority P is determined according to the following formula:
P=M/F
as can be seen from the above equation, the priority P is proportional to the memory occupancy of the application program and inversely proportional to the activity of the application program. When the foreground application program still needs to be further deleted after all the background application programs are finished, the cleaning sequence of the foreground application program is determined again by utilizing the formula. In embodiments of the present disclosure, a higher priority for an application indicates that its cleaning order is the earlier.
It should be noted that, the setting manner, the determination formula, the height relationship, and the like of the priority according to the above embodiment of the disclosure are only exemplary, and the disclosure is not limited thereto.
In step 102, the running process of the target application program is ended, and the target application program is subjected to screenshot. The ending modes of the target application program comprise a full ending mode and a half ending mode. The full end mode refers to ending all processes of the target application; the semi-ending mode refers to a part of processes of the ending application program, and reserves more important running processes with lower resource occupancy rate or higher activity. The full end mode and the half end mode may be employed separately or simultaneously as desired and as a specific design strategy.
In addition, the screenshot of the target application program includes a window screenshot of the target application program after the target application program is determined, or a window screenshot of the target application program when the user uses the target application program for the last time, or may include a window screenshot of other pages of the target application program or a screenshot of an icon of the target application program at other times, which means that all images capable of referring to the target application program belong to the screenshot of the target application program in the disclosure.
In step 103, the screenshot is displayed.
In the embodiment provided by the disclosure, when the target application program running in the foreground of the intelligent terminal is ended, the screenshot of the target application program is still displayed in the foreground. Fig. 3A, 3B illustrate an embodiment of a foreground display application window screenshot provided by the present disclosure. As shown in fig. 3A, the display device 20 is connected to the intelligent terminal 10, and application windows 31, 32, 33 of an application program running on the foreground of the intelligent terminal 10 are displayed on the display device 20. When an application program corresponding to the application window 31 is determined to be a target application program according to the method provided by the embodiment of the present disclosure, the running process of the application program is ended and the application window 31 is screenshot. As shown in fig. 3B, the generated window screen shot 41 is displayed on the display device 20. Preferably, the display area of window screenshot 41 coincides with the original display area of application window 31 (i.e., the display area of application window 31 in fig. 3A), and "overlap" of the present disclosure includes both partial overlap and full overlap.
Similarly, when the target application running in the background of the intelligent terminal is finished, the screenshot of the target application can be displayed in an interface for viewing the running program in the background of the system. For example, when a user views a background multitasking interface of the intelligent terminal, the ended target application is displayed in the form of a screenshot.
In addition, in some embodiments, the screenshot may also be displayed to the user by way of a system notification push, or the like.
In step 104, in response to a trigger event for the screenshot, the target application is restarted or the screenshot is canceled from being displayed.
Specifically, the triggering event of the screenshot includes a preset control, such as a button displayed on a display interface, or a preset operation instruction or a voice instruction, where the preset operation instruction includes, but is not limited to, touch operations such as clicking, long pressing, sliding, and the like, and an operation instruction input by an external input device such as clicking and the like.
The triggering event of the screenshot can trigger the target application program corresponding to the screenshot to be restarted or cancel the screenshot from being displayed. Preferably, when the ending mode of the target application is the half ending mode, canceling the screenshot further includes ending the remaining running processes of the target application.
The method for cleaning an application program provided by the embodiment of the present disclosure is described below by taking an android system as an example. Firstly, determining a target application program; secondly, ending the running process of the target application program, and capturing a screenshot of the target application program; thirdly, displaying the screenshot, specifically, calling a Systemui control to start an Activity Dialogcontrol, and inserting a Stack where the Activity is located directly above an application program; and finally, restarting the target application program or canceling to display the screenshot in response to a trigger event of the screenshot, and particularly restarting the target application program through a StartActivity control when a user clicks the screenshot.
In a preferred embodiment, the screenshot is a gray scale image. A gray image is an image having only one sampled color per pixel, the colors of the gray image including black and white and a series of transition colors therebetween. In the embodiment, the screenshot is displayed in the gray image, so that the condition that the target application program is ended is effectively shown to the user, and the user experience is improved.
In a preferred embodiment, the gray scale level of the gray scale image is related to the ending pattern of the target application. For example, when the ending mode of the target application is the full ending mode, the gray level of the screenshot is higher, and when the ending mode of the target application is the half ending mode, the gray level of the screenshot is lower. By employing grayscale images of different grayscale levels, the user can effectively distinguish the ending pattern of the target application.
Device example:
as shown in fig. 4, corresponding to the method for cleaning an application provided in the foregoing embodiment, the present disclosure further provides an apparatus 400 for cleaning an application, including: a determining unit 401 for determining a target application; an ending unit 402, configured to end the running process of the target application program, and perform screenshot on the target application program; a display unit 403, configured to display the screenshot; and an operation unit 404, configured to restart the target application or cancel displaying the screenshot in response to a trigger event for the screenshot.
In some embodiments, as shown in fig. 5, the determining unit 500 includes a first detecting subunit 511 for detecting a trigger event of an application program; a first determining subunit 512, configured to determine a target application program according to the triggering event of the application program. Further, the determining unit 500 further includes: an obtaining subunit 521, configured to obtain an application currently running by the intelligent terminal and usage information of the application; a second detecting subunit 522, configured to detect a state value of the intelligent terminal; a second determining subunit 523, configured to determine, when the status value exceeds a preset threshold, a target application according to a preset priority and the usage information. Note that, the first detection subunit 511 and the first determination subunit 512, and the acquisition subunit 521, the second detection subunit 522, and the second determination subunit 523 may be included in the same determination unit 500 as shown in fig. 5, or may be included in different determination units, respectively, and the disclosure is not limited thereto.
Correspondingly, the disclosure also provides a terminal, comprising: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for cleaning the application program.
Accordingly, the present disclosure also provides a computer storage medium storing program code for executing the above method of cleaning an application program. The computer storage media may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Referring now to fig. 6, a schematic diagram of an electronic device 600 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication means 609, or from storage means 608, or from ROM 602. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining a target application program; ending the running process of the target application program and capturing a screenshot of the target application program; displaying the screenshot; and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in some case constitute a limitation of the unit itself, for example, the first detection subunit may also be described as "a unit for detecting a triggering event of an application".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a method of cleaning an application program, the method being applied to an intelligent terminal, the method including: determining a target application program; ending the running process of the target application program and capturing a screenshot of the target application program; displaying the screenshot; and restarting the target application program or canceling displaying the screenshot in response to a trigger event of the screenshot.
According to one or more embodiments of the present disclosure, when the target application is a program operated by the foreground of the intelligent terminal, the display area of the screenshot coincides with the original display area of the window of the target application.
According to one or more embodiments of the present disclosure, the determining the target application includes: detecting a triggering event of an application program; and determining the target application program according to the triggering event of the application program.
According to one or more embodiments of the present disclosure, the determining the target application includes: acquiring an application program currently operated by the intelligent terminal and use information of the application program; detecting a state value of the intelligent terminal; and when the state value exceeds a preset threshold value, determining the target application program according to a preset priority and the use information.
According to one or more embodiments of the present disclosure, the screenshot is a gray scale image.
According to one or more embodiments of the present disclosure, the gray scale level of the gray scale image is related to an ending mode of ending the running process of the target application.
According to one or more embodiments of the present disclosure, the status value includes a central processor usage rate of the intelligent terminal, and/or a temperature of the central processor, and/or a memory occupancy rate.
According to one or more embodiments of the present disclosure, the usage information includes: the last use time of the user of the application program, and/or the running conditions of the application program in the foreground and the background, and/or the liveness of the application program, and/or the central processing unit utilization rate of the application program, and/or the memory occupancy rate of the application program.
According to one or more embodiments of the present disclosure, the ending mode of ending the running process of the target application includes: a full end mode, and/or a half end mode.
In accordance with one or more embodiments of the present disclosure, when the end mode is a half end mode, the canceling the display of the screenshot includes: and ending the rest running process of the target application program.
According to one or more embodiments of the present disclosure, there is provided an apparatus for cleaning an application program, the apparatus being applied to an intelligent terminal, the apparatus comprising: a determining unit configured to determine a target application; the ending unit is used for ending the running process of the target application program and capturing the screenshot of the target application program; the display unit is used for displaying the screenshot; and the operation unit is used for restarting the target application program or canceling the display of the screenshot in response to the trigger event of the screenshot.
According to one or more embodiments of the present disclosure, when the target application is a program operated by the foreground of the intelligent terminal, the display area of the screenshot coincides with the original display area of the window of the target application.
According to one or more embodiments of the present disclosure, the determining unit includes: a first detection subunit, configured to detect a trigger event of an application program; and the first determining subunit is used for determining the target application program according to the triggering event of the application program.
According to one or more embodiments of the present disclosure, the determining unit includes: the acquisition subunit is used for acquiring the application program currently operated by the intelligent terminal and the use information of the application program; the second detection subunit is used for detecting the state value of the intelligent terminal; and the second determining subunit is used for determining the target application program according to the preset priority and the use information when the state value exceeds a preset threshold value.
According to one or more embodiments of the present disclosure, the screenshot is a gray scale image.
According to one or more embodiments of the present disclosure, the gray scale of the gray scale image is related to the ending pattern of the ending unit.
According to one or more embodiments of the present disclosure, the ending pattern of the ending unit includes: a full end mode, and/or a half end mode.
According to one or more embodiments of the present disclosure, there is provided a terminal including: at least one memory and at least one processor; the memory is used for storing program codes, and the processor is used for calling the program codes stored in the memory to execute the method for cleaning the application program.
According to one or more embodiments of the present disclosure, there is provided a computer storage medium storing program code for executing the above-described method of cleaning an application program.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (12)

1. A method for cleaning up an application program, the method being applied to an intelligent terminal, the method comprising:
determining a target application program;
ending the running process of the target application program and capturing a screenshot of the target application program;
displaying the screenshot; the screenshot is a gray image, and the gray level of the gray image is related to the ending mode of ending the running process of the target application program; the ending mode comprises a full ending mode and a half ending mode, the full ending mode is used for ending all processes of the application program, the half ending mode is used for ending part of the processes of the application program, and the gray level corresponding to the full ending mode is higher than the gray level corresponding to the half ending mode;
restarting the target application program or canceling to display the screenshot in response to a trigger event of the screenshot; wherein when the ending mode is a half ending mode, the canceling the display of the screenshot includes: and ending the rest running process of the target application program.
2. The method for cleaning up an application program according to claim 1, wherein when the target application program is a program operated by the foreground of the intelligent terminal, a display area of the screenshot coincides with an original display area of a window of the target application program.
3. The method of cleaning an application of claim 1, wherein the determining a target application comprises:
detecting a triggering event of an application program;
and determining the target application program according to the triggering event of the application program.
4. The method of cleaning an application of claim 1, wherein the determining a target application comprises:
acquiring an application program currently operated by the intelligent terminal and use information of the application program;
detecting a state value of the intelligent terminal;
and when the state value exceeds a preset threshold value, determining the target application program according to a preset priority and the use information.
5. The method of cleaning an application of claim 4, wherein the status value comprises: the intelligent terminal comprises a central processing unit utilization rate, and/or a central processing unit temperature and/or a memory occupancy rate of the intelligent terminal.
6. The method of cleaning an application of claim 4, wherein the usage information comprises: the last use time of the user of the application program, and/or the running conditions of the application program in the foreground and the background, and/or the liveness of the application program, and/or the central processing unit utilization rate of the application program, and/or the memory occupancy rate of the application program.
7. An apparatus for cleaning an application, the apparatus being applied to an intelligent terminal, the apparatus comprising:
a determining unit configured to determine a target application;
the ending unit is used for ending the running process of the target application program and capturing the screenshot of the target application program;
the display unit is used for displaying the screenshot; the screenshot is a gray image, and the gray level of the gray image is related to the ending mode of ending the running process of the target application program; the ending mode comprises a full ending mode and a half ending mode, the full ending mode is used for ending all processes of the application program, the half ending mode is used for ending part of the processes of the application program, and the gray level corresponding to the full ending mode is higher than the gray level corresponding to the half ending mode;
the operation unit is used for restarting the target application program or canceling the display of the screenshot in response to a trigger event of the screenshot; wherein when the ending mode is a half ending mode, the canceling the display of the screenshot includes: and ending the rest running process of the target application program.
8. The apparatus for cleaning up an application program according to claim 7, wherein when the target application program is a program operated by the foreground of the intelligent terminal, a display area of the screenshot coincides with an original display area of a window of the target application program.
9. The apparatus for cleaning an application program according to claim 7, wherein the determining unit includes:
a first detection subunit, configured to detect a trigger event of an application program;
and the first determining subunit is used for determining the target application program according to the triggering event of the application program.
10. The apparatus for cleaning an application program according to claim 7, wherein the determining unit includes:
the acquisition subunit is used for acquiring the application program currently operated by the intelligent terminal and the use information of the application program;
the second detection subunit is used for detecting the state value of the intelligent terminal;
and the second determining subunit is used for determining the target application program according to the preset priority and the use information when the state value exceeds a preset threshold value.
11. A terminal, the terminal comprising:
at least one memory and at least one processor;
wherein the memory is for storing program code and the processor is for invoking the program code stored by the memory to perform the method of cleaning an application of any of claims 1 to 6.
12. A computer storage medium, characterized in that the computer storage medium stores a program code for executing the method of cleaning an application program according to any one of claims 1 to 6.
CN201910647440.9A 2019-07-17 2019-07-17 Method, device, terminal and storage medium for cleaning application program Active CN110377362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910647440.9A CN110377362B (en) 2019-07-17 2019-07-17 Method, device, terminal and storage medium for cleaning application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910647440.9A CN110377362B (en) 2019-07-17 2019-07-17 Method, device, terminal and storage medium for cleaning application program

Publications (2)

Publication Number Publication Date
CN110377362A CN110377362A (en) 2019-10-25
CN110377362B true CN110377362B (en) 2023-07-14

Family

ID=68253719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910647440.9A Active CN110377362B (en) 2019-07-17 2019-07-17 Method, device, terminal and storage medium for cleaning application program

Country Status (1)

Country Link
CN (1) CN110377362B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111782298B (en) * 2020-06-30 2024-03-19 Oppo(重庆)智能科技有限公司 Application management method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079228A1 (en) * 2012-11-20 2014-05-30 惠州Tcl移动通信有限公司 Method for automatic cleaning background application of electronic device, electronic device and storage medium
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN105224369A (en) * 2015-10-14 2016-01-06 深圳Tcl数字技术有限公司 Application start method and system
CN106354562A (en) * 2016-08-25 2017-01-25 上海传英信息技术有限公司 Memory cleaning system and memory cleaning method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521034B (en) * 2011-12-27 2014-05-07 惠州Tcl移动通信有限公司 Multitask management method and multitask management system based on android system
CN106815041B (en) * 2016-11-24 2020-12-08 北京安云世纪科技有限公司 Method and device for loading application program entry information in task manager
CN107256165A (en) * 2017-04-28 2017-10-17 努比亚技术有限公司 One kind application startup method, terminal and computer-readable recording medium
CN107463477A (en) * 2017-06-27 2017-12-12 广东欧珀移动通信有限公司 Mobile terminal and its management method, computer-readable recording medium
CN108205402A (en) * 2018-01-03 2018-06-26 上海传英信息技术有限公司 Mobile terminal and its background process processing method
CN109358955A (en) * 2018-09-27 2019-02-19 联想(北京)有限公司 Process management method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014079228A1 (en) * 2012-11-20 2014-05-30 惠州Tcl移动通信有限公司 Method for automatic cleaning background application of electronic device, electronic device and storage medium
CN104714874A (en) * 2015-02-28 2015-06-17 深圳市中兴移动通信有限公司 Method for intelligently optimizing internal storage of mobile terminal and mobile terminal
CN105224369A (en) * 2015-10-14 2016-01-06 深圳Tcl数字技术有限公司 Application start method and system
CN106354562A (en) * 2016-08-25 2017-01-25 上海传英信息技术有限公司 Memory cleaning system and memory cleaning method

Also Published As

Publication number Publication date
CN110377362A (en) 2019-10-25

Similar Documents

Publication Publication Date Title
CN109857486B (en) Method, device, equipment and medium for processing program page data
US10474507B2 (en) Terminal application process management method and apparatus
CN111263176B (en) Loading method, device, terminal, server and storage medium for live broadcast room page
KR102536266B1 (en) Method for memory leak detection and electronic device thereof
CN108073458B (en) Memory recovery method, mobile terminal and computer-readable storage medium
CN110633434B (en) Page caching method and device, electronic equipment and storage medium
CN111258736B (en) Information processing method and device and electronic equipment
CN110837343B (en) Snapshot processing method and device and terminal
CN107967177B (en) Memory optimization method based on core process, mobile terminal and readable storage medium
CN115016866A (en) Data processing method during application starting, electronic equipment and storage medium
CN110647702A (en) Picture preloading method and device, electronic equipment and readable medium
CN110633433B (en) Page caching method and device, electronic equipment and storage medium
CN107341094B (en) Method and device for measuring time consumed by starting item
CN109492163B (en) List display recording method and device, terminal equipment and storage medium
CN110377362B (en) Method, device, terminal and storage medium for cleaning application program
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN113253847A (en) Terminal control method and device, terminal and storage medium
CN108011860B (en) Method, device and terminal for processing broadcast message
CN110751120A (en) Detection method and device and electronic equipment
CN112867119B (en) Terminal control method, device, terminal and storage medium
CN112882857B (en) Performance problem positioning method, device, electronic equipment and storage medium
CN106302821B (en) Data request method and equipment thereof
CN111857915B (en) Application page display method and device
CN112650465A (en) Terminal control method and device, terminal and storage medium
CN113806189B (en) User interface operation monitoring method, device, equipment and storage medium

Legal Events

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