Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearlyChu, it is fully described by, it is clear that described embodiment is a part of embodiment of the present invention rather than allEmbodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creative laborThe every other embodiment obtained under dynamic premise, broadly falls into the scope of protection of the invention.
See Fig. 1, for the schematic flow sheet of discharging method of a kind of application program that the embodiment of the present invention provides,In embodiments of the present invention, described method includes:
S101, receive for the unloading command of application program.
Concrete, the method for terminal recognition unloading command includes but not limited to: terminal detects answering on desktopDuring the appointment region being dragged on desktop with the application icon that program is corresponding, terminal recognition goes out this instructionFor unloading command, terminal receives the unloading command for this application program;Or terminal detects application program pairWhen the application program image answered puts on the length of generation by operation, put on interpolation unloading labelling at application program image, eventuallyWhen end detects clicking operation again on unloading labelling, it is unloading command that terminal recognition goes out present instruction, eventuallyEnd receives unloading command.It should be noted that the method for terminal recognition unloading command is not limited to above-mentioned example,Can be configured as required.
S102, obtain the type information of described application program, and obtain application journey according to described type informationSequence table.
Concrete, the type information of application program represents the major function attribute for program, to application journeyThe function that application program mainly realizes it is based on when sequence is classified.Such as: type information includes: videoBroadcast message class, audio frequency broadcast message class, word processing class, map class etc..Terminal obtains the type information of application programMethod include but not limited to: obtain the type information of this application program according to the program name of application program,Such as: program name is the application program of " XX video ", terminal according in this program name key word " depending onFrequently " just can determine that this application program belongs to video playback class, program name is the application program of " XX map ",According to the key word " map " in program name, terminal just can determine that this application program belongs to map class.Optional, server or terminal local have program stored therein the data base of title and type information, and terminal is according to application journeyThe program name of sequence just can inquire the type information that this application program is corresponding.
The application list includes the control of at least one application program, and control points to the download ground of application programLocation, this control can be graphical control, character control or the mixing of graphic character control, and control can includeThe program name of application program and program icon, or, only including program name, terminal can be from serverThe application list that upper acquisition type information is corresponding, wherein, each application corresponding in the application listThe hardware resource occupancy of program is respectively less than application program to be unloaded.
S103, display include unloading button, freezing button and the unloading interface of described the application list;ItsIn, described freezing button compresses for triggering and stores user data and the routine data of described application program,Described freezing button is used for triggering the described application program of unloading.
Concrete, unloading button and freezing button are the control on unloading interface, terminal detect unloading byDuring the trigger action preset on button, application program carrying out normal unloading process, terminal detects freezesDuring the trigger action preset on knot button, routine data and the user data of application program are compressedRear storage is in local nonsystematic subregion, and routine data represents the data of application program itself, user dataRepresent the configuration information of application program, when user needs to reuse this application program, can be directly from fingerFixed storage position decompresses according to routine data and user data, it is not necessary to again to this application programIt is downloaded and installs, can be the use environment before installing by application recovery simultaneously, be user-friendly to.
In sum, terminal receives the unloading command for application program, obtains the type information of application program,Obtaining the application list according to type information, display includes freezing button, unloading button and Application ColumnThe unloading interface of table, unloading button compresses for triggering terminal and stores routine data and the user of application programData, such application program can't really unload from terminal, when user needs to use next time, directlyRecover application program, save download and set-up time, be user-friendly to.
See Fig. 2 a, for the schematic flow sheet of discharging method of a kind of application program that the embodiment of the present invention provides,In embodiments of the present invention, described method includes:
S201, the use frequency adding up and storing application program and hardware resource occupancy.
Concrete, the number of starts of application program in terminal statistics preset time period, using the number of starts as thisThe use frequency of application program, terminal can statistics application program hardware resource occupancy in preset time periodMaximum as its hardware resource occupancy, or terminal according to predetermined period gather in preset duration shouldBy the instantaneous hardware resource occupancy of program, the multiple instantaneous hardware resource occupancy gathered is averaged,Using the meansigma methods that obtains as the hardware resource occupancy of application program, or terminal uses the additive method statistics shouldBy the hardware resource occupancy of program, the present invention is not restricted.Wherein hardware resource occupancy can be internal memoryOccupancy or CPU usage.
S202, receive for the unloading command of application program.
Concrete, the method for terminal recognition unloading command includes but not limited to: terminal detects answering on desktopWhen being drawn to specify region by program icon, terminal check receives for this application icon correspondingThe unloading command of application program;Or terminal detects that the application program image that application program is corresponding puts on the length of generationBy operation, putting on interpolation unloading labelling at application program image, terminal detects click again on unloading labellingDuring operation, terminal determines and receives the unloading command for this application program, it should be noted that terminal is knownSafety pin is not limited to this to the method for the unloading command of application program, can be configured as required.
S203, the type information of acquisition application program, and obtain the application list according to type information.
Concrete, the primary functional attributes of the type information representation program of application program.Such as: type informationIncluding: video playback class, audio frequency broadcast message class, instant messaging class, map class etc..Terminal obtains application programThe method of type information include singly being not limited to: obtain this application program according to the program name of application programType information, such as: program name is the application program of " XX " video, and terminal is according to this program nameIn key word " video " this application program is attributed to video playback class, program name is " XX " mapApplication program, this application program is attributed to map according to the key word " map " in program name by terminalClass.Optionally, for cannot obtain the application program of classification information according to program name, terminal can be at clothesThe classification information that on business device, polling routine title is corresponding, is derived from the type information of application program.
The application list includes the control of at least one application program, and control points to the download of application programAddress, this control can be graphical control, character control or the mixing of graphic character control, and control can wrapIncluding program name and/or the program icon of application program, it is corresponding that terminal can obtain type information from serverThe application list, wherein, hardware resource resources occupation rate corresponding in the application list is less than waiting to unloadThe application program carried.Such as, the hardware resource occupancy of application program to be unloaded is 20%, then apply journeyThe hardware resource occupancy of each application program corresponding in sequence table is respectively less than 20%.
S204, the use frequency obtaining application program and hardware resource occupancy.
Concrete, terminal can obtain use frequency and the hardware resource of application program from this locality or serverOccupancy.
S205, use frequency are less than occupancy threshold value more than frequency threshold and hardware resource occupancy.
Concrete, use frequency that terminal obtains according to S204 and hardware resource occupancy, compare making of acquisitionBy frequency and the size of frequency threshold preset, and compare the hardware resource occupancy of acquisition and accounting for of presettingBy the size of rate threshold value, it is less than occupancy threshold value using frequency more than frequency threshold and hardware resource occupancyIn the case of, perform S206.
S206, display include unloading button, freezing button and the unloading interface of the application list, and rightFreezing button is marked.
Concrete, terminal demonstration unloading interface, unloading interface includes unloading button, freezing button and applicationProgram listing, and freezing button is marked, such as: freezing button is carried out highlight mark.
See the schematic diagram at the unloading interface shown in Fig. 2 b, it is assumed that application program to be carried is X video, unloadsCarry interface 20 and include the application list 201, freezing button 202 and unloading button 203, Application ColumnTable includes multiple control, respectively the control of corresponding A video, the control of B video, the control of C video and DThe control of video, the control of each application program is provided with a tick boxes, as a example by A video control,It is provided above with tick boxes 204, when tick boxes carries out selecting operation, the corresponding labelling of meeting in tick boxes,This labelling represents that application program is selected.Terminal determines that the use frequency of application program is more than frequency threshold and hardPart resources occupation rate is less than occupancy threshold value, shows labelling on freezing button 202.
S207, use frequency are not less than occupancy threshold value more than frequency threshold and hardware resource occupancy.
Concrete, use frequency that terminal obtains according to S204 and hardware resource occupancy, compare use frequentlyRate is more than or equal to occupancy threshold value more than frequency threshold and hardware resource occupancy, performs S208.
S208, display include unloading button, freezing button and the unloading interface of the application list, to freezingButton and at least one recommendation application program are marked.
Concrete, terminal demonstration unloading interface, unloading interface includes unloading button, freezing button and application journeySequence table, terminal determines the recommendation application program that the application list is corresponding, such as, it is recommended that application program isThe application program that in the application list, hardware resource occupancy is minimum, terminal is to freezing button and recommends applicationThe labeling method of program can be to be highlighted.
See the schematic diagram at the unloading interface shown in Fig. 2 c, it is assumed that application program to be unloaded is X program, unloadsCarry interface 20 to include unloading button 203, freezing button 202 and the application list 201, Application ColumnTable includes multiple control, respectively the control of corresponding A video, the control of B video, the control of C video and DThe control of video, each application program control is provided with a tick boxes, when tick boxes is selected by userWhen selecting operation, can show corresponding labelling in tick boxes, this labelling represents that application program is selected.Terminal is trueThe use frequency of fixed application program to be unloaded is not less than occupancy more than frequency threshold and hardware resource occupancyThreshold value, is marked with recommendation application A and B freezing button.
S209, use frequency are less than or equal to frequency threshold.
Concrete, use frequency that terminal obtains according to S204 and hardware resource occupancy, compare use frequentlyRate, less than or equal in the case of frequency threshold, performs S210.
S210, display include unloading button, freezing button and the unloading interface of the application list, and rightUnloading button is marked.
Concrete, see the schematic diagram at the unloading interface shown in Fig. 2 d, it is assumed that application program to be unloaded is XProgram, unloading interface 20 includes unloading button 203, freezing button 202 and the application list 201, shouldMultiple control is included, respectively the control of corresponding A video, the control of B video, C video with program listingControl and the control of D video, each application program control is provided with a tick boxes, when user is to hookWhen selecting frame to carry out selecting operation, can show corresponding labelling in tick boxes, this labelling represents that application program is selectedIn.Terminal determines that the use frequency of application program to be unloaded is less than or equal to frequency threshold, to unloading buttonWith regard to line flag.
S211, receive for the trigger action of freezing button.
Concrete, terminal detects the trigger action occurred on freezing button, and trigger action is used for triggering terminalPerforming the operation of S212, such as, trigger action can be single-click operation, double click operation or other kinds of behaviourMake.
S212, compress and store user data and the routine data of application program.
Concrete, routine data represents the data of application program itself, setting of user data representation application programConfidence ceases, and routine data and user data are compressed processing by terminal, to reduce the memory space takenSize, routine data and user data after compression being processed are stored in the nonsystematic subregion of terminal.CompressionRoutine data after process and the CPU of user data no longer occupied terminal and memory source, when user needs againDuring this application program of secondary use, decompress actual to routine data and user in the storage position that terminal is specifiedContracting directly recovers this application program after processing, it is not necessary to installs and downloads, dramatically saves on the time.
It should be noted that if some application program in the application list is selected choose in the case of,User set out freezing button or unloading button time, terminal while performing freeze operation or unloading operation, meetingSelected application program is installed.
In sum, terminal receives the unloading command for application program, obtains the type information of application program,Obtaining the application list according to type information, display includes freezing button, unloading button and Application ColumnThe unloading interface of table, unloading button compresses for triggering terminal and stores routine data and the user of application programData, such application program can't really unload from terminal, when user needs to use next time, directlyRecover application program, save download and set-up time, be user-friendly to.
See Fig. 3 a, for the structural representation of a kind of terminal that the embodiment of the present invention provides, the embodiment of the present inventionTerminal for performing the discharging method of application program in Fig. 1, involved term and process can refer to Fig. 1The description of embodiment.Terminal 3 includes: receive unit 301, acquiring unit 302 and display unit 303.
Receive unit 301, for receiving the unloading command for application program.
Acquiring unit 302, for obtaining the type information of described application program, and according to described type informationObtain the application list.
Display unit 303, includes unloading unloading of button, freezing button and described the application list for displayCarry interface;Wherein, described freezing button for trigger compression and store described application program user data andRoutine data, described unloading button is used for triggering the described application program of unloading.
The embodiment of the method for the embodiment of the present invention and Fig. 1 based on same design, its technique effect brought also phaseWith, detailed process can refer to the description of embodiment of the method one, and here is omitted.
Seeing Fig. 3 b, for another structural representation of a kind of terminal that the embodiment of the present invention provides, the present invention is realExecuting the terminal of example for performing the discharging method of the application program in Fig. 2 a, involved term and process can be joinedDescription according to Fig. 2 a embodiment.Terminal 3 is except including receiving unit 301, acquiring unit 302 and display unitOutside 303, also include: statistic unit 304.
Statistic unit 304, be used for adding up described application program in preset duration the number of starts as described useFrequency;Add up in described application program preset duration the maximum of hardware resource occupancy as described application journeyThe hardware resource occupancy of sequence;Wherein, described hardware resource occupancy includes that memory usage and CPU takeRate.
Optionally, in a kind of possible embodiment of the present invention, display unit 303 is used for:
Obtain use frequency and the hardware resource occupancy of described application program;
If described use frequency is less than occupancy threshold value more than frequency threshold and described hardware resource occupancy, aobviousShow and include unloading button, freezing button and the unloading interface of described the application list, and freeze describedButton is marked.
Optionally, in a kind of possible embodiment of the present invention, display unit 303 is used for:
Obtain use frequency and the hardware resource occupancy of described application program;
If described use frequency more than frequency threshold and described hardware resource occupancy be more than or equal to described in takeRate threshold value, display includes described unloading button, described freezing button and unloading circle of described the application listFace, and described freezing button and at least one recommendation application program described are marked.
Optionally, in a kind of possible embodiment of the present invention, display unit 303 is used for:
Obtain use frequency and the hardware resource occupancy of described application program
If described use frequency is less than or equal to frequency threshold, display include described unloading button, described in freezeThe unloading interface of button and described the application list, and described unloading button is marked.
The embodiment of the present invention and embodiment of the method two are based on same design, and its technique effect brought is the most identical,Concrete principle can refer to the description of embodiment of the method two, and here is omitted.
See Fig. 4, the another structural representation of a kind of terminal provided for the embodiment of the present invention, real in the present inventionExecuting in example, terminal 4 includes processor 401, memorizer 402 and transceiver 403.Transceiver 403 forTransceiving data between external equipment.The quantity of the processor 401 in terminal 4 can be one or more.ThisIn some embodiments of invention, processor 401, memorizer 402 and transceiver 403 can by bus system orOther modes connect.Terminal 4 may be used for the method shown in Fig. 1 that performs.The art related to about the present embodimentThe implication of language and citing, be referred to embodiment corresponding to Fig. 1.Here is omitted.
Wherein, memorizer 402 stores program code.Processor 401 is used for calling in memorizer 402 to be depositedThe program code of storage, is used for performing following operation:
Receive the unloading command for application program;
Obtain the type information of described application program, and obtain the application list according to described type information;
Display includes unloading button, freezing button and the unloading interface of described the application list;Wherein, instituteState freezing button for triggering compression and storing user data and the routine data of described application program, described in unloadCarry button to be used for triggering the described application program of unloading.
In a kind of possible embodiment of the present invention, processor 401 perform described display include unload byThe unloading interface of button, freezing button and described the application list includes:
Obtain use frequency and the hardware resource occupancy of described application program;
If described use frequency is less than occupancy threshold value more than frequency threshold and described hardware resource occupancy, aobviousShow and include unloading button, freezing button and the unloading interface of described the application list, and freeze describedButton is marked.
In a kind of possible embodiment of the present invention, processor 401 perform described display include unload byThe unloading interface of button, freezing button and described the application list includes:
Obtain use frequency and the hardware resource occupancy of described application program;
If described use frequency more than frequency threshold and described hardware resource occupancy be more than or equal to described in takeRate threshold value, display includes described unloading button, described freezing button and unloading circle of described the application listFace, and described freezing button and at least one recommendation application program described are marked.
In a kind of possible embodiment of the present invention, processor 401 perform described display include unload byThe unloading interface of button, freezing button and described the application list includes:
Obtain use frequency and the hardware resource occupancy of described application program
If described use frequency is less than or equal to frequency threshold, display include described unloading button, described in freezeThe unloading interface of button and described the application list, and described unloading button is marked.
In a kind of possible embodiment of the present invention, processor 401 performs described acquisition described application journeyBefore the use frequency of sequence and hardware resource occupancy, it is additionally operable to perform:
Add up described application program in preset duration the number of starts as described use frequency;
Add up in described application program preset duration the maximum of hardware resource occupancy as described application programHardware resource occupancy;Wherein, described hardware resource occupancy includes memory usage and CPU usage.
The terminal that the embodiment of the present invention provides includes but not limited to carryOr the terminal of other operating system, such as mobile phone.Can also be other terminal, such as have touch-sensitiveThe laptop computer on surface (such as, touch-screen display and/or Trackpad) or panel computer or desk-top calculatingMachine.
In the following discussion, a kind of terminal including display and Touch sensitive surface is described.But should manageSolving, terminal can include other physical user-interface device one or more, such as physical keyboard, mouse and/Or action bars.
Terminal generally supports multiple application program, such as following in one or more: picture application program,Present application program, word-processing application, webpage establishment application program, dish editor's application program, electricitySub-table application program, game application, telephony application, videoconference application, electronics postalApplication program, photograph management application program, number are supported in part application program, instant message application program, exerciseWord camera application program, digital video camcorder application program, network browsing application program, digital music are broadcastPut device application program and/or video frequency player application program.
The various application programs that can perform in terminal can use at least one physical user interface shared to setStandby, such as Touch sensitive surface.One or more functions of Touch sensitive surface and display corresponding information in terminalCan adjust from a kind of application program and/or be changed to lower a kind of application program and/or in corresponding application programs quiltAdjust and/or change.So, the shared physical structure (such as Touch sensitive surface) of terminal is available for userSpeech clearly user interface directly perceived supports various application program.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention terminal can merge according to actual needs, divides and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method,Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculatingIn machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory,Or random store-memory body (Random Access Memory, RAM) etc. ROM).
Above disclosed only one preferred embodiment of the present invention, can not limit this with this certainlyBright interest field, one of ordinary skill in the art will appreciate that all or part of stream realizing above-described embodimentJourney, and according to the equivalent variations that the claims in the present invention are made, still fall within the scope that invention is contained.