CN110377362A - Clear up method, apparatus, terminal and the storage medium of application program - Google Patents

Clear up method, apparatus, terminal and the storage medium of application program Download PDF

Info

Publication number
CN110377362A
CN110377362A CN201910647440.9A CN201910647440A CN110377362A CN 110377362 A CN110377362 A CN 110377362A CN 201910647440 A CN201910647440 A CN 201910647440A CN 110377362 A CN110377362 A CN 110377362A
Authority
CN
China
Prior art keywords
application program
screenshot
application
program
destination application
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
CN201910647440.9A
Other languages
Chinese (zh)
Other versions
CN110377362B (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

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

This disclosure relates to field of computer technology, and in particular to a kind of method, apparatus, terminal and storage medium for clearing up application program.The method for the cleaning application program that the disclosure provides is applied to intelligent terminal, which comprises determines destination application;Terminate the operation process of the destination application, and screenshot is carried out to the destination application;Show the screenshot;The trigger event to the screenshot is responded, restarts the destination application or cancel showing the screenshot.It can be seen that, the method for the cleaning application program that the disclosure provides, idle application can effectively be cleared up, save system resource, and the end situation of user application is informed in a manner of screenshot, it can also be according to user to the trigger event of screenshot, it directly restarts the application program or cancels and show the screenshot, and then the user experience is improved.

Description

Clear up method, apparatus, terminal and the storage medium of application program
Technical field
This disclosure relates to field of computer technology, and in particular to a kind of to clear up the method, apparatus of application program, terminal and deposit Storage media.
Background technique
With the continuous development of electronic technology and intelligent terminal becomes increasingly popular, and existing intelligent terminal is mountable a variety of Application program, social software, player, map, game etc., and have while running the ability of multitask.But In intelligent terminal use process, user can usually forget to close currently to cause multiple idle using the application program finished Application program is active in the foreground of system for a long time or backstage and consumes system resource, so that intelligent terminal operation is easy to appear card The phenomenon that pausing, and then the fluency of terminal operating and the cruising ability of terminal are affected, reduce user experience.
Summary of the invention
The Summary is provided so that with brief form introduction design, these designs will be in specific implementation below Mode part is described in detail.The Summary is not intended to identify the key feature of claimed technical solution or must Feature is wanted, is intended to be used to limit the range of the technical solution of required protection.
On the one hand, present disclose provides a kind of method for clearing up application program, the method is applied to intelligent terminal, described Method includes:
Determine destination application;
Terminate the operation process of the destination application, and screenshot is carried out to the destination application;
Show the screenshot;
The trigger event to the screenshot is responded, restarts the destination application or cancel showing the screenshot.
On the other hand, the disclosure has mentioned a kind of device for clearing up application program, and described device is applied to intelligent terminal, described Device includes:
Determination unit, for determining destination application;
End unit is carried out for terminating the operation process of the destination application, and to the destination application Screenshot;
Display unit, for showing the screenshot;
Operating unit, for responding the trigger event to the screenshot, restarting destination application or cancelling display The screenshot.
On the other hand, the disclosure provides a kind of terminal, and the terminal includes: at least one processor and at least one processing Device;Wherein, the memory is for storing program code, the program generation that the processor is used to that the memory to be called to be stored Method of the code to execute above-mentioned cleaning application program.
On the other hand, the disclosure provides a kind of computer storage medium, and the computer storage medium is stored with program generation Code, the method that said program code is used to execute above-mentioned cleaning application program.
Destination application is comprised determining that in the method for the cleaning application program that the disclosure provides;Terminate the target to answer Screenshot is carried out with the operation process of program, and to the destination application;Show the screenshot;Respond the touching to the screenshot Hair event restarts the destination application or cancels showing the screenshot.As it can be seen that the cleaning application journey that the disclosure provides The method of sequence can effectively be cleared up idle application, save system resource, and be informed user application in a manner of screenshot Terminate situation, the application program can also be restarted or cancel showing the screenshot according to user to the trigger event of screenshot, User is facilitated to carry out subsequent operation, and then the user experience is improved.
Detailed description of the invention
It, below will be to needed in embodiment description in order to illustrate more clearly of the scheme in the embodiment of the present disclosure Attached drawing is briefly described, and in conjunction with attached drawing and refers to following specific embodiments, the above and other of each embodiment of the disclosure is special Sign, advantage and aspect will be apparent.In attached drawing, the same or similar appended drawing reference indicates the same or similar member Element.It should be understood that attached drawing is schematically, original part and element are not necessarily drawn to scale.
Fig. 1 is the flow chart of the method for the cleaning application program that the embodiment of the present disclosure provides;
Fig. 2A is the flow chart of the method for the cleaning application program that another embodiment of the disclosure provides;
Fig. 2 B is the flow chart of the method for the cleaning application program that another embodiment of the disclosure provides;
Fig. 3 A is the schematic diagram for the display application window that the embodiment of the present disclosure provides;
Fig. 3 B is the schematic diagram of the screenshot for the display application window that the embodiment of the present disclosure provides;
Fig. 4 is the structural schematic diagram of the device for the cleaning application program that the embodiment of the present disclosure provides;
Fig. 5 is the structural schematic diagram of the device for the cleaning application program that another embodiment of the disclosure provides;
Fig. 6 is the structural schematic diagram for realizing the electronic equipment of the embodiment of the present disclosure.
Specific embodiment
Destination application is comprised determining that in the method for the cleaning application program that the disclosure provides;Terminate the target to answer Screenshot is carried out with the operation process of program, and to the destination application;Show the screenshot;Respond the touching to the screenshot Hair event restarts the destination application or cancels showing the screenshot.As it can be seen that the cleaning application journey that the disclosure provides The method of sequence can effectively be cleared up idle application, save system resource, and be informed user application in a manner of screenshot Terminate situation, can also be according to user to the trigger event of screenshot, directly restarting the application program or cancel display should Screenshot facilitates user to carry out subsequent operation, and then the user experience is improved.
Embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the certain of the disclosure in attached drawing Embodiment, it should be understood that, the disclosure can be realized by various forms, and should not be construed as being limited to this In the embodiment that illustrates, providing these embodiments on the contrary is in order to more thorough and be fully understood by the disclosure.It should be understood that It is that being given for example only property of the accompanying drawings and embodiments effect of the disclosure is not intended to limit the protection scope of the disclosure.
It should be appreciated that each step recorded in disclosed method embodiment can execute in a different order, And/or parallel execution.In addition, method implementation may include additional step and/or omit the step of execution is shown.This public affairs The range opened is not limited in this respect.
Terms used herein " comprising " and its deformation are that opening includes, i.e., " including but not limited to ".Term "based" It is " being based at least partially on ".Term " one embodiment " expression " at least one embodiment ";Term " another embodiment " indicates " at least one other embodiment ";Term " some embodiments " expression " at least some embodiments ".The correlation of other terms is fixed Justice provides in will be described below.
It is noted that the relational terms of such as " first " and " second " for referring in the disclosure or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.
It is noted that referred in the disclosure "one", the modification of " multiple " be schematically and not restrictive this field It will be appreciated by the skilled person that being otherwise construed as " one or more " unless clearly indicate otherwise in context.
The being merely to illustrate property of title of the message or information that are interacted between multiple devices in disclosure embodiment Purpose, and be not used to limit the range of these message or information.
Fig. 1 is only to be shown for ease of description according to the flow chart of the method for the cleaning application program of the embodiment of the present disclosure Relevant to disclosure part.
In the embodiments of the present disclosure, the method is applied to intelligent terminal, and intelligent terminal includes display device, including following Two kinds of situations: (1) intelligent terminal is by wired or wireless mode, connection or control display device, no matter intelligent terminal itself Whether there are other display devices;(2) intelligent terminal itself has display device.It is all can by display device and user into Row human-computer interaction and any user equipment controlled display device belong to the intelligent terminal of the disclosure, including but unlimited In such as mobile phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP The mobile terminal of (portable media player), car-mounted terminal (such as vehicle mounted guidance terminal) etc. and such as number TV, The fixed terminal of desktop computer etc..
As shown in Figure 1, which comprises
In a step 101, destination application is determined.Destination application is that intelligent terminal is currently running for clearance Application program, the application program including intelligent terminal foreground and running background.The determination of destination application includes manually identifying With automatically determine two ways.Fig. 2 and Fig. 3 respectively illustrates the manually identifying of disclosure offer and automatically determines target application journey The embodiment of sequence will be illustrated respectively below.
Fig. 2A shows the embodiment of the manually identifying destination application of disclosure offer.In step 211, detection is answered With the trigger event of program.The trigger event of the application program includes the pressing as shown in display interface by preset control Key, or triggered by preset operating gesture or phonetic order, preset operational order includes but is not limited to striking, long-pressing, cunning The dynamic operational order for waiting touch control operations, and click etc. to input by external input device.In the step 212, it is answered according to described Destination application is determined with the trigger event of program, i.e., application program pointed by the trigger event is determined as target and answered Use program.
Fig. 2 B shows the embodiment for automatically determining destination application of disclosure offer.
In step 221, the use letter of the currently running application program of the intelligent terminal and the application program is obtained Breath.
Similarly, the application program of intelligent terminal operation includes the application program of intelligent terminal foreground and running background.Tool Body, monitor and obtain the use information of application program and the application program that intelligent terminal is currently running.It is described to make Finally made using time, application program in the operating condition of Foreground and Background, application program with the user that information includes application program The letter relevant to application program use state such as CPU usage with frequency, the memory usage of application program, application program Breath.Wherein, user finally refers to the time point of user's last operation application program using the time, and intelligent terminal can recorde and read Take the time;Application program refers to that the application program is transported in front stage operation or on backstage in the operating condition of Foreground and Background Capable;The CPU usage of application program and the memory usage of application program are the real time data of current intelligent terminal, pass through reality When monitor and obtain;The liveness of application program is in a period of time, the application program in total or average access times or make With duration, access times include the opening times of application program, include the screen holding time of application program using duration, application The liveness of program can obtain in real time and also it is non real-time obtain, such as in advance from intelligence eventually obtain and timing update.
In step 222, the state value of the intelligent terminal is detected.
Specifically, the state value of real-time monitoring intelligent terminal, the state value include the CPU usage of intelligent terminal, CPU The numerical value of the measurable characterization intelligent terminal current processing capabilities such as temperature, memory usage, current that reflects intelligent terminal The ability of other possible application programs of workload and subsequent processing.Wherein, cpu temperature is related to the load of CPU, in general, The temperature of the more big then CPU of load of CPU is higher, when cpu temperature is excessively high, will lead to CPU frequency reducing or power-off protection.With individual For computer, the normal working temperature of CPU is generally in the range of 50 degree to 75 degree.
In step 223, when the state value is more than preset threshold, according to preset priority and the use information Determine destination application.
Specifically, it if the state value of the intelligent terminal detected is more than preset threshold value, demonstrates the need for automatic clear Application program is managed to reduce the workload of intelligent terminal.For example, it is 70% that preset threshold value, which be memory usage, that is, mean When the current memory usage of intelligent terminal is more than 70%, then start to clear up application program automatically.By preset preferential The use information of grade and the application program obtained needs the application program cleared up automatically, the i.e. target application of the disclosure to determine Program.
The priority refers to the priority of cleaning application program relevant to the use information of application program, for example, The sequence cleaning application program of time from morning to night can be finally used according to the user of application program, i.e., preferentially clear up user most The application program earliest using the time afterwards;Or the application program of preferential cleaning running background, finally clear up the operation journey on foreground Sequence;Or clear up application program according to the sequence of CPU usage or memory usage from high to low, i.e., preferentially cleaning CPU is used The application program that rate is high or memory usage is high;Or according to application program liveness from low to high sequence cleaning apply journey Sequence preferentially clears up the low application program of liveness.Believe it should be noted that the measurement factor of priority is not limited to a kind of use Breath, for example, the measurement factor of priority can be simultaneously comprising application program in the operating condition, application program of Foreground and Background Deposit occupancy and liveness, i.e., it is comprehensive to measure above-mentioned three kinds of factors.For example, considering application program in the operation of Foreground and Background first Situation preferentially terminates the application program on backstage, in the application journey of running background if front and back is run simultaneously application program In sequence, the memory usage of application program is M (M is between 0% to 100%), and the liveness of application program is that F (indicates one The opening times of application program in week), then priority P is determined according to the following equation:
P=M/F
As can be seen from the above equation, the memory usage of priority P and application program is proportional, the liveness with application program In inverse ratio.After terminating all background applications, when still needing to further delete foreground application, then the public affairs are utilized again Formula determines the cleaning sequence of foreground application.In embodiment of the disclosure, the priority of application program is higher shows that it is clear The sequence of reason is more forward.
It should be noted that disclosure above-described embodiment to the set-up mode of priority, determine formula, height relationship etc. only It is exemplary, the present disclosure is not limited thereto.
In a step 102, terminate the operation process of the destination application, and the destination application is cut Figure.Wherein, the end mode of destination application includes full end mode and half end mode.Full end mode refers to end mesh Mark whole processes of application program;Half end mode refers to the Partial Process for terminating application program, retains more important, resource Occupancy is lower or the higher operation process of liveness.It can according to need and individually or simultaneously used with specific layout strategy Full end mode and half end mode.
In addition, carrying out screenshot to the destination application includes the window for answering target program after determining destination application The window screenshot of destination application when mouthful screenshot or user's last time use destination application also may include The screenshot of other moment or the icon to the window screenshots or destination application of other pages of destination application, it is all It is that can refer to the image of destination application to belong to the screenshot to the destination application of the disclosure.
In step 103, the screenshot is shown.
In the embodiment that the disclosure provides, after the destination application of intelligent terminal front stage operation is moved to end, then should The screenshot of destination application is still shown on foreground.The foreground that Fig. 3 A, 3B show disclosure offer shows application window The embodiment of screenshot.As shown in Figure 3A, intelligent terminal 10 is connected with display device 20, runs on the application on 10 foreground of intelligent terminal The application widget 31,32,33 of program is shown in display device 20.When the corresponding application program of application widget 31 is according to the disclosure After the method that embodiment provides is targeted application program, terminate the operation process of the application program and to application widget 31 Carry out screenshot.As shown in Figure 3B, the window screenshot 41 of generation is shown in display device 20.Preferably, window screenshot 41 is aobvious Show that region is overlapped with the former display area (i.e. the display area of application widget 31 in Fig. 3 A) of application widget 31, " the weight of the disclosure Close " it include partially overlapping and being all overlapped.
Similarly, after the destination application of intelligent terminal running background is moved to end, then the destination application cut Figure can be shown in the interface for checking system background operation program.For example, when user checks the backstage multitask of intelligent terminal When administration interface, the destination application being moved to end is shown in the form of screenshot.
In addition, in some embodiments, the modes such as push can also be notified to show the screenshot to user by system.
At step 104, the trigger event to the screenshot is responded, the destination application is restarted or is cancelled aobvious Show the screenshot.
Specifically, the trigger event of the screenshot includes the key by preset control, as shown in display interface, or It is triggered by preset operational order or phonetic order, preset operational order includes but is not limited to the touch-controls such as striking, long-pressing, sliding The operational order that operation, and click etc. are inputted by external input device.
The trigger event of the screenshot can trigger the corresponding destination application of the restarting screenshot, or cancel Show the screenshot.Preferably, when the end mode of destination application is half end mode, cancelling the screenshot further includes The remaining operation process of target end application program.
It is below to illustrate the method for the cleaning application program that the embodiment of the present disclosure provides with Android system.Firstly, really Set the goal application program;Secondly, the operation process of target end application program, and screenshot is carried out to the destination application; Again, it shows the screenshot, specifically, calls Systemui control to start ActivityDialog control, and should Stack where Activity is inserted into the surface of application program;Finally, trigger event of the response to the screenshot, again Start the destination application or cancel and shows that the screenshot specifically when the user clicks when the screenshot, passes through StartActivity control restarts destination application.
In a preferred embodiment, the screenshot is gray level image.Gray level image is only one sampling face of each pixel The image of color, the color of gray level image include black and white and a series of intermediate color between the two.In the present embodiment, lead to It crosses and shows screenshot with gray level image, effectively illustrate the case where destination application is moved to end to user, promoted User experience.
In a preferred embodiment, the end mode phase of the tonal gradation of the gray level image and the destination application It closes.For example, then the tonal gradation of its screenshot is higher, works as target when the end mode of destination application is full end mode When the end mode of application program is half end mode, then the tonal gradation of its screenshot is lower.By using different tonal gradations Gray level image, user can efficiently differentiate the end mode of destination application.
Installation practice:
As shown in figure 4, the method for corresponding cleaning application program provided by the above embodiment, the disclosure also provide a kind of cleaning The device 400 of application program, comprising: determination unit 401, for determining destination application;End unit 402, for terminating The operation process of the destination application, and screenshot is carried out to the destination application;Display unit 403, for showing The screenshot;Operating unit 404 restarts destination application or cancellation for responding the trigger event to the screenshot Show the screenshot.
In some embodiments, it as shown in figure 5, determination unit 500 includes the first detection sub-unit 511, is answered for detecting With the trigger event of program;First determines subelement 512, for determining target application according to the trigger event of the application program Program.Further, it is determined that unit 500 further include: subelement 521 is obtained, it is currently running for obtaining the intelligent terminal The use information of application program and the application program;Second detection sub-unit 522, for detecting the state of the intelligent terminal Value;Second determines subelement 523, for according to preset priority and described making when the state value is more than preset threshold Destination application is determined with information.It should be noted that the first detection sub-unit 511 and first determines subelement 512, and obtain It takes subelement 521, the second detection sub-unit 522 and second to determine subelement 523, can be contained in both as shown in Figure 5 same It in a determination unit 500, can also separately include in different determination units, the disclosure does not make this limitation.
Correspondingly, the disclosure also provides a kind of terminal, comprising: at least one processor and at least one processor;Wherein, Memory is for storing program code, and the program code that processor is used to that memory to be called to be stored is to execute above-mentioned cleaning application The method of program.
Correspondingly, the disclosure also provides a kind of computer storage medium, which is stored with program code, The method that program code is used to execute above-mentioned cleaning application program.Computer storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc..
Below with reference to Fig. 6, it illustrates the structural representations for the electronic equipment 600 for being suitable for being used to realize the embodiment of the present disclosure Figure.Terminal device in the embodiment of the present disclosure can include but is not limited to such as mobile phone, laptop, digital broadcasting and connect Receive device, PDA (personal digital assistant), PAD (tablet computer), PMP (portable media player), car-mounted terminal (such as vehicle Carry navigation terminal) etc. mobile terminal and such as number TV, desktop computer etc. fixed terminal.Electricity shown in Fig. 6 Sub- equipment is only an example, should not function to the embodiment of the present disclosure and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 606 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM 603 pass through the phase each other of bus 604 Even.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 606 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising being carried on non-transient computer can The computer program on medium is read, which includes the program code for method shown in execution flow chart.At this In the embodiment of sample, which can be downloaded and installed from network by communication device 609, or be filled from storage It sets 606 to be mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the disclosure is executed The above-mentioned function of being limited in the method for embodiment.
It should be noted that the above-mentioned computer-readable medium of the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
In some embodiments, client, server can use such as HTTP (HyperText Transfer Protocol, hypertext transfer protocol) etc the network protocols of any currently known or following research and development communicated, and can To be interconnected with the digital data communications (for example, communication network) of arbitrary form or medium.The example of communication network includes local area network (" LAN "), wide area network (" WAN "), Internet (for example, internet) and ad-hoc network are (for example, the end-to-end net of ad hoc Network) and any currently known or following research and development network.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.
Above-mentioned computer-readable medium carries one or more program, when said one or multiple programs are by the electricity When sub- equipment executes, so that the electronic equipment: determining destination application;Terminate the operation process of the destination application, And screenshot is carried out to the destination application;Show the screenshot;The trigger event to the screenshot is responded, institute is restarted It states destination application or cancels and show the screenshot.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, above procedure design language include but is not limited to object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One detection sub-unit is also described as " for detecting the unit of the trigger event of application program ".
Function described herein can be executed at least partly by one or more hardware logic components.Example Such as, without limitation, the hardware logic component for the exemplary type that can be used include: field programmable gate array (FPGA), specially With integrated circuit (ASIC), Application Specific Standard Product (ASSP), system on chip (SOC), complex programmable logic equipment (CPLD) etc. Deng.
In the context of the disclosure, machine readable media can be tangible medium, may include or is stored for The program that instruction execution system, device or equipment are used or is used in combination with instruction execution system, device or equipment.Machine can Reading medium can be machine-readable signal medium or machine-readable storage medium.Machine readable media can include but is not limited to electricity Son, magnetic, optical, electromagnetism, infrared or semiconductor system, device or equipment or above content any conjunction Suitable combination.The more specific example of machine readable storage medium will include the electrical connection of line based on one or more, portable meter Calculation machine disk, hard disk, random access memory (RAM), read-only memory (ROM), Erasable Programmable Read Only Memory EPROM (EPROM Or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage facilities or Any appropriate combination of above content.
According to one or more other embodiments of the present disclosure, a kind of method for clearing up application program is provided, the method is answered For intelligent terminal, which is characterized in that the described method includes: determining destination application;Terminate the destination application Operation process, and screenshot is carried out to the destination application;Show the screenshot;The trigger event to the screenshot is responded, It restarts the destination application or cancels and show the screenshot.
According to one or more other embodiments of the present disclosure, when the destination application is the intelligent terminal front stage operation Program when, the display area of the screenshot is overlapped with the former display area of the window of the destination application.
According to one or more other embodiments of the present disclosure, the determining destination application includes: detection application program Trigger event;The destination application is determined according to the trigger event of the application program.
According to one or more other embodiments of the present disclosure, the determining destination application includes: to obtain the intelligence eventually Hold the use information of currently running application program and the application program;Detect the state value of the intelligent terminal;When described When state value is more than preset threshold, the destination application is determined according to preset priority and the use information.
According to one or more other embodiments of the present disclosure, the screenshot is gray level image.
According to one or more other embodiments of the present disclosure, the tonal gradation of the gray level image and the end target The end mode of the operation process of application program is related.
According to one or more other embodiments of the present disclosure, the state value includes that the central processing unit of the intelligent terminal makes With rate and/or the temperature and/or memory usage of central processing unit.
According to one or more other embodiments of the present disclosure, the use information includes: that the user of the application program is last Using time and/or the application program in the operating condition of Foreground and Background and/or the liveness of the application program, and/or The memory usage of the utilization rate of central processing unit of the application program and/or the application program.
According to one or more other embodiments of the present disclosure, the end of the operation process for terminating the destination application Mode includes: full end mode and/or half end mode.
According to one or more other embodiments of the present disclosure, when the end mode is half end mode, described cancel is shown Show that the screenshot includes: to terminate the remaining operation process of destination application.
According to one or more other embodiments of the present disclosure, a kind of device for clearing up application program is provided, described device is answered For intelligent terminal, which is characterized in that described device comprises determining that unit, for determining destination application;End unit, Screenshot is carried out for terminating the operation process of the destination application, and to the destination application;Display unit is used for Show the screenshot;Operating unit, for responding the trigger event to the screenshot, restart the destination application or Cancel and shows the screenshot.
According to one or more other embodiments of the present disclosure, when the destination application is the intelligent terminal front stage operation Program when, the display area of the screenshot is overlapped with the former display area of the window of the destination application.
According to one or more other embodiments of the present disclosure, the determination unit includes: the first detection sub-unit, for detecting The trigger event of application program;First determines subelement, for determining the target according to the trigger event of the application program Application program.
According to one or more other embodiments of the present disclosure, the determination unit includes: acquisition subelement, described for obtaining The use information of the currently running application program of intelligent terminal and the application program;Second detection sub-unit, for detecting State the state value of intelligent terminal;Second determines subelement, is used for when the state value is more than preset threshold, according to preset excellent First grade and the use information determine the destination application.
According to one or more other embodiments of the present disclosure, the screenshot is gray level image.
According to one or more other embodiments of the present disclosure, the knot of the tonal gradation of the gray level image and the end unit Beam mode is related.
According to one or more other embodiments of the present disclosure, the end mode of the end unit includes: full end mode, And/or half end mode.
According to one or more other embodiments of the present disclosure, a kind of terminal is provided, the terminal includes: at least one storage Device and at least one processor;Wherein, the memory is for storing program code, and the processor is for calling the storage Method of the program code that device is stored to execute above-mentioned cleaning application program.
According to one or more other embodiments of the present disclosure, a kind of computer storage medium, the computer storage are provided Media storage has program code, the method that said program code is used to execute above-mentioned cleaning application program.
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.
Although this is not construed as requiring these operations with institute in addition, depicting each operation using certain order The certain order that shows executes in sequential order to execute.Under certain environment, multitask and parallel processing may be advantageous 's.Similarly, although containing several specific implementation details in being discussed above, these are not construed as to this public affairs The limitation for the range opened.Certain features described in the context of individual embodiment can also be realized in combination single real It applies in example.On the contrary, the various features described in the context of single embodiment can also be individually or with any suitable The mode of sub-portfolio is realized in various embodiments.
Although having used specific to this theme of the language description of structure feature and/or method logical action, answer When understanding that theme defined in the appended claims is not necessarily limited to special characteristic described above or movement.On on the contrary, Special characteristic described in face and movement are only to realize the exemplary forms of claims.

Claims (19)

1. a kind of method for clearing up application program, the method are applied to intelligent terminal, which is characterized in that the described method includes:
Determine destination application;
Terminate the operation process of the destination application, and screenshot is carried out to the destination application;
Show the screenshot;
The trigger event to the screenshot is responded, restarts the destination application or cancel showing the screenshot.
2. the method for cleaning application program as described in claim 1, which is characterized in that when the destination application is described When the program of intelligent terminal front stage operation, the former viewing area of the window of the display area of the screenshot and the destination application Domain is overlapped.
3. the method for cleaning application program as described in claim 1, which is characterized in that the determining destination application packet It includes:
Detect the trigger event of application program;
The destination application is determined according to the trigger event of the application program.
4. the method for cleaning application program as described in claim 1, which is characterized in that the determining destination application packet It includes:
Obtain the use information of the currently running application program of the intelligent terminal and the application program;
Detect the state value of the intelligent terminal;
When the state value is more than preset threshold, the target application is determined according to preset priority and the use information Program.
5. the method for cleaning application program as described in claim 1, which is characterized in that the screenshot is gray level image.
6. as claimed in claim 5 cleaning application program method, which is characterized in that the tonal gradation of the gray level image with The end mode of the operation process for terminating the destination application is related.
7. the method for cleaning application program as claimed in claim 4, which is characterized in that the state value includes: the intelligence The utilization rate of central processing unit of terminal and/or the temperature of central processing unit and/or memory usage.
8. the method for cleaning application program as claimed in claim 4, which is characterized in that the use information includes: described answers Finally use time and/or the application program in the operating condition of Foreground and Background and/or described using journey with the user of program The memory usage of the utilization rate of central processing unit and/or the application program of the liveness of sequence and/or the application program.
9. the method for cleaning application program as described in claim 1, which is characterized in that described to terminate the destination application The end mode of operation process include: full end mode and/or half end mode.
10. the method for cleaning application program as claimed in claim 9, which is characterized in that when the end mode is partly to terminate When mode, the cancellation shows that the screenshot includes:
Terminate the remaining operation process of the destination application.
11. a kind of device for clearing up application program, described device are applied to intelligent terminal, which is characterized in that described device includes:
Determination unit, for determining destination application;
End unit carries out screenshot for terminating the operation process of the destination application, and to the destination application;
Display unit, for showing the screenshot;
Operating unit, for responding the trigger event to the screenshot, restarting the destination application or cancelling display The screenshot.
12. the device of cleaning application program as claimed in claim 11, which is characterized in that when the destination application is institute When stating the program of intelligent terminal front stage operation, the former of the window of the display area of the screenshot and the destination application is shown Area coincidence.
13. the device of cleaning application program as claimed in claim 11, which is characterized in that the determination unit includes:
First detection sub-unit, for detecting the trigger event of application program;
First determines subelement, for determining the destination application according to the trigger event of the application program.
14. the device of cleaning application program as claimed in claim 11, which is characterized in that the determination unit includes:
Subelement is obtained, the use for obtaining the currently running application program of the intelligent terminal and the application program is believed Breath;
Second detection sub-unit, for detecting the state value of the intelligent terminal;
Second determines subelement, is used for when the state value is more than preset threshold, according to preset priority and the use Information determines the destination application.
15. the device of cleaning application program as claimed in claim 11, which is characterized in that the screenshot is gray level image.
16. the device of cleaning application program as claimed in claim 15, which is characterized in that the tonal gradation of the gray level image It is related to the end mode of the end unit.
17. the device of cleaning application program as claimed in claim 11, which is characterized in that the end mode of the end unit It include: full end mode and/or half end mode.
18. a kind of terminal, which is characterized in that the terminal includes:
At least one processor and at least one processor;
Wherein, the memory is for storing program code, the program that the processor is used to that the memory to be called to be stored The method that code requires 1 to 10 described in any item cleaning application programs with perform claim.
19. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with program code, the journey The method that sequence code requires 1 to 10 described in any item cleaning application programs for perform claim.
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 true CN110377362A (en) 2019-10-25
CN110377362B 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)

Cited By (1)

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

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521034A (en) * 2011-12-27 2012-06-27 惠州Tcl移动通信有限公司 Multitask management method and multitask management system based on android system
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
CN106815041A (en) * 2016-11-24 2017-06-09 北京奇虎科技有限公司 The loading method and device of 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 (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521034A (en) * 2011-12-27 2012-06-27 惠州Tcl移动通信有限公司 Multitask management method and multitask management system based on android system
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
CN106815041A (en) * 2016-11-24 2017-06-09 北京奇虎科技有限公司 The loading method and device of 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

Cited By (2)

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

Also Published As

Publication number Publication date
CN110377362B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
CN105320425B (en) The presentation of user interface based on context
CN109874365A (en) For executing the device and method thereof of wireless charging
CN107102936A (en) The appraisal procedure and mobile terminal and storage medium of a kind of fluency
KR20170071960A (en) Apparatus and method for providing user interface of electronic device
CN105677697B (en) Method for providing interest point and electronic device thereof
CN108702421A (en) For controlling using the electronic equipment and method with component
CN110012165B (en) Method and device for presenting session list page and readable medium
CN107193598A (en) One kind application startup method, mobile terminal and computer-readable recording medium
CN110399576B (en) Page switching method and device, readable medium and electronic equipment
EP3389336A1 (en) Electronic device and method for operating same
CN110471738A (en) Method for switching theme, device, electronic equipment and the storage medium of application program
CN108230014A (en) Electronic device and the method that webpage is shown using electronic device
CN110223124A (en) Data processing method, device, electronic equipment and computer-readable medium
CN109828820A (en) A kind of focus method for refreshing, device, storage medium and the terminal of application widget
CN110275736A (en) Obtain operation data method, apparatus, equipment and the readable medium of application program
CN106897202A (en) For the method and apparatus of output data
CN111918386B (en) Positioning method, positioning device, storage medium and electronic equipment
CN110377362A (en) Clear up method, apparatus, terminal and the storage medium of application program
WO2023222003A1 (en) Image semantic alignment method and apparatus, and electronic device and storage medium
KR102569998B1 (en) Method for managing notifications of applications and an electronic device thereof
CN109710154A (en) Method and apparatus for showing chat message
WO2021082893A1 (en) Desktop display control method and apparatus, terminal, and storage medium
CN109413276B (en) Information display method and terminal equipment
US20230393887A1 (en) Runtime techniques for detecting anti-patterns causing performance issues
CN110389805A (en) A kind of information displaying 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