CN107368326A - Course control method and device - Google Patents
Course control method and device Download PDFInfo
- Publication number
- CN107368326A CN107368326A CN201610318681.5A CN201610318681A CN107368326A CN 107368326 A CN107368326 A CN 107368326A CN 201610318681 A CN201610318681 A CN 201610318681A CN 107368326 A CN107368326 A CN 107368326A
- Authority
- CN
- China
- Prior art keywords
- application
- specified
- pending information
- application process
- monitoring
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44594—Unloading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5022—Mechanisms to release resources
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/509—Offload
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application provides a kind of course control method and device, this method includes:Monitoring current time specified application whether there is pending information;When monitoring that the specified application has pending information, determine to be in running status in terminal and be not belonging to the application process set of the specified application, the application process set includes at least one application process;At least one intended application process for meeting preparatory condition is determined from the application process set;Terminate the operation of the intended application process.This method and device can improve the promptness and reliability that user handles pending information in application program.
Description
Technical field
The application is related to network communication technology field, more particularly to a kind of course control method and device.
Background technology
With the increasingly variation of application service, a variety of offers can be all typically installed on a station terminal
The application program of different application service.After running application program in terminal, if user needs
When handling pending information using the application program, user can open user circle of the application program
Face, and the pending information is handled in the user interface.
However, multiple application programs may be run in synchronization terminal so that the internal memory of terminal
Occupancy etc. resource is higher, and so, the processing that pending information when some application program be present needs
When asking, during user opens the user interface of application program or handles the pending information,
May occur user can not the timely processing pending information situation, or even occur due to waiting to locate
The situation that reason information is overtime and can not be processed.
The content of the invention
This application provides a kind of course control method and device, and application program is handled to improve user
In pending information promptness and reliability.
In order to solve the above problems, on the one hand, this application provides a kind of course control method, and this enters
Process control method includes:
Monitoring current time specified application whether there is pending information;
When monitoring that the specified application has pending information, determine in terminal in operation
State and the application process set for being not belonging to the specified application, the application process set bag
Include at least one application process;
Determine to meet that at least one intended application of preparatory condition is entered from the application process set
Journey;
Terminate the operation of the intended application process.
On the other hand, present invention also provides a kind of progress control unit, including:
Program monitoring unit, it whether there is pending letter for monitoring current time specified application
Breath;
Process determining unit, for when monitoring that the specified application has pending information,
Determine to be in running status in terminal and be not belonging to the application process set of the specified application,
The application process set includes at least one application process;
Process screening unit, for determine to meet from the application process set preparatory condition to
A few intended application process;
Process terminates unit, for terminating the operation of the intended application process.
As known from the above, the application is when monitoring that specified application has pending information, meeting
Application process set that is that terminal is currently run and being not belonging to the specified application is determined, and is terminated
Meet at least one intended application process of preparatory condition in the application process set, so as to release
Resource, the resources for reducing terminal such as the shared internal memory of intended application process operation, processor is put to account for
Dosage, reduce terminal and the situation of interim card occur, timely and effectively handling this so as to being advantageous to user treats
Processing information, improve the reliability for handling pending information.
Brief description of the drawings
In order to illustrate more clearly of the technical scheme in the embodiment of the present application, embodiment will be retouched below
The required accompanying drawing used is briefly described in stating, it should be apparent that, drawings in the following description
Only some embodiments of the present application, for those of ordinary skill in the art, do not paying
On the premise of creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 shows a kind of schematic flow sheet of course control method one embodiment of the application;
Fig. 2 shows a kind of schematic flow sheet of another embodiment of course control method of the application;
Fig. 3 shows a kind of schematic flow sheet of another embodiment of course control method of the application;
Fig. 4 shows that the flow interaction under a kind of the application one application scenarios of course control method is shown
It is intended to;
Fig. 5 shows the flow signal under a kind of another application scenarios of course control method of the application
Figure;
Fig. 6 shows a kind of structural representation of progress control unit one embodiment of the application;
Fig. 7 shows a kind of hardware structure schematic diagram of terminal one embodiment of the application.
Embodiment
The business scenario of description of the embodiment of the present invention is to more clearly illustrate the embodiment of the present invention
Technical scheme, do not form the restriction for technical scheme provided in an embodiment of the present invention, ability
Domain those of ordinary skill understands, with the differentiation of the network architecture and the appearance of new business scene, this hair
The technical scheme that bright embodiment provides is equally applicable for similar technical problem.
In order to make it easy to understand, the application scenarios of the embodiment of the present application are simply introduced.The application
The control method of embodiment can apply to terminal, and the terminal can be mobile terminal, as mobile phone,
Tablet personal computer etc..Certainly, the terminal can also be computer, notebook computer etc..
Terminal can be at least one Application Monitoring for being specified in the terminal, to specify application
When program has pending information, the application process of the terminal operating is cleared up, terminates and meets
The operation of the application process of preparatory condition, to reduce the occupancy of the resources such as internal memory in terminal, processor
, there is the situation of interim card so as to reduce user and handle in amount in the pending information process, and then can be with
Improve promptness and reliability that user handles pending information.
It is understood that when specified application difference, the specified application it is pending
Information would also vary from, if specified application can be instant messaging application, the pending letter
Breath can be red packet message pending in instantaneous communication system;And for example, the specified application can
Think mailbox application, the pending information can be mail.
Below in conjunction with the accompanying drawing in the embodiment of the present application, to the technical scheme in the embodiment of the present application
It is clearly and completely described.
Referring to Fig. 1, it illustrates a kind of signal of the flow of course control method one embodiment of the application
Figure, the method for the present embodiment can apply to the terminals such as mobile phone, tablet personal computer.The side of the present embodiment
Method can include:
101, monitoring current time specified application whether there is pending information.
Wherein, the specified application of monitoring can be preassigned one or more application programs.
Such as, before the step 101, the application program that user specifies can be received, and user is specified
Application program as the specified application that monitors of needs.For example, user by click on or from
The mode selected in list specifies one or more application programs, or, some can be given tacit consent to
Or multiple application programs are specified application, and are set and whether opened to silent as needed by user
The monitoring for the specified application recognized.
It is of course also possible to be application program using front stage operation is currently at as specified application.
Pending information can be understood as needing present in specified application the task that user handles,
Message or request etc..When specified application difference, the pending information would also vary from,
Such as, the pending information can be that red packet message to be processed is needed in instant messaging application, and mailbox should
Mail received in etc..
102, when monitoring that the specified application has pending information, determine to be in terminal
Running status and the application process set for being not belonging to the specified application.
Wherein, the application process set includes at least one application process.
It is understood that the application process for being not belonging to the specified application refers to that being not belonging to operation is somebody's turn to do
Process needed for specified application.Due to not including belonging to the specified application in application process set
The application process set of program, so, in the process of termination, can excluding to belong to operation, this is specified
Process needed for application program, to maintain the normal operation of the specified application.
Optionally, in order to avoid the process of the application program due to front stage operation is terminated, and have influence on
The normal operation behavior of user, the application process in the application process set determined can be terminals
In in running background and be not belonging to the application process of the specified application.
103, at least one intended application for meeting preparatory condition is determined from the application process set
Process.
The application process that the intended application process belongs in the application process set, it is only for be easy to
Distinguish, will meet that the application process of preparatory condition is referred to as intended application and entered in the application process set
Journey.
Wherein, the preparatory condition can be set as needed.
, can be pre- according to the stock number of application process occupancy, setting in a kind of possible implementation
If condition., can be by order to reduce the occupancy of the resource such as internal memory in terminal to greatest extent
The order of shared stock number from high to low is run according to application process, in application processes set
Application process is ranked up, then preparatory condition can be to take the forward specified numerical digit of stock number sequence
Application process.For example, sequence is in the application process of first 10.The preparatory condition can also be
The most specified quantity application process of the stock number of occupancy.Certainly, in actual applications, also may be used
To set the threshold value of resource occupation amount, then it can select shared stock number and exceed predetermined threshold value
Intended application process.
In alternatively possible implementation, duration can be not used according to application process, setting is pre-
If condition.Wherein, when application process is in the duration of background operation state and can reflect unused
Long, it is longer to be in the duration of background operation state when application process, then illustrates the current time application
The importance of process is smaller.Specifically, can be according to application process background operation state when
Application process sequence in long application processes set from high to low, then preparatory condition can be sequence
Application process in preceding specified numerical digit.For example, it will can be transported in application process set in backstage
Most long preceding 10 application processes of the duration of row state are as intended application process.
Certainly, preparatory condition is that other situations are applied equally to the application.It should be noted that with
On be to be situated between exemplified by being set according to a kind of operational factor of application process by preparatory condition
Continue, but in actual applications, it can be a variety of default bars more than meeting to determine intended application process
The application process of part.Such as, meet that preparatory condition can be needed for intended application process:Resource occupation
Before the sequence of duration of the sequence of amount in the preceding first specified digit and in background operation state is in
Second specifies the application process of digit, wherein, the sequence of resource occupation amount refer to resource occupation amount from
High to Low sequence, and the sequence of the duration in background operation state is also in running background shape
The sequence of the duration of state from high to low.Wherein, first digit is specified to specify digit can root with second
According to needing to set any number, this first specify digit and the second specified digit can with it is identical can also
It is different.
It is understood that in actual applications, some application processes are probably that user is not intended to terminate
Application process, therefore even if the application process meets preparatory condition, should not also terminate the application
The operation of process., can also be pre- in order to reduce the situation for terminating the application process that user wishes maintenance
First setting is forbidden terminating process list, e.g., white list, can be wrapped in termination process list is forbidden
The title of one or more application processes is included, e.g., this forbids termination process list can be pre- by user
First set or determined by terminal according to the use habit of user.In that case, from
Determine to meet that at least one intended application process of preparatory condition specifically may be used in the application process set
Think:Determine that being not belonging to this forbids terminating process list and meet default from application process set
At least one intended application process of condition.
Such as, determine to be not belonging to this from application process set to forbid terminating process list, and after being in
Intended application process of the sequence of the duration of platform operation in preceding specified digit.
104, terminate the operation of the intended application process.
For any one the intended application process determined in step 103, it is required to terminate and is somebody's turn to do
The operation of intended application process.
Wherein, terminate the mode of the operation of the intended application process can have it is a variety of.
Such as, the root authority is obtained when the client that terminal has root authority and monitors application possesses
In the case of, the intended application process can be terminated by running the operating system command specified
Operation.For example, operating system command can be as follows:
script.append("service call activity 79s16"+pkg);
Wherein, No. 79 of above operating system command expression call operation system activityManager
Order to clear up intended application process, s16 represents that parameter is character string type;Pkg represents the target
The packet name of application process.
And for example, when terminal does not possess root authority, the use that can be provided by call operation system
In the interface of clean up process, the operation of the intended application process is terminated.For example, system is operated with Android
Exemplified by system, the cleaning interface that the operating system provides can be as follows:
mActivityManager.restartPackage(pkg);
Wherein, pkg represents the packet name of the intended application process.
Certainly, there can also be other modes for terminating application process operation in actual applications, herein not
It is any limitation as.
In the embodiment of the present application, when monitoring that specified application has pending information, meeting
Application process set that is that terminal is currently run and being not belonging to the specified application is determined, and is terminated
Meet at least one intended application process of preparatory condition in the application process set, so as to release
Resource, the resources for reducing terminal such as the shared internal memory of intended application process operation, processor is put to account for
Dosage, reduce terminal and the situation of interim card occur, so as to be advantageous to user in time and smoothly handle be somebody's turn to do
Pending information, improve the reliability for handling pending information.
It is understood that in the application any one embodiment of the method, it is timely for the ease of user
Recognize pending information present in the specified application, should further to improve user's processing
The promptness of pending information, can when monitoring that the specified application has pending information
To export the prompting message to the pending information.Wherein, the prompting message is used to prompt user should
The pending information in specified application be present.
The form of prompting message output can have a variety of, e.g., can pass through voice output prompting message;
Can also be that the signal language for including the prompting message is exported in display interface.
It is understood that in the embodiment of the present application, during specified application difference, application is specified
Program has that pending information would also vary from, and monitors the specified application accordingly
Various ways may also be had with the presence or absence of the mode of pending information.
It is right respectively with reference to Fig. 2 and Fig. 3 for the ease of understanding the monitor mode of the embodiment of the present application
Two kinds of monitor modes of the embodiment of the present application are introduced.
Referring to Fig. 2, it illustrates a kind of flow of another embodiment of course control method of the application to show
It is intended to, the method for the present embodiment is applied to terminal, and the method for the present embodiment can include:
201, whether monitor operating system receives the pending information sent to the specified application.
It is understood that operating system can receive the letter that any application is sent into terminal
Breath, and the information sent to application program is transmitted to corresponding application program from operating system.Cause
This, whether the embodiment of the present application can be received by monitor operating system to the specified application
The pending information sent, determines that the specified application whether there is pending information.
Specifically, can be with the interface intercommunication of operating system, what acquisition operating system received is needed
Processing information, and analyse whether the pending information sent to the specified application be present.
Wherein, the pending information can also have a variety of possibility:
In a kind of scene, the specified application can be mailbox application, then can monitor operation system
Whether system receives the mail sent to the specified application.
Optionally, it is contemplated that after specified application receives red packet message, user needs to click in time
The red packet mark carried in the red packet message, with request server according to corresponding to the red packet message it is golden
Volume is determined to distribute to the amount of money of the user, realized " robbing red packet ", once there is interim card, user in mobile phone
" red packet " may can not be just got, cause red packet message to fail.Therefore, the embodiment of the present application is especially
Suitable for the scene that pending information is red packet message.Accordingly, can with monitor operating system whether
Receive to specified application send red packet message, with monitor operating system receive to
During the red packet message that the specified application is sent, frequency of use is low in cleaning terminal or takes money
Higher application process is measured in source, to reduce the situation of terminal interim card, improves the fluency of terminal, from
And improve the success rate that user robs red packet.
202, when monitor operating system receive to the specified application send pending information
When, determine to be in running status in terminal and be not belonging to the application process set of the specified application.
Wherein, the application process set includes at least one application process.
203, at least one intended application for meeting preparatory condition is determined from the application process set
Process.
204, terminate the operation of the intended application process.
Above step 202 to step 204 may refer to the related introduction of above any one embodiment,
It will not be repeated here.
It is similar to preceding embodiment, in the embodiment of the present application, when monitor operating system receive to
During the pending information that the specified application is sent, it can also export and the pending information is carried
Awake information.
Particularly, when pending information is red packet message, the prompting to the red packet message can be exported
Information.Wherein, the prompting message is used to prompting to exist in user's specified application pending
The red packet message.
Certainly, the prompting message can also include the caller information of the red packet message, such as sender
Account or user name etc..
Referring to Fig. 3, it illustrates a kind of flow of another embodiment of course control method of the application to show
It is intended to, the method for the present embodiment can apply to terminal, and the method for the present embodiment can include:
301, the time difference for monitoring current time and preset generation moment, whether to meet the scheduled time poor
Condition.
Wherein, the preset generation moment be specified application exist pending information when
Carve.The preset generation moment can be one or more moment.Because specified application can have
It is multiple, can be different at the time of each specified application has pending information, therefore, each
The application program specified can correspond to the different generation moment respectively or time list occurs.
It is understood that the scheduled time difference condition can include:Current time reaches preset hair
The raw moment.In this kind of situation, be using the preset generation moment as need clear up terminal in apply
At the time of process, when reaching the generation moment, to automatically determine in terminal in running status and
The application process set of the specified application is not belonging to, and clears up in application process set and meets in advance
If the application process of condition.
Optionally, in order to which when specified application has pending information, user being capable of timely processing
The pending information, the scheduled time difference condition can include:Current time is located at preset generation
Before moment, and the time difference reaches specified duration.So, if current time and preset generation
The time difference at moment meets the predetermined time difference condition, then can determine in the specified application
In the presence of need pending information to be processed, and the behaviour of follow-up termination destination application can be performed
Make, so as to which application processes are cleared up before specified application has pending information.
It is understood that under many circumstances, at the time of pending information being present in specified application
Being can be with predetermined, therefore, it may be predetermined that goes out specified application and pending letter be present
Each generation moment of breath, and preset each generation moment.For example, record is pre- in the form of a list
The each generation moment put.
In the case of one kind is possible, pending information can be that at least one Target Enterprise be referred to based on this
Determine the red packet message that the application server of application program is sent out, accordingly, can be pre- in terminal
Put application server of the Target Enterprise based on the specified application outwards provide red packet message when
Carve, for example, list at the time of a Target Enterprise transmission red packet message can be set.The moment
Contained in list the Target Enterprise based on the application server outwards provide one of red packet message or
Multiple moment.
For example, CCTV's Spring Festival Party live period, can pass through application service in specified at the time of point
Device is sent out red packet message, and therefore, terminal arranges at the time of can providing red packet message with preset CCTV
Table.If in current time and the time list sometime between time difference when meeting default
Between poor condition, then can current time in the terminal program process clear up, so as to
, can be in advance to end at the time of upper CCTV's granting red packet message or before CCTV's transmission red packet message
Application process in end is cleared up, and so, when CCTV provides red packet message, user can be with
The red packet message for asking CCTV to send in time using terminal.
Wherein, the preset generation moment can be that terminal determines according to network data analysis, also may be used
To be at the time of going out the generation moment by server analysis after list, the time list is sent to end
End.Certainly, list can also be matched somebody with somebody in advance by user at the time of should including the preset generation moment
Put in the terminal.
302, when monitoring that it is poor that time difference of the current time with the preset generation moment meets the scheduled time
Condition, determine to be in running status in terminal and be not belonging to the application process collection of the specified application
Close.
Wherein, the application process set includes at least one application process.
303, at least one intended application for meeting preparatory condition is determined from the application process set
Process.
304, terminate the operation of the intended application process.
Above step 302 to step 304 may refer to the related introduction of above any one embodiment,
It will not be repeated here.
It is similar to preceding embodiment, in the embodiment of the present application, when monitor current time with it is preset
When the time difference at generation moment meets predetermined time difference condition, it can also export to the pending letter
The prompting message of breath.Wherein, the prompting message is used to remind user that the specified application is pre- at this
Pending information be present in the generation moment put.
Certainly, in actual applications, whether terminal can also monitor current time when being preset generation
Carve, and when current time is the preset generation moment, export to prompting message, the prompting message
For prompting user's current time specified application pending information to be present.
Particularly, when pending information is that the red packet that Target Enterprise is sent out by application server disappears
During breath, Target Enterprise can be exported and send red packet message or Target Enterprise by the preset generation
Moment sends the prompting message of red packet message.Wherein, the prompting message is used to prompt user in the hair
The raw moment can be sent to application server by specified application and be asked, to ask the target to be looked forward to
The red packet message of industry.
It is understood that in the application any of the above one embodiment, monitoring to specify application
After program has pending information, the health information at the terminal current time can also be detected,
The health information can reflect the performance of present terminal.Such as the health information can wrap
Include:The current load value of terminal, EMS memory occupation ratio etc..
If the running state information at terminal current time shows that the current performance of terminal is not suitable for processing
The pending information of specified application, then perform and determine to be in running status in terminal and be not belonging to
The application process set of the specified application, and terminate the target in the application process set and answer
With the operation of process.Wherein, the current performance of terminal is not suitable for handling treating for the specified application
Processing information can have a variety of situations, and e.g., load value exceedes predetermined threshold value in terminal, or, eventually
EMS memory occupation ratio exceedes preset value etc. in end.
It is understood that in the application any of the above one embodiment, this is specified in output should
After the prompting message that pending information in program be present, if detecting that user clicks on the prompting
Information, then the specified interface that may be coupled in the specified application, this specifies interface to use
Family handles the pending information.
It is understood that in the application above example, the terminal can be understood as monitoring application
The client at place, monitoring application are responsible for the other application outside monitoring application in the terminal
Program is monitored, and when specified application has pending information, to being not belonging in terminal
With the specified application and meeting that the application process of preparatory condition is terminated.Such as, when terminal is
During mobile phone, the monitoring application can be the application such as mobile phone pipe man.
It is real to the application with reference to specific application scenarios for the ease of understanding the embodiment of the present application
The method for applying example is introduced.
Triggering terminal is sent the message to terminal with server first and monitors that specified application is present
Pending information, and be introduced exemplified by the scene cleared up of application processes.
Referring to Fig. 4, it illustrates a kind of flow of another embodiment of course control method of the application to show
It is intended to, assumes that server is red packet server in the present embodiment, the specified application is terminal
In instant messaging application.The method of the embodiment of the present application is applied to the terminal where monitoring application.
The method of the present embodiment can include:
401, the message that monitoring receives using monitor operating system, and detect whether operating system connects
Receive the red packet message sent to instant messaging application.
In the embodiment of the present application, monitoring application is it can be appreciated that the client at monitoring application place.
Monitoring application can be established with the interface of operating system and connected, and what acquisition operating system received disappears
Breath, and the message that operating system receives is analyzed, to be answered with the presence or absence of to the instant messaging
With the red packet message of transmission.
It is understood that the red packet message in the embodiment of the present application refers to carry disappearing for red packet mark
Breath, user can be distributed corresponding to the red packet message by clicking on the red packet mark with request server
The part or all of amount of money in the amount of money.
402, it is red that operating system intercepts and captures the client transmission that instant communication server is applied to instant messaging
Bag message.
It is understood that the red packet that instant messaging application of the red packet server into the terminal is sent disappears
Breath can be intercepted and captured by operating system, and analyze the purpose recipient of the red packet message by operating system as eventually
The application of which of end.
403, monitoring application determines that operating system receives the red packet sent to instant messaging application and disappeared
Be present the prompting message of red packet message in breath, output instant messaging application, and determine in terminal in fortune
Row state and the application process set for being not belonging to instant messaging application.
Wherein, the application process set includes at least one application process.
Monitoring application detects that operating system receives the red packet message sent to instant messaging application
When, prompting message can be exported, to prompt to have red packet prompting letter in user's instant messaging application
Breath.For example, prompting message can be exported into the display interface of terminal, to prompt user, or
Pass through auditory tone cues user.
404, monitoring application from the application process set, determine shared stock number from height to
Low sequence is in preceding specified numerical digit, and the duration in background operation state is to sequence on earth
At least one intended application process in preceding specified numerical digit.
It should be noted that in order to make it easy to understand, preparatory condition is shared by application process in the present embodiment
The sequence of stock number from high to low is in preceding specified numerical digit, and in background operation state when
It is introduced exemplified by long numerical digit specified before being in sequence on earth.But the preparatory condition is it
He is applied equally to the present embodiment at situation.
405, monitoring application terminates the operation of the intended application process.
Specifically, monitoring application can be by running the operating system command specified, terminating the target should
With the operation of process;Or monitoring application is used for clean up process by what call operation system provided
Interface, terminate the operation of the intended application process.
In the present embodiment, while monitoring application output prompting message, can determine whether to be in terminal
The application process set of running status, and terminate target at least one in the application process set and answer
With process, so, before user sees the prompting message, terminal just has begun to enter application
Cheng Jinhang is cleared up, so as to be advantageous to, when user handles the red packet message according to the prompting message, subtract
The quantity for the application process run in few terminal, lower the resource occupation amount of terminal, so as in user
Handle red packet message during, reduce terminal there is the situation of interim card, be advantageous to improve user into
Work(robs the probability of red packet.
406, when operating system determines that the purpose recipient of the red packet message applies for instant messaging,
The red packet message is sent to the instant messaging application.
After operating system intercepts and captures the message that the application program into terminal is sent, the message can determine whether
Which application program purpose recipient is, and forwards that message to corresponding application program.
It should be noted that the step 406 can perform with step 403-405 simultaneously, Fig. 4 is only
Merely to description is convenient to be put into most introducing later for flow by the step 406.
It is understood that the present embodiment for the ease of description, using specified application as instant messaging
It is introduced exemplified by, but when specified application is other application, specifically controlled
Journey is still similar for the present embodiment, will not be repeated here.
Determine that specified application has pending information using itself below with the monitoring in terminal
Exemplified by be introduced, in this kind of scene, specified application exist pending information can be by
Monitoring application determines, sending the message to that monitoring application determines to specify to terminal without server should
Pending information with program be present.
In one implementation, there can be pending information with the preset specified application in terminal
The generation moment, so, monitoring application detects that time difference at current time and the generation moment expires
Sufficient scheduled time difference condition, to judge that current time needs application processes to be cleared up.
Such as, the specified application can be alarm clock or notepad etc., then specified application is to be output
Alarm clock or remind at the time of can be understood as the preset generation moment, if current time with it is preset
The time difference that the moment occurs meets scheduled time difference condition, then can determine that this is specified with terminal and answer
Pending information be present with program, it is necessary to which application processes are cleared up, to terminate the specified application
Part or all of application process outside program.
And for example, specified application pending information be present can be with specified application in preset generation
The red packet message that moment can be sent with request target enterprise by server.
Still it is introduced below so that specified application is instant messaging application as an example.Referring to Fig. 5, its
Show a kind of schematic flow sheet of another embodiment of course control method of the application.The present embodiment
The monitoring application that can apply in terminal of method.The method of the present embodiment includes:
501, when monitoring current time can ask the generation of red packet message with preset instant messaging application
Whether scheduled time difference condition is met between quarter.
Wherein, it is at least that the preset instant messaging application, which can ask the generation moment of red packet message,
The red packet message that one Target Enterprise is sent out based on the server that the instant messaging is applied when
Carve.Wherein, the generation moment can be one or more moment.
Wherein, the scheduled time difference condition can be:Current time reaches the preset Target Enterprise and led to
At the time of crossing the server of the instant messaging and be sent out red packet message.
Optionally, before at the time of being sent out red packet message by the server for Target Enterprise,
Terminal can complete the cleaning of process, to cause end in good operation conditions, so that
User can ask the red packet message to server in time by instant messaging application, the pre- timing
Between poor condition can be:Current time was located at before the preset generation moment, and the time difference reaches finger
Timing is long.For example, Target Enterprise is originally at night 8:00 is sent out red packet by the server,
The preset generation moment can be evening 8 in monitoring application:00, then monitoring application can be with night 7:55
Timesharing, just determining that the instant messaging applies to exist needs red packet message to be processed, it is necessary to in terminal
Process make requests on, and perform the operation of subsequent step.
502, when monitoring that current time and preset instant messaging application can ask the hair of red packet message
Meet scheduled time difference condition between the raw moment, export for prompting the instant messaging to exist in applying
The prompting message of demandable red packet message, and determine to be in running status in terminal and be not belonging to this
The application process set of instant messaging application.
Wherein, the application process set includes at least one application process.
It is understood that in actual applications, prompting first can not also be exported in the step 502
Information, then when monitoring application detects that current time can ask red packet message for instant messaging application
During the generation moment, output current time instant messaging application can ask the prompting of red packet message.When
So, in actual applications, it can also be while step 502 exports prompting message, reach
When the instant messaging application can ask the generation moment of red packet message, prompt message is also exported.
503, determined from the application process set at the sequence of shared stock number from high to low
In preceding specified numerical digit, and the duration in background operation state is in preceding specified to sequence on earth
At least one intended application process of numerical digit.
504, terminate the operation of the intended application process.
505, when detecting that user carries out predetermined registration operation to prompting message, it is linked to the instant messaging
The red packet requests for page of application.
Wherein, the step 505 is optional step.The step can be located at after the step 502, but
Being can be with step 503 and 504 while performing.
Wherein, the red packet requests for page of instant messaging application is linked to, can be should to instant messaging
With designated order is sent, the designated order is used to indicate that instant messaging application shows red packet requests for page.
A kind of progress control unit provided in an embodiment of the present invention is introduced below, is described below
A kind of control device can be with a kind of above-described course control method mutually to should refer to.
Referring to Fig. 6, it illustrates a kind of structural representation of progress control unit one embodiment of the application
Figure, the device of the present embodiment can apply to terminal, and the device can include:
Program monitoring unit 601, for monitoring current time specified application with the presence or absence of pending
Information;
Process determining unit 602, monitor that the specified application has pending information for working as
When, determine to be in running status in terminal and be not belonging to the application process collection of the specified application
Close, the application process set includes at least one application process;
Process screening unit 603, for determining to meet preparatory condition from the application process set
At least one intended application process;
Process terminates unit 604, for terminating the operation of the intended application process.
Optionally, in the embodiment of any one device of the application, the device can also include:
Output unit is reminded, for when monitoring that the specified application has pending information,
The prompting message to the pending information is exported, the prompting message is used to prompt finger described in user
Determine application program and the pending information be present.
In a kind of possible implementation, described program monitoring unit, it can include:
Whether the first monitoring subelement, receive to the specified application for monitor operating system
The pending information sent.
Optionally, whether the first monitoring subelement for monitor operating system specifically, receive
The red packet message sent to the specified application.
In alternatively possible implementation, described program monitoring unit, it can include:
Second monitoring subelement, for monitor current time and preset generation moment time difference whether
Meet scheduled time difference condition, the scheduled time difference condition includes:Current time reaches described pre-
The generation moment put;Or current time was located at before the preset generation moment, and the time
Difference reaches specified duration;The preset generation moment is that specified application has pending information
At the time of.
Optionally, the object time is application service of the Target Enterprise based on the specified application
At the time of device outwards provides red packet message.
Optionally, in the embodiment of one device of any of the above, the institute in the process screening unit
Stating preparatory condition includes:Sequence is in preceding specified numerical digit;
Wherein, the sequence is including being:
According to the sequence of the shared stock number of application process operation from high to low;
And/or it is in the sequence of the duration of background operation state from high to low according to application process.
Optionally, in the embodiment of one device of any of the above, the process terminates unit, specifically
For:For by running the operating system command specified, terminating the operation of the intended application process;
Or the interface for clean up process provided by call operation system, terminating the target should
With the operation of process.
Optionally, in the embodiment of one device of any of the above, described device can also include:
Program setting unit, for monitoring current time specified application in described program monitoring unit
Before pending information, the specified application that user specifies is received.
The embodiment of the present invention additionally provides a kind of terminal, and the terminal can be entered including one kind described above
Process control method.
Fig. 7 shows the hardware block diagram of terminal, reference picture 7, and terminal 700 can include:Place
Manage device 701, communication interface 702, memory 703 and communication bus 704;
Wherein processor 701, communication interface 702, memory 703 are completed by communication bus 704
Mutual communication;
Optionally, communication interface 702 can be the interface of communication module, such as the interface of gsm module;
Processor 701, for configuration processor;
Memory 703, for depositing program;
Program can include program code, and described program code includes computer-managed instruction.
Processor 701 is probably a central processor CPU, or specific integrated circuit ASIC
(Application Specific Integrated Circuit), or it is arranged to implement the present invention in fact
Apply one or more integrated circuits of example.
Memory 703 may include high-speed RAM memory, it is also possible to also including non-volatile memories
Device (non-volatile memory), for example, at least a magnetic disk storage.
Wherein, program can be specifically used for:
Monitoring current time specified application whether there is pending information;
When monitoring that the specified application has pending information, determine in terminal in operation
State and the application process set for being not belonging to the specified application, the application process set bag
Include at least one application process;
Determine to meet that at least one intended application of preparatory condition is entered from the application process set
Journey;
Terminate the operation of the intended application process.
Each embodiment is described by the way of progressive in this specification, and each embodiment stresses
Be all difference with other embodiment, the identical mutual coherent of similar portion between each embodiment
See.For device disclosed in embodiment, due to its with embodiment disclosed in method it is relative
Should, so description is fairly simple, related part is referring to method part illustration.
Professional further appreciates that, is described with reference to the embodiments described herein
The unit and algorithm steps of each example, can be with electronic hardware, computer software or the knot of the two
Close to realize, in order to clearly demonstrate the interchangeability of hardware and software, in the above description
The composition and step of each example are generally described according to function.These functions actually with hardware also
It is software mode to perform, application-specific and design constraint depending on technical scheme.Specialty
Technical staff can realize described function using distinct methods to each specific application,
But this realization is it is not considered that beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, can be directly with hard
The software module of part, computing device, or the two combination are implemented.Software module can be put
In random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM,
Electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology
In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or make
With the present invention.A variety of modifications to these embodiments will be for those skilled in the art
It will be apparent that generic principles defined herein can not depart from the spirit or model of the present invention
In the case of enclosing, realize in other embodiments.Therefore, the present invention is not intended to be limited to herein
These shown embodiments, and be to fit to consistent with principles disclosed herein and features of novelty
Most wide scope.
Claims (12)
- A kind of 1. course control method, it is characterised in that including:Monitoring current time specified application whether there is pending information;When monitoring that the specified application has pending information, determine in terminal in operation State and the application process set for being not belonging to the specified application, the application process set bag Include at least one application process;Determine to meet that at least one intended application of preparatory condition is entered from the application process set Journey;Terminate the operation of the intended application process.
- 2. according to the method for claim 1, it is characterised in that also include:When monitoring that the specified application has pending information, export to the pending letter The prompting message of breath, the prompting message are used to prompt described in specified application presence described in user Pending information.
- 3. according to the method for claim 1, it is characterised in that the monitoring current time refers to Determine application program and whether there is pending information, including:Whether monitor operating system receives the pending information sent to the specified application.
- 4. according to the method for claim 3, it is characterised in that the monitor operating system is The no pending information received to specified application transmission, including:Whether monitor operating system receives the red packet message sent to the specified application.
- 5. according to the method for claim 1, it is characterised in that the monitoring current time refers to Determine application program and whether there is pending information, including:Whether the time difference at monitoring current time and preset generation moment meets scheduled time difference condition, The scheduled time difference condition includes:Current time reaches the preset generation moment, or, Current time was located at before the preset generation moment, and the time difference reaches specified duration;It is described At the time of the preset generation moment is that specified application has pending information.
- 6. according to the method for claim 5, it is characterised in that the preset generation moment For application server of the Target Enterprise based on the specified application outwards provide red packet message when Carve.
- 7. according to the method described in any one of claim 1 to 6, it is characterised in that described default Condition includes:Sequence is in preceding specified numerical digit;Wherein, the row being ordered as according to the shared stock number of application process operation from high to low Sequence;And/or it is in the sequence of the duration of background operation state from high to low according to application process.
- A kind of 8. progress control unit, it is characterised in that including:Program monitoring unit, it whether there is pending letter for monitoring current time specified application Breath;Process determining unit, for when monitoring that the specified application has pending information, Determine to be in running status in terminal and be not belonging to the application process set of the specified application, The application process set includes at least one application process;Process screening unit, for determine to meet from the application process set preparatory condition to A few intended application process;Process terminates unit, for terminating the operation of the intended application process.
- 9. device according to claim 8, it is characterised in that also include:Output unit is reminded, for when monitoring that the specified application has pending information, The prompting message to the pending information is exported, the prompting message is used to prompt finger described in user Determine application program and the pending information be present.
- 10. device according to claim 8, it is characterised in that described program monitoring unit, Including:Whether the first monitoring subelement, receive to the specified application for monitor operating system The pending information sent.
- 11. device according to claim 8, it is characterised in that described program monitoring unit, Including:Second monitoring subelement, for monitor current time and preset generation moment time difference whether Meet scheduled time difference condition, the scheduled time difference condition includes:Current time reaches described pre- The generation moment put, or, current time was located at before the preset generation moment, and the time Difference reaches specified duration;The preset generation moment is that specified application has pending information At the time of.
- 12. according to the device described in any one of claim 8 to 11, it is characterised in that it is described enter The preparatory condition in journey screening unit includes:Sequence is in preceding specified numerical digit;Wherein, it is described to be ordered as:According to the sequence of the shared stock number of application process operation from high to low;And/or it is in the sequence of the duration of background operation state from high to low according to application process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610318681.5A CN107368326A (en) | 2016-05-13 | 2016-05-13 | Course control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610318681.5A CN107368326A (en) | 2016-05-13 | 2016-05-13 | Course control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107368326A true CN107368326A (en) | 2017-11-21 |
Family
ID=60304156
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610318681.5A Pending CN107368326A (en) | 2016-05-13 | 2016-05-13 | Course control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107368326A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109960397A (en) * | 2019-03-28 | 2019-07-02 | 联想(北京)有限公司 | Control method, control device, electronic equipment and computer readable storage medium |
CN112231702A (en) * | 2020-10-14 | 2021-01-15 | 深圳市百富智能新技术有限公司 | Application protection method, device, equipment and medium |
CN112328446A (en) * | 2020-10-28 | 2021-02-05 | 成都安易迅科技有限公司 | Program process monitoring method and device and computer equipment |
CN113168465A (en) * | 2018-11-21 | 2021-07-23 | 深圳市欢太科技有限公司 | Process running control method and device, storage medium and electronic equipment |
WO2023087875A1 (en) * | 2021-11-22 | 2023-05-25 | 荣耀终端有限公司 | Process scheduling method and terminal device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1164308A (en) * | 1994-09-05 | 1997-11-05 | 艾利森电话股份有限公司 | Method and arrangement for process based message handling in communication system |
CN102946486A (en) * | 2012-11-20 | 2013-02-27 | 惠州Tcl移动通信有限公司 | Background application automatic clearing method based on mobile phone and mobile phone |
CN104142828A (en) * | 2014-07-30 | 2014-11-12 | 北京奇虎科技有限公司 | Application accelerating method and device |
CN104199733A (en) * | 2014-09-05 | 2014-12-10 | 广州金山网络科技有限公司 | Disabling method and device for application program processes |
CN105138229A (en) * | 2015-09-29 | 2015-12-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105335099A (en) * | 2015-09-25 | 2016-02-17 | 深圳市金立通信设备有限公司 | Memory cleaning method and terminal |
CN105389193A (en) * | 2015-12-25 | 2016-03-09 | 北京奇虎科技有限公司 | Accelerating processing method, device and system for application, and server |
CN105431822A (en) * | 2013-06-12 | 2016-03-23 | 微软技术许可有限责任公司 | Managing a succession of deployments of an application programming interface (api) server configuration in the software lifecycle development |
CN106250191A (en) * | 2016-08-04 | 2016-12-21 | 北京奇虎科技有限公司 | Internal memory method for cleaning, device and the mobile terminal of mobile terminal |
-
2016
- 2016-05-13 CN CN201610318681.5A patent/CN107368326A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1164308A (en) * | 1994-09-05 | 1997-11-05 | 艾利森电话股份有限公司 | Method and arrangement for process based message handling in communication system |
CN102946486A (en) * | 2012-11-20 | 2013-02-27 | 惠州Tcl移动通信有限公司 | Background application automatic clearing method based on mobile phone and mobile phone |
CN105431822A (en) * | 2013-06-12 | 2016-03-23 | 微软技术许可有限责任公司 | Managing a succession of deployments of an application programming interface (api) server configuration in the software lifecycle development |
CN104142828A (en) * | 2014-07-30 | 2014-11-12 | 北京奇虎科技有限公司 | Application accelerating method and device |
CN104199733A (en) * | 2014-09-05 | 2014-12-10 | 广州金山网络科技有限公司 | Disabling method and device for application program processes |
CN105335099A (en) * | 2015-09-25 | 2016-02-17 | 深圳市金立通信设备有限公司 | Memory cleaning method and terminal |
CN105138229A (en) * | 2015-09-29 | 2015-12-09 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN105389193A (en) * | 2015-12-25 | 2016-03-09 | 北京奇虎科技有限公司 | Accelerating processing method, device and system for application, and server |
CN106250191A (en) * | 2016-08-04 | 2016-12-21 | 北京奇虎科技有限公司 | Internal memory method for cleaning, device and the mobile terminal of mobile terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113168465A (en) * | 2018-11-21 | 2021-07-23 | 深圳市欢太科技有限公司 | Process running control method and device, storage medium and electronic equipment |
CN109960397A (en) * | 2019-03-28 | 2019-07-02 | 联想(北京)有限公司 | Control method, control device, electronic equipment and computer readable storage medium |
CN112231702A (en) * | 2020-10-14 | 2021-01-15 | 深圳市百富智能新技术有限公司 | Application protection method, device, equipment and medium |
WO2022078366A1 (en) * | 2020-10-14 | 2022-04-21 | 深圳市百富智能新技术有限公司 | Application protection method and apparatus, device and medium |
CN112328446A (en) * | 2020-10-28 | 2021-02-05 | 成都安易迅科技有限公司 | Program process monitoring method and device and computer equipment |
CN112328446B (en) * | 2020-10-28 | 2024-04-30 | 成都安易迅科技有限公司 | Program progress monitoring method and device and computer equipment |
WO2023087875A1 (en) * | 2021-11-22 | 2023-05-25 | 荣耀终端有限公司 | Process scheduling method and terminal device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107368326A (en) | Course control method and device | |
CN105704066B (en) | Networking control method and device, system, security gateway, mobile terminal | |
CN104025536B (en) | For the synchronous system and method for application communication | |
CN109799938A (en) | Control display management method, terminal device and computer readable storage medium | |
CN103076977B (en) | A kind of method and system of the transmission of trigger message in the standby state | |
CN106411825A (en) | WeChat access token acquisition method and system thereof | |
CN109639742B (en) | Information security monitoring system | |
CN108335093A (en) | It transfers accounts control method, system, terminal, computer readable storage medium | |
CN106878527B (en) | Call control method and device | |
CN104348974A (en) | Keyword-verification-based specific message prompting method for communication group | |
WO2014085783A1 (en) | Systems and methods for modifying a recipient list of a message | |
US9832787B2 (en) | Attention management | |
CN107797859A (en) | A kind of dispatching method of timed task and a kind of dispatch server | |
CN109218370A (en) | Message method and device, electronic equipment | |
CN108540356B (en) | Processing method and processing apparatus | |
CN109076073A (en) | Prevent the undesirable communication in voice over internet protocol system | |
CN110166725A (en) | Video method, device, computer equipment and storage medium | |
CN105847169B (en) | A kind of method and device for flow control | |
CN102333164A (en) | Incoming call screen display method of call system based on B/S (Browser/Server) framework | |
CN107404580A (en) | A kind of method, storage medium and equipment for intercepting harassing call number and short message | |
CN104954227B (en) | A kind of cross-platform information push method of preemptive type and server | |
CN108320138A (en) | To-do-event reminding method, device, equipment and computer readable storage medium | |
CN112073308A (en) | Information pushing method, device, equipment and computer readable storage medium | |
CN109862070B (en) | Incoming line optimization method and device in financial surface signing business and readable access medium | |
CN106254448A (en) | A kind of information getting method and device |
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 |