CN110032397A - Application processing method and device, electronic equipment, computer readable storage medium - Google Patents

Application processing method and device, electronic equipment, computer readable storage medium Download PDF

Info

Publication number
CN110032397A
CN110032397A CN201810023911.4A CN201810023911A CN110032397A CN 110032397 A CN110032397 A CN 110032397A CN 201810023911 A CN201810023911 A CN 201810023911A CN 110032397 A CN110032397 A CN 110032397A
Authority
CN
China
Prior art keywords
target application
application
people
information
resource
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
CN201810023911.4A
Other languages
Chinese (zh)
Other versions
CN110032397B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810023911.4A priority Critical patent/CN110032397B/en
Publication of CN110032397A publication Critical patent/CN110032397A/en
Application granted granted Critical
Publication of CN110032397B publication Critical patent/CN110032397B/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/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

This application involves a kind of application processing methods and device, electronic equipment, computer readable storage medium.This method comprises: receiving the people of unread information of the target application in frozen state;When the target application meets wake-up condition, the target application is waken up;It generates the prompt information to the people of unread information and shows the prompt information;When detect act on the prompting message and trigger to the idsplay order of the people of unread information when, the people of unread information is shown by the target application after waking up;When the target application is unsatisfactory for wake-up condition, the target application is kept to be in frozen state.By the above method, the resource utilization of electronic equipment can be improved.

Description

Application processing method and device, electronic equipment, computer readable storage medium
Technical field
This application involves data processing fields, more particularly to a kind of application processing method and device, electronic equipment, calculating Machine readable storage medium storing program for executing.
Background technique
The application installed on electronic equipment at runtime, needs to occupy certain resource, such as occupies processor resource, interface Resource, Internet resources and/or memory source etc..When the resource that background application occupies is excessive, the operation of foreground application will affect Efficiency.It thus needs that background application is carried out freezing to handle, to limit background application to the occupancy of resource, improve on electronic equipment Available resources so that more available resources improves the treatment effeciency of foreground application to foreground application inclination.
However, frozen application still can be waken up by other application or the message received, the application being waken up is logical Its resource constraint can be often released, causes to freeze in vain the application, it is difficult to effectively improve the available resources on electronic equipment.
Summary of the invention
The embodiment of the present application provides a kind of application processing method and device, electronic equipment, computer readable storage medium, can To improve the available resources of equipment.
A kind of application processing method, comprising:
Receive the people of unread information of the target application in frozen state;
When the target application meets wake-up condition, the target application is waken up;
It generates the prompt information to the people of unread information and shows the prompt information;
When detect act on the prompting message and trigger to the idsplay order of the people of unread information when, pass through wake-up Target application afterwards shows the people of unread information;
When the target application is unsatisfactory for wake-up condition, the target application is kept to be in frozen state.
A kind of to apply processing unit, described device includes:
People of unread information receiving module, for receiving the people of unread information for being in the target application of frozen state;
Wake-up module, for waking up the target application when the target application meets wake-up condition;
Cue module, for generating the prompt information to the people of unread information and showing the prompt information;
People of unread information display module, for when detect act on the prompting message and trigger to the people of unread information Idsplay order when, by wake up after target application show the people of unread information;
Module is kept, is freezed for when the target application is unsatisfactory for wake-up condition, keeping the target application to be in State.
A kind of electronic equipment, including memory and processor store computer program, the calculating in the memory When machine program is executed by the processor, so that the processor executes each application processing method as described in the examples of the application The step of.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of each application processing method as described in the examples of the application is realized when row.
Application processing method and device provided by the embodiments of the present application, electronic equipment, computer readable storage medium, pass through Wake-up condition is set, when target application produces people of unread information, then can detect whether target application meets corresponding wake-up bars Part then wakes up the target application when the target application meets wake-up condition, and user is notified to produce this and do not read to believe The prompt information of breath, when detect act on the prompting message and trigger to the idsplay order of the people of unread information when, then The operation is responded, which is switched to front stage operation, the people of unread information is shown by the target application after waking up, is supplied User consults, if target application is unsatisfactory for corresponding wake-up condition, the target application is kept to be in frozen state, maintenance pair Its resource constraint, to improve the available resources of electronic equipment.By the way that wake-up condition is arranged to target application, every time one can be prevented There is unread message then wake up target application, when the target application in frozen state being caused frequently to generate people of unread information, needs anti- It is multiple to wake up, it is also required to occupy certain resource since terminal wakes up application, electronic equipment can be reduced instead by frequently waking up application Available resources.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the schematic diagram of internal structure of electronic equipment in one embodiment;
Fig. 2 is the part frame schematic diagram of the system in one embodiment in electronic equipment;
Fig. 3 is the flow chart of application processing method in one embodiment;
Fig. 4 is the schematic diagram of application processing method in one embodiment;
Fig. 5 is the flow chart that process flow is applied in another embodiment;
Fig. 6 is the structural block diagram that processing unit is applied in one embodiment;
Fig. 7 is the structural block diagram that processing unit is applied in another embodiment;
Fig. 8 is the structural block diagram that processing unit is applied in another embodiment;
Fig. 9 is the block diagram of the part-structure of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in the present invention, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, without departing from the scope of the invention, the first occupancy threshold can be known as the second occupancy threshold, and similar Second occupancy threshold can be known as the first occupancy threshold by ground.First occupancy threshold and the second occupancy threshold are both It is occupancy threshold, but it is not same occupancy threshold.
In one embodiment, as shown in Figure 1, providing the schematic diagram of internal structure of a kind of electronic equipment.The electronics is set Standby includes processor, memory and the display screen connected by system bus.Wherein, which calculates and controls for providing Ability supports the operation of entire electronic equipment.Memory for storing data, program, and/or instruction code etc., on memory At least one computer program is stored, which can be executed by processor, and provide in the embodiment of the present application to realize Application processing method suitable for electronic equipment.Memory may include magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc. non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..Example Such as, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memory medium is stored with Operating system, database and computer program.It is stored in the database for realizing one provided by above each embodiment The relevant data of kind application processing method, for example the title of each application and the page for each application distribution can be stored with Etc. information.The computer program can be performed by processor, to answer for realizing one kind provided by each embodiment of the application Use processing method.Built-in storage provides high speed for operating system, database and the computer program in non-volatile memory medium The running environment of caching.Display screen can be touch screen, for example be capacitance plate or electrical screen, the interface for display foreground application It shows information, may be utilized for the touch operation that detection acts on the display screen, generate corresponding instruction, for example carry out front and back The switching command etc. of platform application.
It will be understood by those skilled in the art that structure shown in Fig. 1, only part relevant to application scheme is tied The block diagram of structure, does not constitute the restriction for the electronic equipment being applied thereon to application scheme, and specific electronic equipment can be with Including than more or fewer components as shown in the figure, perhaps combining certain components or with different component layouts.Such as electricity Sub- equipment further includes the network interface connected by system bus, and network interface can be Ethernet card or wireless network card etc., is used It is communicated in external electronic equipment, for example can be used for same server and communicated.For another example on the electronic equipment not In the presence of the display connected by system bus, or external display device can be connected.
In one embodiment, as shown in Fig. 2, providing the part architecture diagram of a kind of electronic equipment.Wherein, which sets It include JAVA space layer 210, local ccf layer 220 and kernel (Kernel) space layer 230 in standby architecture system.JAVA is empty It may include that freezing pipe ought to use 212 on interbed 210, electronic equipment can ought to be realized with 212 by the freezing pipe and be answered each Freeze strategy, the operation such as freeze and thaw is done to the related application of backstage power consumption.It is excellent comprising resource in local ccf layer 220 First grade and limitation management module 222 and platform freezing pipe manage module 224.Electronic equipment can pass through resource prioritization and limitation management The different application of 222 real-time servicing of module in the tissue of different priorities and different resource, and according to the demand on upper layer come The resource group of application program is adjusted to reach optimization performance, saves the effect of power consumption.Electronic equipment can be freezed by platform The task that management module 224 can freeze on backstage is assigned to corresponding preset different layers according to the length for entering freeze-off time Secondary frozen crust, optionally, the frozen crust may include three, be respectively: CPU limits sleep pattern, CPU freezes sleep pattern, Process deep freezing mode.Wherein, CPU limitation sleep pattern, which refers to, limits the occupied cpu resource of associated process, makes Associated process occupies less cpu resource, and vacant cpu resource is tilted to other not frozen processes, is limited to CPU The occupancy of resource also accordingly limits process to the occupancy of Internet resources and I/O interface resource;CPU freezes sleep pattern Finger forbids associated process using CPU, and retains the occupancy to memory, when being forbidden to use cpu resource, corresponding Internet resources with And I/O interface resource is also prohibited from using;Process deep freezing mode refers in addition to being forbidden to use cpu resource, further right The occupied memory source of associated process is recycled, and the memory of recycling uses for other processes.It is wrapped in kernel spacing layer 230 It includes UID management module 231, Cgroup module 232, Binder control module 233, proceeding internal memory recycling module 234 and freezes Time-out exits module 235.Wherein, UID management module 231 is for realizing the User Identity (User based on application Identifier, UID) Lai Guanli third-party application resource or freezed.It is compared to and is identified based on process identity The control of (Process Identifier, PID) Lai Jinhang process is more convenient for being managed collectively the application of a user by UID Resource.Cgroup module 232 for provide a set of perfect central processing unit (Central Processing Unit, CPU), CPUSET, memory (memory), input/output (input/output, I/O) and the relevant resource constraint mechanism of Net.Binder Module 233 is managed for realizing the control of the backstage binder priority communicated.Wherein, the interface module of local ccf layer 220 Comprising developing to the binder interface on upper layer, binder interface of the frame or application on upper layer by offer limits to send resource The instruction made or freezed manages module 224 to resource prioritization and limitation management module 222 and platform freezing pipe.Proceeding internal memory returns Receipts module 234, in this way can be when some third-party application be chronically at frozen state for realizing process deep freezing mode It waits, can mainly discharge the file area of process, to reach the module for saving memory, also accelerate this and apply in starting next time Speed.Freeze time-out and exits exception of the module 235 for solving to occur freezing overtime scene generation.It, can by above-mentioned framework Realize the application processing method in each embodiment of the application.
In one embodiment, as shown in figure 3, providing a kind of application processing method, the present embodiment is applied in this way It is illustrated for electronic equipment as shown in Figure 1.This method comprises:
Step 302, the people of unread information of the target application in frozen state is received.
The operation of one application (Application, abbreviation APP) is usually to be embodied by the operation of relevant multiple processes 's.Process (process) is program in computer about the primary operation activity on certain data acquisition system, is that system carries out resource The basic unit of distribution and scheduling, is the basis of operating system configuration.Target application can for game class application, music class application or The application of the types such as social category application or payment class application.For example, user can play game by game class application, can also lead to It crosses video class application and sees video, music class application plays music etc. can also be passed through.
Application program can be divided into foreground application and background application according to the state of operation.Foreground application Refer to the application program in the front stage operation of electronic equipment, foreground application can with show on foreground and realized with user Interaction.Background application refers to the application program in the running background of electronic equipment, and background application generally cannot be preceding Platform shows and realizes interactive process with user.Electronic equipment can control the switching of foreground application and background application, foreground application It can switch to running background, background application can also be switched to front stage operation.
Using that can be frozen, the application in frozen state is usually background application.Application in frozen state is simultaneously It is not turned off, does not run temporarily only, limit its occupancy to resource.For example the application in frozen state is not take up place Reason device resource is run, but still occupies the resources such as memory and the hardware of electronic equipment.The local ccf layer of electronic equipment In resource prioritization and limitation management module the state of application can be marked, by read application status indication just It is known that whether application is in frozen state.
Target application in frozen state remains to receive or generate information, and people of unread information indicates the letter for being in unread state Breath.People of unread information may include pushed information recommended to the user, for example be favor information, red packet information, good friend or service provider Notification message and/or application more new information etc..For example, when the application is music class in application, the people of unread information can be a certain song Bent or singer recommendation information.Electronic equipment can obtain the people of unread information, and parse the information content of the people of unread information.
Step 304, when target application meets wake-up condition, wake up target application.
Electronic equipment has preset corresponding wake-up condition, different not necessarily identical using corresponding wake-up condition.When connecing After receiving people of unread information, whether detectable target application meets wake-up condition.When detecting that target application meets corresponding wake-up When condition, then the target application is waken up.In one embodiment, wake-up condition include in following several conditions any one or It is several:
(1) whether the severity level of people of unread information reaches pre-set level;
(2) whether the message bar number of people of unread information is more than default number of branches;
(3) whether current time is in preset time period;
(4) whether current location is in predeterminable area.
Wherein, electronic equipment is provided with the different corresponding severity levels of information.Severity level can there are many rank, than It such as can be according to significance level by again to light respectively level-one, second level, three-level, level Four.Pre-set level is pre-set is used for Determine whether to reach the level threshold of wake-up condition, for example can be second level.Similarly, default number of branches, preset time period and default Region is also respectively pre-set for determining whether to reach item number threshold value, period threshold value and the region threshold of wake-up condition Value.
When one of the severity level of the unread message of target application, message bar number, current time and/or current location Or it is several when meeting above-mentioned corresponding condition, then determine that target application meets the wake-up condition to target application.And determining completely After sufficient wake-up condition, then wake up target application.Waking up application indicates to thaw to corresponding application, so that the application can transport Row.
Step 306, the prompt information and display reminding information to people of unread information are generated.
Electronic equipment can be generated according to the people of unread information detected for prompting to produce the prompt letter of the people of unread information Breath, and show the prompt information.It wherein, may include information some or all of in people of unread information in the prompt information, or also It may include informing that user's target application produces the message of corresponding people of unread information, so that user can obtain according to the prompt information Some or all of know in corresponding people of unread information information, or would know that the target application produces corresponding people of unread information.It can Selection of land, the display mode to prompt information may include a variety of, for example can show in the form of a popup window, or can be in electronic equipment Status bar generate the notice of the prompt information so that user can view corresponding prompt information.
Step 308, when detect act on prompting message and trigger to the idsplay order of people of unread information when, pass through wake-up Target application afterwards shows people of unread information.
Electronic equipment can detect operation of the user to the people of unread information, and make corresponding response to the operation.Wherein, should Operation can be the operation of ignoring to people of unread information, or be the lookup operations etc. to people of unread information.When being identified as lookup operations, Then trigger the idsplay order to people of unread information.For example, may also include the virtual of " ignoring " and " checking details " in the prompt information Button, when detect the clicking operation of button " is ignored " to this when, then ignore corresponding people of unread information, do not start corresponding target Using.When detecting the clicking operation to " checking details " button, then trigger corresponding idsplay order, and start wake-up after Target application, and the people of unread information is shown by the target application after the wake-up, so that user checks.
Wherein, which when showing people of unread information, has then been switched to by front stage operation by the target application, this When, which then becomes foreground application from background application.
Step 310, when target application is unsatisfactory for wake-up condition, target application is kept to be in frozen state.
If target application is unsatisfactory for wake-up condition, without being waken up to the target application, so that it keeps jelly Knot state continues to keep the resource constraint to the target application, to improve the treatment effeciency of foreground application, improves electronic equipment Available resources.
Above-mentioned application processing method can then be examined by the way that wake-up condition is arranged when target application produces people of unread information Survey target application whether meet corresponding wake-up condition, when the target application meets wake-up condition, then to the target application into Row wakes up, and user is notified to produce the prompt information of the people of unread information, when detecting pair for acting on prompting message and triggering When the idsplay order of people of unread information, then the operation is responded, which is switched to front stage operation, passes through the target after waking up Using display people of unread information, is consulted for user, if target application is unsatisfactory for corresponding wake-up condition, keep the target application In frozen state, maintain to its resource constraint, to improve the available resources of electronic equipment.By calling out target application setting The condition of waking up can prevent one having unread message then wake up target application every time, the target application in frozen state is caused frequently to produce It when raw people of unread information, needs to wake up repeatedly, is also required to occupy certain resource since terminal wakes up application, it is anti-frequently to wake up application And the available resources of electronic equipment can be reduced.
In one embodiment, above-mentioned application processing method further include: obtain the severity level of unread message;Work as importance level When not reaching pre-set level, determine that target application meets wake-up condition.
Electronic equipment can be after obtaining people of unread information, according to the perhaps type of people of unread information in the people of unread information come really The severity level of the fixed people of unread information, and compare whether the severity level reaches the corresponding pre-set level of the target application, if so, Then determine to meet wake-up condition, otherwise, whether the other information that can further detect the target application or people of unread information, which meets, is wanted It asks, or directly determines that the target application is unsatisfactory for wake-up condition.By the way that the severity level of people of unread information is arranged, so that when meeting When pre-set level, target application is waken up, can prevent target application from continually being waken up, reduce instead terminal can benefit Use resource.
In one embodiment, the severity level division mode of the information of different applications and corresponding pre-set level can It is not necessarily identical.For example, can be second level for a certain pre-set level being arranged using A, and for a certain using set by B Pre-set level can be three-level.For the severity level and pre-set level of the different corresponding different information of application setting, can be improved Flexibility to the wake-up of different application.
In one embodiment, above-mentioned application processing method further include: obtain the institute of the target application in frozen state There is the message bar number of unread message;When message bar number reaches default number of branches, determine that target application meets wake-up condition.
Optionally, also it can determine whether to meet default item by the information bar number of the people of unread information of target application generation Part.Electronic equipment can be when obtaining the people of unread information of target application, and update that the target information accumulated all currently does not read to believe The information bar number of breath, and detect whether the information bar number reaches default number of branches, if so, determining to meet wake-up condition.At one , can be not necessarily identical for the corresponding default number of branches of different application settings in embodiment, for example a certain application C institute can be directed to The default number of branches of setting are 3, and for it is a certain using default number of branches set by D can be 5, be arranged for different applications Corresponding different default number of branches, can be improved the flexibility of the wake-up to different application.
In one embodiment, above-mentioned application processing method further include: obtain the current space-time information of electronic equipment;When working as When preceding space time information belongs to default space time information, determine that target application meets wake-up condition.
Wherein, space time information may include temporal information and/or spatial information.Current time information includes on electronic equipment Current time and/or the location information that is presently in of electronic equipment.Electronic equipment can be directed to different applications, and setting is corresponding not Same default space time information.By the way that space time information is arranged, when so that current space-time information being in default space time information, then mesh is determined Mark application meets wake-up condition, can prevent target application from continually being waken up.
Optionally, can according to belonging to application itself application type and the operation of user that is recorded of the electronic equipment practise It is used to data and the corresponding space time information applied is set.For example, when the target application is to take out class in application, the default space time information It can be some or multiple preset time periods, which specially can meet the period that user has dinner, for example can be noon 11:00 to 13:00, or can be 17:00 to 19:00 etc..When being within the preset time period at current time, then determine Current space-time information, which meets, presets default space time information corresponding with the target application.For another example when target application is a certain game In application, can be according to the application type and user operation habits of the target application, corresponding default space time information is arranged includes class Corresponding preset time period and corresponding predeterminable area.For example the preset time period can be the period of non-working time, and Predeterminable area can be non-Administrative Area, so that the current time when electronic equipment was within the period of non-working time, with And current location then determines that current space-time information belongs to corresponding default space-time letter when belonging within the non-Administrative Area of user Breath determines that target application meets wake-up condition.Different default space time informations is set for different applications, is further improved The flexibility that target application wakes up.
In one embodiment, after wake up target application, further includes: obtain the number recycled when target application is frozen According to;It will be in the data load of the recycling most page of target application distribution;It is shown by the target application after waking up and does not read to believe Breath, comprising: people of unread information is shown by the target application of data after waking up, to be loaded with recycling.
The data in operational process are stored using committed memory space is needed at runtime.Different applies different The memory headroom that operating status occupies is not of uniform size fixed identical.Page is that operating system internally deposits the unit being managed, no With electronic equipment setting the unit memory size that occupies of page it is not necessarily identical.The data stored in page are phase Should using use in the process of running or generation data, the data by temporal cache in memory.For example electronics is set Standby interior memory headroom is divided into 100000 pages, and the page that application to be processed occupies is page 100 to memory Page 200, and page therein 130 to page 200 is recyclable memory page.
Electronic equipment is during freezing target application, the data that can will store in part or all of page It migrates into the memory space of the data for storing recycling.The memory space can cache (block cache), caching of page for block In any one or a few storage medium therein such as (page cache), virtual memory, flash memory or external storage medium Memory space.For the data of the recycling stored, electronic equipment can record target application belonging to the data of the recycling, than The corresponding relationship between the data of recycling and the application identities of target application can be such as established, it, can root after being waken up to target application Corresponding data collection can be obtained according to the corresponding relationship, by the page of the data load of recycling most target application distribution In, people of unread information is shown by the target application of data after waking up, to be loaded with recycling.
By the way that the data of target application recycling are stored in advance, after wake up target application, the data of the recycling can be obtained simultaneously In the load most page of target application distribution, since the data of the recycling are data required when target application is run, Required data, improve the operational efficiency of target application when without regenerating operation by target application.
In one embodiment, after wake up target application, further includes: counted since at the time of target application is waken up When;When timing duration reaches duration threshold value and do not trigger idsplay order, controls the target application being waken up and enter resource constraint State;Wherein, applying in resource constraint state accounts for the resources occupation rate of electronic equipment less than first in running background With rate threshold value.
When target application is waken up, electronic equipment starts timer, then starts timing by timer.If depositing simultaneously The case where a plurality of target application is waken up, then corresponding timer, each target application can be defined to each target application Timing can be carried out by corresponding timer.
In one embodiment, it can establish the correspondence between the application identities of target application and the timing markers of timer Relationship can be searched by the corresponding timing markers of application identities in this way after target application is waken up and start timer and opened Beginning timing.By taking android system as an example, system can pre-define a timer, when detecting that target application is waken up, Application identities search corresponding timer, and pass through timer.setBase (SystemClock.elapsedRealtime ()) Timer is reset, timer is then started by timer.start () function, starts timing.
To the duration at current time at the time of timing duration indicates to be waken up from target application.Duration threshold can be pre-defined Value controls the target application being waken up and enters resource constraint shape when timing duration is more than that duration threshold value does not trigger idsplay order State.Duration threshold value can generally be set as a smaller threshold value, thus be avoided that target application is constantly in operating status, and account for With the resource of equipment.It is understood that identical duration threshold value can be used in different target applications, difference also can be used Duration threshold value, it is not limited here.
Specifically, the application type of application program corresponding to target application can be obtained first, then according to using class Type obtains corresponding duration threshold value.For example, application program can be divided into the application types such as instant messaging class, social category, tool-class, Since the requirement of real-time of instant messaging class is relatively high, then can by instant messaging class application program using it is corresponding when A biggish value is arranged in long threshold value.The requirement of real-time of social category and tool-class application program is relatively low, then can will be social Class and tool-class application program using corresponding duration threshold value, a lesser value is set.Different can be answered in this way With different duration threshold values is arranged, the application program relatively low for some requirement of real-time, the target application being waken up can be with Frozen state is quickly entered, to reduce the occupancy of resource.
Resource constraint state refers to the corresponding state limited with the resource of the electronic equipment used at runtime.Resource Refer to software or hardware resource that electronic equipment must be used when handling application affairs, such as the CPU of electronic equipment (Central Processing Unit, central processing unit), memory (Memory), hardware, Internet resources, IO (Input- Output, input and output) etc..Resources occupation rate refers to the occupied ratio of the resource of electronic equipment, generally refers to occupied The ratio of resource and whole resources, can be indicated by way of percentage.For example, equipment it is total in have 128GB, Through it is occupied it is interior have 56GB, then the resources occupation rate of the equipment can be expressed as memory usage, obtained memory Occupancy is 43.75%.It is understood that resources occupation rate when application is in resource constraint state, in operational process No more than the first occupancy threshold, can control in this way using the use to electronic equipment resource, to save electronic equipment Resource.For example, the CPU usage of limitation application at runtime is no more than 10%.
In one embodiment, as shown in figure 4, for the schematic diagram in one embodiment using process flow.When using quilt Then start timing after wake-up, when timing duration reaches duration threshold value and do not trigger the idsplay order to people of unread information, then control is called out Awake application enters resource constraint state.The target application is limited to the occupancy of resource.Dash area in Fig. 4 indicates target Using the occupied state to resource, wherein when being in frozen state, the vacant resource of target application, in wake-up states rather than When resource constraint state, the resource of occupancy is greater than the resource occupied under resource constraint state.Time-out therein indicates timing Duration reaches duration threshold value and does not trigger the idsplay order to people of unread information.It is to be appreciated that in Fig. 4 being only a kind of signal feelings Condition, target application is to the occupancy of the various resources such as CPU, memory, IO and network and one indefinite identical.
Above-mentioned application processing method, when the duration after detecting that the target application in frozen state is waken up reaches Long threshold value and when not triggering idsplay order, controlling the target application being waken up enters resource constraint state, avoids using to resource Long-time occupy, further reduce resources occupation rate.
In one embodiment, it controls the target application being waken up and enters resource constraint state, comprising: obtain electronic equipment The total occupancy of resource;If the total occupancy of resource is more than the second occupancy threshold, controls the target application being waken up and enter money Source restriction state.
The total occupancy of resource refers to that all applications are to total occupation proportion of resource in electronic equipment.In electronic equipment operation It in the process can be with the resources occupation rate of each application of real-time statistics, then by the resources occupation rate of applications all in electronic equipment Addition obtains the total occupancy of resource.Whether the second occupancy threshold makes target application enter resource to be pre-set for measuring The critical numerical value of restriction state.Second occupancy threshold can be preset any appropriate empirical value.When the money of electronic equipment When the total occupancy in source is more than the second occupancy threshold, it is believed that the surplus resources of electronic equipment are fewer, will affect on electronic equipment Foreground application or other application normal operation.
In the case where the resource of electronic equipment is more nervous, the excessive occupancy resource of target application, influences in order to prevent The operation of other application can control the target application being waken up and enter resource constraint state.In answering for resource constraint state It is limited with the resource being able to use, it just will not influence the operation of other application in this way.For example, can pass through in cell phone system Cgroups (control groups, control group) controls resources occupation rates such as the CPU, memory, IO that control target application Target application enters resource constraint state.
In one embodiment, it controls the target application being waken up and enters resource constraint state, comprising: obtain target application Corresponding priority obtains corresponding resource constraint rank according to priority;It controls the target application being waken up and enters resource limit The corresponding resource constraint state of rank processed.
Priority indicates application to the priority level of resource occupation, for reflecting the significance level of respective application.Priority It may include rank in more, the priority of different application is not necessarily identical, can be configured the priority of each application in advance.Example Such as, system-level application can be set to higher priority, third-party application is set as lower priority.Or it can root The priority of application program is configured according to the type of application, instant messaging class application is set as higher priority, work Tool class application is set as lower priority.The priority of application can also be set according to other standards, herein without tool Body limits.Resource constraint rank refer to using the degree that is limited of resource, resource constraint rank is higher, then to money The degree of source limitation is bigger.Electronic equipment can establish the corresponding pass between different priority and different resource constraint ranks System, wherein priority is higher, then corresponding resource constraint rank is lower.
The corresponding priority of target application is obtained, corresponding resource constraint rank is obtained according to priority;Control is waken up Target application enter the corresponding resource constraint state of resource constraint rank.For example, the application of correspondence system grade can be set to Slight resource constraint, third-party application can be set to depth resource constraint.
It is understood that the resource that different applications may rely on will be different, then can be relied on according to application Resource type controls the resource constraint type of application.For example, the Internet resources that some locally applied possibility use are fewer, and It is some need to carry out network communication using Internet resources can relatively it is more, more to Internet usage can answer With the limitation for carrying out Internet resources.Specifically, the resource occupation historical data for obtaining target application, according to resource occupation history number According to the corresponding dependence resource type of acquisition target application, and be waken up according to dependence resource type and the control of resource constraint rank Target application enters resource constraint state.Wherein, resource occupation historical data refers to that applicating history occupies the data of resource, relies on The type for the resource that resource type is relied on when being using operation.
By the priority and resource constraint rank of setting application, the target application that control is waken up is entered into resource limit The corresponding resource constraint state of rank processed, is in a suitable degree to the resource constraint of target application to may make.
In one embodiment, as shown in figure 5, providing another application processing method, this method comprises:
Step 502, the people of unread information of the target application in frozen state is received.
Step 504, when target application meets any one or a few condition in following, determine that target application meets and wake up Whether the severity level of condition, and wake up target application, (1) people of unread information reaches pre-set level;(2) message bar of people of unread information Whether number is more than default number of branches;(3) whether current time is in preset time period;(4) whether current location is in predeterminable area It is interior.
In one embodiment, when meeting any one condition among above-mentioned four kinds of conditions, then determine to meet wake-up Condition.It is to be appreciated that the sequence of the detection of above-mentioned four kinds of conditions can be without limitation.
Step 506, the data recycled when target application is frozen are obtained;By the data load most target application point of recycling In the page matched.
In one embodiment, electronic equipment can be according to the data of the recycling pre-established and the application identities of target application Between corresponding relationship, inquire the data recycled from the target application, and the data of the recycling most target of moving back is answered With in the page of distribution, without or reduce the data volume generated by target application, improve the operation of target application Efficiency.
Step 508, the prompt information and display reminding information to people of unread information are generated, at the time of being waken up from target application Start timing.
Step 510, when timing duration reaches duration threshold value and do not trigger idsplay order, the target application being waken up is controlled Into resource constraint state.
Whether electronic equipment can detect the idsplay order generated to people of unread information within duration threshold value, if it is not, then controlling It makes the target application being waken up and enters resource constraint state, to prevent the target application not to be user-operably and occupy for a long time More resource.Wherein, it can be realized by above-mentioned resource prioritization and limitation management module and control target application is entered.
In one embodiment, after target application is waken up, and timing duration reaches duration threshold value and does not trigger aobvious When showing instruction, the total occupancy of resource that can obtain electronic equipment controls if the total occupancy of resource is more than the second occupancy threshold The target application being waken up enters resource constraint state.
Electronic equipment storage can monitor journal file in default storage address, can be obtained according to the monitoring journal file Take the total occupancy of CPU.Several sub-folders are also stored in the default storage address simultaneously, store in these sub-folders It is each to apply journal file.The variation using the practival operating condition from unlatching to current time is had recorded using journal file, The case where this is using occupied cpu resource can be obtained using journal file according to these, the CPU that can obtain application is occupied Rate.
For example, in android system, the monitoring day of the storage total occupied information of CPU can be read in/proc catalogue Will file.Wherein, multiple sub-folders are further comprised under/proc catalogue, are stored in these sub-folders in each application The process log file of the corresponding CPU occupied information of process.The file of the monitoring journal file stored in/proc catalogue is entitled " stat " stores process log file in the sub-folder in/proc catalogue, and the file of process log file is entitled "stat".Stat file under/proc catalogue has recorded total occupied information of CPU, in the sub-folder under/proc catalogue Stat file has recorded the CPU occupied information of each process.For example, the stat file under/proc/pid catalogue have recorded PID into The CPU occupied information of journey.
Electronic equipment can be with the occupancy of the resources such as real-time statistics memory, hardware, Internet resources, IO, such as is passing through The information for reading file "/proc/meminfo " can obtain the memory amount of mobile phone, and pass through ActivityManager.getMemoryInfo (ActivityManager.MemoryInfo) method it is available it is current can With amount of ram, the total occupancy of current memory then can be calculated by free memory amount and memory amount.In android system In can run top order directly to count the occupancy of the resources such as CPU, memory, IO.
In one embodiment, the corresponding priority of target application is obtained, corresponding resource constraint is obtained according to priority Rank;It controls the target application being waken up and enters the corresponding resource constraint state of resource constraint rank.
In one embodiment, the corresponding relationship of resource total occupancy and resource constraint rank can also be established.Work as resource When total occupancy is more than the second occupancy threshold, resource constraint rank is obtained according to the total occupancy of resource, then control is waken up Target application enter the corresponding resource constraint state of resource constraint rank.For example, the second occupancy threshold is 50%, then work as money When the total occupancy in source is more than 50%, the total occupancy of resource is divided into 50%~60%, 60%~80%, 80%~100% etc. Then three occupancy levels respectively correspond slight resource constraint rank, common resources limitation rank and depth resource constraint rank Equal three grades, according to the available corresponding resource constraint rank of the total occupancy of resource.It is understood that can be combined with The priority of resource total occupancy and target application, to obtain resource constraint rank.
Step 512, when detect act on prompting message and trigger to the idsplay order of people of unread information when, pass through wake-up Afterwards, the target applications of the data that are loaded with recycling show people of unread information.
Step 514, when target application is unsatisfactory for wake-up condition, target application is kept to be in frozen state.
Application processing method provided by the above embodiment is not read to believe by receiving the target application in frozen state Breath, if the target application or the unread message meet corresponding wake-up condition, wakes up the target application, and will acquire target and answer With it is frozen when the data that recycle;By in the data load of the recycling most page of target application distribution, it is somebody's turn to do with improving to pass through Target application is come when showing unread message, the operational efficiency of target application.If timing duration upon awakening reaches duration threshold value And when not triggering idsplay order, then controlling the target application being waken up enters resource constraint state, to prevent the target application mistake Resource is occupied for a long time.When people of unread information is unsatisfactory for preset wake-up condition, then keep being in the target application freezing State, to further improve the resource utilization of electronic equipment.
It is understood that being illustrated by taking Android operation system as an example to application processing method in the application, still The application processing method of the application is not limited in realizing in android system, can be applied in IOS (IPhone Operating System), Saipan, Windows, the operating systems such as MAC OS (Macintosh Operating System) In.
It should be understood that although each step in the flow chart of Fig. 3 and Fig. 5 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 3 and Fig. 5 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
In one embodiment, as shown in fig. 6, providing a kind of using processing unit, which includes that people of unread information connects It receives module 602, wake-up module 604, cue module 606, people of unread information display module 608 and keeps module 610.Wherein, not Information receiving module 602 is read, for receiving the people of unread information for being in the target application of frozen state;Wake-up module 604, for working as When target application meets wake-up condition, wake up target application;Cue module 606, for generating the prompt information to people of unread information And display reminding information;People of unread information display module 608, for when detect act on prompting message and trigger to not reading to believe When the idsplay order of breath, people of unread information is shown by the target application after waking up;Module 610 is kept, for working as target application not When meeting wake-up condition, target application is kept to be in frozen state.
In one embodiment, wake-up module 604 is also used to obtain the severity level of unread message;When severity level reaches When pre-set level, determine that target application meets wake-up condition.
In one embodiment, wake-up module 604 is also used to obtain all of target application in frozen state and does not read The message bar number of message;When message bar number reaches default number of branches, determine that target application meets wake-up condition.
In one embodiment, wake-up module 604 is also used to obtain the current space-time information of electronic equipment;Work as current space-time When information belongs to default space time information, determine that target application meets wake-up condition.
In one embodiment, as shown in fig. 7, providing another using processing unit, the device further include:
Data loading module 612 is used to obtain the data recycled when target application is frozen;The data of recycling are loaded onto In page for target application distribution.
People of unread information display module 608 is also used to show by the target application of data after waking up, to be loaded with recycling People of unread information.
In one embodiment, as shown in figure 8, providing another using processing unit, the device further include:
Using limitation module 614, for the timing since at the time of target application is waken up;When timing duration reaches duration Threshold value and when not triggering idsplay order, control the target application being waken up and enter resource constraint state;Wherein, it is in resource constraint State is applied in running background to the resources occupation rate of electronic equipment less than the first occupancy threshold.
In one embodiment, it is also used to obtain the total occupancy of resource of electronic equipment using limitation module 614;If resource Total occupancy is more than the second occupancy threshold, then controls the target application being waken up and enter resource constraint state.
In one embodiment, it is also used to obtain the corresponding priority of target application using limitation module 614, according to preferential Grade obtains corresponding resource constraint rank;It controls the target application being waken up and enters the corresponding resource constraint shape of resource constraint rank State.
Above-mentioned application processing unit can then be examined by the way that wake-up condition is arranged when target application produces people of unread information Survey target application whether meet corresponding wake-up condition, when the target application meets wake-up condition, then to the target application into Row wakes up, and user is notified to produce the prompt information of the people of unread information, when detecting pair for acting on prompting message and triggering When the idsplay order of people of unread information, then the operation is responded, which is switched to front stage operation, passes through the target after waking up Using display people of unread information, is consulted for user, if target application is unsatisfactory for corresponding wake-up condition, keep the target application In frozen state, maintain to its resource constraint, to improve the available resources of electronic equipment.By calling out target application setting The condition of waking up can prevent one having unread message then wake up target application every time, the target application in frozen state is caused frequently to produce It when raw people of unread information, needs to wake up repeatedly, is also required to occupy certain resource since terminal wakes up application, it is anti-frequently to wake up application And the available resources of electronic equipment can be reduced.
The above-mentioned division using modules in processing unit is only used for for example, in other embodiments, can will answer It is divided into different modules, as required with processing unit to complete above-mentioned all or part of function using processing unit.It closes Specific in application processing unit limits the restriction that may refer to above for application processing method, and details are not described herein.On Stating can realize using the modules in processing unit fully or partially through software, hardware and combinations thereof.Above-mentioned each module It can be embedded in the form of hardware or independently of in the processor in electronic equipment, electronic equipment can also be stored in a software form In memory in, execute the corresponding operation of above modules in order to which processor calls.
There is provided in the embodiment of the present application can be the shape of computer program using realizing for the modules in processing unit Formula.The computer program can be run on the electronic equipments such as terminal or server.The program module that the computer program is constituted can It is stored on the memory of electronic equipment.When the computer program is executed by processor, realize described in the embodiment of the present application Application processing method the step of.
In one embodiment, a kind of electronic equipment is provided, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor is realized when processor executes computer program and is answered provided by the various embodiments described above The step of with processing method.
In one embodiment, a kind of computer readable storage medium is additionally provided, on the computer readable storage medium It is stored with computer program, when which executes processor, realizes application described in each embodiment of the application The step of processing method.
In one embodiment, a kind of computer program product comprising instruction is provided, when it runs on computers When, so that computer executes application processing method described in each embodiment of the application.
The embodiment of the present application also provides a kind of computer equipments.As shown in figure 9, for ease of description, illustrate only with The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The calculating Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device are with computer equipment For mobile phone:
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided by the embodiments of the present application.With reference to figure 9, mobile phone include: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, Sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980 and The components such as power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the restriction to mobile phone, it can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 920 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 900 And the related key signals input of function control.Specifically, input unit 930 may include touch panel 931 and other inputs Equipment 932.Touch panel 931, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 980, and can receive order that processor 980 is sent and be executed.In addition, Touch panel 931 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, or Person exports audio data to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone 900, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulator, wherein the main processing operation system of application processor, user interface and application program etc.;Modem is mainly located Reason wireless communication.It is understood that above-mentioned modem can not also be integrated into processor 980.For example, the processor 980 can integrate application processor and baseband processor, baseband processor with and the composable modem such as other peripheral chips. Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through power management system It unites logically contiguous with processor 980, to realize the function such as management charging, electric discharge and power managed by power-supply management system Energy.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In the embodiment of the present application, when processor included by the mobile phone executes the computer program of storage on a memory Realize above-mentioned described application processing method.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include arbitrary access Memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, such as It is static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not Therefore it is interpreted as the limitation to the application the scope of the patents.It should be pointed out that for those of ordinary skill in the art, Without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection model of the application It encloses.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (11)

1. a kind of application processing method characterized by comprising
Receive the people of unread information of the target application in frozen state;
When the target application meets wake-up condition, the target application is waken up;
It generates the prompt information to the people of unread information and shows the prompt information;
When detect act on the prompting message and trigger to the idsplay order of the people of unread information when, after waking up Target application shows the people of unread information;
When the target application is unsatisfactory for wake-up condition, the target application is kept to be in frozen state.
2. the method according to claim 1, wherein the method also includes:
Obtain the severity level of the unread message;
When the severity level reaches pre-set level, determine that the target application meets wake-up condition.
3. the method according to claim 1, wherein the method also includes:
Obtain the message bar number of all unread messages of the target application in frozen state;
When the message bar number reaches default number of branches, determine that the target application meets wake-up condition.
4. the method according to claim 1, wherein the method also includes:
Obtain the current space-time information of electronic equipment;
When the current space-time information belongs to default space time information, determine that the target application meets wake-up condition.
5. the method according to claim 1, wherein after the wake-up target application, further includes:
Obtain the data recycled when the target application is frozen;The data of the recycling are loaded into the most described target application point In the page matched;
The target application by after waking up shows the people of unread information, comprising:
The people of unread information is shown by the target application of data after waking up, being loaded with the recycling.
6. the method according to any one of claims 1 to 5, which is characterized in that it is described wake up the target application it Afterwards, further includes:
The timing since at the time of the target application is waken up;
When timing duration reaches duration threshold value and do not trigger the idsplay order, controls the target application being waken up and enter Resource constraint state;
Wherein, applying in running background to the resources occupation rate of electronic equipment less than first in the resource constraint state Occupancy threshold.
7. according to the method described in claim 6, it is characterized in that, the target application being waken up that controls enters resource Restriction state, comprising:
Obtain the total occupancy of resource of electronic equipment;
If the total occupancy of resource is more than the second occupancy threshold, controls the target application being waken up and enter resource limit State processed.
8. according to the method described in claim 6, it is characterized in that, the target application being waken up that controls enters resource Restriction state, comprising:
The corresponding priority of the target application is obtained, corresponding resource constraint rank is obtained according to the priority;
It controls the target application being waken up and enters the corresponding resource constraint state of the resource constraint rank.
9. a kind of apply processing unit, which is characterized in that described device includes:
People of unread information receiving module, for receiving the people of unread information for being in the target application of frozen state;
Wake-up module, for waking up the target application when the target application meets wake-up condition;
Cue module, for generating the prompt information to the people of unread information and showing the prompt information;
People of unread information display module, for acting on the prompting message and showing to the people of unread information for triggering when detecting When showing instruction, the people of unread information is shown by the target application after waking up;
Module is kept, for keeping the target application to be in frozen state when the target application is unsatisfactory for wake-up condition.
10. a kind of electronic equipment, including memory and processor, computer program is stored in the memory, feature exists In when the computer program is executed by the processor, so that the processor executes such as any one of claims 1 to 8 The step of the method.
11. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program It realizes when being executed by processor such as the step of any one of claims 1 to 8 the method.
CN201810023911.4A 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium Active CN110032397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810023911.4A CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810023911.4A CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110032397A true CN110032397A (en) 2019-07-19
CN110032397B CN110032397B (en) 2023-01-31

Family

ID=67234205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810023911.4A Active CN110032397B (en) 2018-01-10 2018-01-10 Application processing method and device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110032397B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687998A (en) * 2019-09-18 2020-01-14 华为技术有限公司 Application management method and device
CN113055277A (en) * 2021-03-10 2021-06-29 维沃移动通信有限公司 Message notification method, device and storage medium
CN113781740A (en) * 2021-09-07 2021-12-10 北京石油化工学院 Method and device for event-triggered response

Citations (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110067211A1 (en) * 2009-09-18 2011-03-24 Alpine Mountain Sports, LLC Universal Lace / Cord Lock System
US20130223980A1 (en) * 2012-02-24 2013-08-29 Shape Corp. Active grill shutter vane design and vehicle system
CN103914231A (en) * 2013-01-07 2014-07-09 上海斐讯数据通信技术有限公司 Method for quickly entering application program and mobile terminal
US20140234488A1 (en) * 2013-02-15 2014-08-21 Alice Chang Beverage system, including bubble beverage, instant beverage, beverage with dissolved gas, and beverage with ingredient
WO2014146082A1 (en) * 2013-03-15 2014-09-18 Bhl Patent Holdings Llc Materials and methods for treating neuropathies and related disorders including those involving a keystone nerve
CN104866200A (en) * 2015-06-08 2015-08-26 广东欧珀移动通信有限公司 Handheld device wake-up method, handheld device wake-up device and handheld device
CN105101371A (en) * 2015-08-10 2015-11-25 上海闻泰电子科技有限公司 Mobile phone power-saving management method
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
US20160058429A1 (en) * 2014-09-03 2016-03-03 Earlysense Ltd. Pregnancy state monitoring
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN105786607A (en) * 2016-03-24 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Multi-system freezing and awakening method and device
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
CN105975162A (en) * 2016-05-31 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and touch screen terminal
CN106096450A (en) * 2016-06-21 2016-11-09 依偎科技(南昌)有限公司 A kind of application program freezing method and mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN106155777A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of background application managing device, terminal and background application management method
CN106201464A (en) * 2016-06-27 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application icon processing method freezing application and mobile terminal
CN205788149U (en) * 2015-06-07 2016-12-07 苹果公司 Electronic equipment and for showing the device of image
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106528284A (en) * 2016-10-19 2017-03-22 北京奇虎科技有限公司 Application configuration method and apparatus, and terminal device
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN106844029A (en) * 2017-01-19 2017-06-13 努比亚技术有限公司 The device and method that a kind of Android processes of Self management are freezed and thawed
CN107104877A (en) * 2016-02-29 2017-08-29 艾威梯科技(北京)有限公司 It is a kind of to add the method and system for discussing and history mutual information being obtained after group
CN107222620A (en) * 2017-05-27 2017-09-29 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of people of unread information
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN107277902A (en) * 2017-06-19 2017-10-20 努比亚技术有限公司 Terminal power consumption control method, mobile terminal and computer-readable recording medium
CN107357407A (en) * 2017-06-29 2017-11-17 联想(北京)有限公司 A kind of control method and electronic equipment, storage medium
CN107370670A (en) * 2017-09-06 2017-11-21 叶进蓉 Unread message extracts methods of exhibiting and device
CN107391120A (en) * 2017-06-30 2017-11-24 联想(北京)有限公司 One kind starts control method, electronic equipment and computer-readable recording medium
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal

Patent Citations (32)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110067211A1 (en) * 2009-09-18 2011-03-24 Alpine Mountain Sports, LLC Universal Lace / Cord Lock System
US20130223980A1 (en) * 2012-02-24 2013-08-29 Shape Corp. Active grill shutter vane design and vehicle system
CN103914231A (en) * 2013-01-07 2014-07-09 上海斐讯数据通信技术有限公司 Method for quickly entering application program and mobile terminal
US20140234488A1 (en) * 2013-02-15 2014-08-21 Alice Chang Beverage system, including bubble beverage, instant beverage, beverage with dissolved gas, and beverage with ingredient
WO2014146082A1 (en) * 2013-03-15 2014-09-18 Bhl Patent Holdings Llc Materials and methods for treating neuropathies and related disorders including those involving a keystone nerve
US20160030408A1 (en) * 2013-03-15 2016-02-04 Bhl Patent Holdings Llc Materials and methods for treating neuropathies and related disorders including those involving a keystone nerve
US20160058429A1 (en) * 2014-09-03 2016-03-03 Earlysense Ltd. Pregnancy state monitoring
CN205788149U (en) * 2015-06-07 2016-12-07 苹果公司 Electronic equipment and for showing the device of image
CN104866200A (en) * 2015-06-08 2015-08-26 广东欧珀移动通信有限公司 Handheld device wake-up method, handheld device wake-up device and handheld device
CN105101371A (en) * 2015-08-10 2015-11-25 上海闻泰电子科技有限公司 Mobile phone power-saving management method
CN105204856A (en) * 2015-09-18 2015-12-30 北京金山安全软件有限公司 Information prompting method and device and electronic equipment
CN105468426A (en) * 2016-01-05 2016-04-06 珠海市魅族科技有限公司 Application freezing method and terminal
CN107104877A (en) * 2016-02-29 2017-08-29 艾威梯科技(北京)有限公司 It is a kind of to add the method and system for discussing and history mutual information being obtained after group
CN105786607A (en) * 2016-03-24 2016-07-20 宇龙计算机通信科技(深圳)有限公司 Multi-system freezing and awakening method and device
CN105843367A (en) * 2016-03-24 2016-08-10 维沃移动通信有限公司 Application processing method and electronic device
CN105915711A (en) * 2016-04-19 2016-08-31 青岛海信移动通信技术股份有限公司 Method and device for message prompt in mobile equipment
CN105975162A (en) * 2016-05-31 2016-09-28 宇龙计算机通信科技(深圳)有限公司 Application freezing method and touch screen terminal
CN106096450A (en) * 2016-06-21 2016-11-09 依偎科技(南昌)有限公司 A kind of application program freezing method and mobile terminal
CN106201464A (en) * 2016-06-27 2016-12-07 宇龙计算机通信科技(深圳)有限公司 A kind of application icon processing method freezing application and mobile terminal
CN106125896A (en) * 2016-06-29 2016-11-16 宇龙计算机通信科技(深圳)有限公司 A kind of application program freezing method and mobile terminal
CN106155777A (en) * 2016-06-30 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of background application managing device, terminal and background application management method
CN106227844A (en) * 2016-07-27 2016-12-14 深圳市金立通信设备有限公司 The method of a kind of application recommendation and terminal
CN106528284A (en) * 2016-10-19 2017-03-22 北京奇虎科技有限公司 Application configuration method and apparatus, and terminal device
CN106569814A (en) * 2016-10-26 2017-04-19 深圳市金立通信设备有限公司 Message display method and terminal
CN106844029A (en) * 2017-01-19 2017-06-13 努比亚技术有限公司 The device and method that a kind of Android processes of Self management are freezed and thawed
CN107222620A (en) * 2017-05-27 2017-09-29 维沃移动通信有限公司 The reminding method and mobile terminal of a kind of people of unread information
CN107277902A (en) * 2017-06-19 2017-10-20 努比亚技术有限公司 Terminal power consumption control method, mobile terminal and computer-readable recording medium
CN107357407A (en) * 2017-06-29 2017-11-17 联想(北京)有限公司 A kind of control method and electronic equipment, storage medium
CN107391120A (en) * 2017-06-30 2017-11-24 联想(北京)有限公司 One kind starts control method, electronic equipment and computer-readable recording medium
CN107257417A (en) * 2017-07-21 2017-10-17 珠海市魅族科技有限公司 Message prompt method and terminal, computer installation and computer-readable recording medium
CN107479700A (en) * 2017-07-28 2017-12-15 广东欧珀移动通信有限公司 Blank screen gestural control method, device, storage medium and mobile terminal
CN107370670A (en) * 2017-09-06 2017-11-21 叶进蓉 Unread message extracts methods of exhibiting and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭毅: ""应用程序自我调度机制的设计与实现"", 《电脑编程技巧与维护》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110687998A (en) * 2019-09-18 2020-01-14 华为技术有限公司 Application management method and device
CN113055277A (en) * 2021-03-10 2021-06-29 维沃移动通信有限公司 Message notification method, device and storage medium
CN113781740A (en) * 2021-09-07 2021-12-10 北京石油化工学院 Method and device for event-triggered response

Also Published As

Publication number Publication date
CN110032397B (en) 2023-01-31

Similar Documents

Publication Publication Date Title
CN110008008A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109144232A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN108112063A (en) Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN109992370A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110018904A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110018902A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN109992393A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN109992438A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992523A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN110018900A (en) Internal memory processing method and device, electronic equipment, computer readable storage medium
CN110018901A (en) Method for recovering internal storage, device, computer equipment and computer readable storage medium
CN110045809A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032431A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110032321A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992397A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110032266A (en) Information processing method, device, computer equipment and computer readable storage medium
CN110032397A (en) Application processing method and device, electronic equipment, computer readable storage medium
CN110032439A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN110018905A (en) Information processing method, device, computer equipment and computer readable storage medium
CN109992380A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN110032429A (en) Information processing method, device, mobile terminal and computer readable storage medium
CN110018903A (en) Method for managing resource, device, mobile terminal and computer readable storage medium
CN109992309A (en) Applied program processing method and device, electronic equipment, computer readable storage medium
CN109992360A (en) Process handling method and device, electronic equipment, computer readable storage medium
CN110018886A (en) Application state switching method and apparatus, electronic equipment, readable storage medium storing program for executing

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant