CN107463445A - Application process priority management method, apparatus, storage medium and electronic equipment - Google Patents

Application process priority management method, apparatus, storage medium and electronic equipment Download PDF

Info

Publication number
CN107463445A
CN107463445A CN201710644133.6A CN201710644133A CN107463445A CN 107463445 A CN107463445 A CN 107463445A CN 201710644133 A CN201710644133 A CN 201710644133A CN 107463445 A CN107463445 A CN 107463445A
Authority
CN
China
Prior art keywords
navigation
priority
electronic equipment
navigation process
current location
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
Application number
CN201710644133.6A
Other languages
Chinese (zh)
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 CN201710644133.6A priority Critical patent/CN107463445A/en
Publication of CN107463445A publication Critical patent/CN107463445A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation 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/5022Mechanisms to release resources
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/36Input/output arrangements for on-board computers
    • G01C21/3626Details of the output of route guidance instructions
    • G01C21/3647Guidance involving output of stored or live camera images or video streams
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Multimedia (AREA)
  • Navigation (AREA)

Abstract

The invention discloses a kind of application process priority management method, apparatus, storage medium and electronic equipment, methods described to include:When detecting running background navigation process, the current location of electronic equipment and navigation purpose position corresponding with navigation process are obtained;According to current location and navigation purpose position, judge electronic equipment currently whether on navigation purpose position;If electronic equipment is current not in navigation purpose position, priority corresponding to navigation process is obtained;Judge whether the priority of navigation process meets the keep-alive condition that keep-alive is carried out to navigation process;If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets the keep-alive condition.In the embodiment of the present invention, electronic equipment can be on the premise of ensureing to the cleaning effect for the process of being of little use, it is ensured that the normal operation for the navigation process being used.

Description

Application process priority management method, apparatus, storage medium and electronic equipment
Technical field
The present invention relates to electronic technology field, and in particular to a kind of application process priority management method, apparatus, storage are situated between Matter and electronic equipment.
Background technology
In current electronic device, such as smart mobile phone, using needing to realize operation by background process.But in order to Running efficiency of system is improved, usual system can periodically clear up background process automatically, and the not high application of utilization rate can be preferentially closed. Some are applied to lift the survival rate of oneself application, and application processes pull-up and keep-alive can be synchronously realized by account data, So that the process of these applications operates in system background always, so as to influence the cleaning effect of background process, increase the consumption of system Electricity.
Therefore, the priority of each application program can be classified, is carried out clearly to background process in the prior art During reason, application process conventional, that priority is high can be subjected to keep-alive processing, and to it is being of little use, priority is low Application process is cleared up, on the premise of realizing in the application process being of little use by clearing up and improving running efficiency of system, Ensure the normal operation of conventional application process.But the priority of each application process can not be adjusted arbitrarily after setting, be faced When using it is some be of little use application process when, these application processes that are of little use often excessively are cleared up, influence user to navigation The normal use of process.
The content of the invention
The embodiment of the present invention provides a kind of application process priority management method, apparatus, storage medium and electronic equipment, can Effectively to reduce the power consumption of electronic equipment.
In a first aspect, the embodiment of the present invention provides a kind of application process priority management method, applied to electronic equipment, bag Include:
When detecting running background navigation process, the current location and navigation purpose status of the electronic equipment are obtained Put;
If the current location of the electronic equipment is different from the navigation purpose position, the navigation process pair is obtained The priority answered;
Judge whether the priority of the navigation process meets the keep-alive condition that keep-alive is carried out to the navigation process;
If the priority of the navigation process is unsatisfactory for the keep-alive condition, the priority of the navigation process is adjusted, So that the priority of the navigation process after adjustment meets the keep-alive condition.
Second aspect, a kind of application process priority management device provided in an embodiment of the present invention, the application process are excellent First level managing device, including:
Position acquisition module, for when detecting running background navigation process, obtaining the present bit of the electronic equipment Put and navigation purpose position corresponding with the navigation process;
Priority acquisition module, if the current location for the electronic equipment is different from the navigation purpose position, Then obtain priority corresponding to the navigation process;
Whether judge module, the priority for judging the navigation process meet to carry out keep-alive to the navigation process Keep-alive condition;
Priority adjusting module, if the priority for the navigation process is unsatisfactory for the keep-alive condition, adjust institute The priority of navigation process is stated, so that the priority of the navigation process after adjustment meets the keep-alive condition.
The third aspect, the embodiment of the present invention provide a kind of storage medium, and the storage medium stores a plurality of instruction, described more When bar instruction is suitable to run on computers so that the computer performs application process priority management side as described above Method.
Fourth aspect, a kind of electronic equipment, including processor and memory, a plurality of instruction of memory storage are described Processor is used to perform application process priority management method as described above by loading the instruction in the memory.
A kind of application process priority management method provided in an embodiment of the present invention, when detect running background navigate process When, the current location of electronic equipment and navigation purpose position corresponding with the navigation process are obtained, it is current by judging Whether position is located at navigation purpose position whether to judge the electronic equipment of user in the state navigated, if present bit Display electronic equipment is put when not reaching navigation purpose position and the relatively low navigation process priority, adjusts the excellent of the navigation process First level, with avoid the navigation process because priority is relatively low and by cleaned system influence user normal use the problem of, so as to On the premise of ensureing the cleaning effect to the process of being of little use, it is ensured that the normal operation for the navigation process being used.
Brief description of the drawings
Below in conjunction with the accompanying drawings, by the way that the embodiment of the present invention is described in detail, technical scheme will be made And other beneficial effects are apparent.
Fig. 1 is the implementation process figure of application process priority management method provided in an embodiment of the present invention.
Fig. 2 is the first application scenario diagram of application process priority management method provided in an embodiment of the present invention.
Fig. 3 is the flow chart of acquisition current location provided in an embodiment of the present invention and navigation purpose position.
Fig. 4 is another flow chart of acquisition current location provided in an embodiment of the present invention and navigation purpose position.
Fig. 5 is the second application scenario diagram of application process priority management method provided in an embodiment of the present invention.
Fig. 6 is another flow chart of acquisition current location provided in an embodiment of the present invention and navigation purpose position.
Fig. 7 is another implementation process figure of application process priority management method provided in an embodiment of the present invention.
Fig. 8 is the structural representation of application process priority management device provided in an embodiment of the present invention.
Fig. 9 is the structural representation of position acquisition module provided in an embodiment of the present invention.
Figure 10 is another structural representation of position acquisition module provided in an embodiment of the present invention.
Figure 11 is another structural representation of position acquisition module provided in an embodiment of the present invention.
Figure 12 is another structural representation of application process priority management device provided in an embodiment of the present invention.
Figure 13 is the structural representation of electronic equipment provided in an embodiment of the present invention.
Figure 14 is another structural representation of electronic equipment provided in an embodiment of the present invention.
Embodiment
Schema is refer to, wherein identical element numbers represent identical component, and principle of the invention is to implement one Illustrated in appropriate computing environment.The following description is based on the illustrated specific embodiment of the invention, and it should not be by It is considered as the limitation present invention other specific embodiments not detailed herein.
In the following description, specific embodiment of the invention is by with reference to as the step performed by one or multi-section computer And symbol illustrates, unless otherwise stating clearly.Therefore, these steps and operation will have to mention for several times is performed by computer, this paper institutes The computer of finger, which performs, to be included by representing with the computer processing unit of the electronic signal of the data in a structuring pattern Operation.The data or the opening position being maintained in the memory system of the computer are changed in this operation, and its is reconfigurable Or change the running of the computer in a manner of known to the tester of this area in addition.The data structure that the data are maintained For the provider location of the internal memory, it has the particular characteristics as defined in the data format.But the principle of the invention is with above-mentioned text Word illustrates that it is not represented as a kind of limitation, this area tester will appreciate that plurality of step as described below and behaviour Also may be implemented among hardware.
Term as used herein " module " can be the software object performed in the arithmetic system.Difference as described herein Component, module, engine and service can be the objective for implementation in the arithmetic system.And device and method as described herein can be with The mode of software is implemented, and can also be implemented certainly on hardware, within the scope of the present invention.
Term " first ", " second " and " the 3rd " in the present invention etc. is to be used to distinguish different objects, rather than for retouching State particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that cover non-exclusive include. Such as contain the step of process, method, system, product or the equipment of series of steps or module is not limited to list or Module, but some embodiments also include the step of not listing or module, or some embodiments also include for these processes, Method, product or equipment intrinsic other steps or module.
Referenced herein " embodiment " is it is meant that the special characteristic, structure or the characteristic that describe can wrap in conjunction with the embodiments In at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Wherein, the executive agent of the embodiment of the present invention can be electronic equipment, electronic equipment can include mobile phone (or Referred to as " honeycomb " phone, such as smart mobile phone) or with wireless communication module computer, for example, tablet personal computer, can also be The car-mounted computer of portable, pocket, hand-held, they exchange language and/or data with wireless access network.It is for example, personal Communication service (Personal Communication Service, PCS) phone, wireless phone, Session initiation Protocol (Session Initiation Protocol, SIP) phone, WLL (Wireless Local Loop, WLL) Stand, the equipment such as personal digital assistant (Personal Digital Assistant, PDA), be not limited thereto.
When this method is applied in electronic equipment, electronic equipment can include but is not limited to smart mobile phone, tablet personal computer, pen Remember the terminals such as this computer, palm PC, Intelligent bracelet.Wherein, the application process priority management method may operate at electronics In the operating system of equipment, it may include but it is not limited to Windows operating system, Mac OS operating systems, Android operations system System, IOS, Symbian (Saipan) operating system, Windows Phone operating systems etc., the embodiment of the present invention is not Limit.
Referring to Fig. 1, the implementation process of application process priority management method is shown in figure, for convenience of description, in figure It illustrate only the part related to present invention.
As shown in figure 1, a kind of application process priority management method, comprises the following steps:
Step S101, when detect running background navigate process when, obtain electronic equipment current location and with navigation Navigation purpose position corresponding to process.
In certain embodiments, can be by pre-setting navigation-related application list, the application that will be currently running Matching is compared with the navigation-related application list in title or attribute, to judge whether the navigation type being currently running Using determining whether the navigation process related to navigation feature.Or there is positioning authority by monitoring whether to exist Associated process be currently running, and the frequent degree for combining its location action determines whether the navigation related to navigation feature Process.
When it is determined that during in the presence of the navigation process related to navigation feature, electronic equipment can trigger to current location and with leading The acquisition of navigation purpose position corresponding to boat process.
In certain embodiments, on the one hand, electronic equipment can start or call the process for positioning, by obtaining environment In the positioning signal that is sent of satellite system or signal base station, to know the current location of electronic equipment.On the other hand, lead Navigate the acquisitions of destination locations, can be by obtaining navigation task corresponding to the navigation process, and will be set in the navigation task Fixed navigation purpose position is obtained.It can be the navigation purpose one that the navigation task stores related to destination Geographical coordinate or a code parameter related to destination (navigation task is using the code parameter and its phase The mapping relations of pass obtain destination locations)
For example, with reference to Fig. 2, the first of application process priority management method provided in an embodiment of the present invention is shown in figure Application scenario diagram, the application process of entitled " A navigation " is included in the application process in figure, should " A navigation " belong to navigation process In register, moreover, also comprising music process, video process etc., certainly, the method in the present embodiment is primarily directed to Navigation process.Now, electronic equipment can start positioning function, either fixed by the locating module and position location satellite of electronic equipment Position base station is attached, and so as to obtain the coordinate data of current location, and according to these coordinate datas is to determine current location " Shenzhen Che Kung Temple ".Then, electronic equipment can obtain the navigation task of the application from " A navigation ", appoint creating the navigation Before business, set out position and navigation purpose position that user inputs navigation task are generally required, so as to appoint in the navigation The geographic position data of above-mentioned set out position and navigation purpose position is included in business, can be got according to these data The position that sets out of the navigation task is " Shenzhen Hou Hai " and navigation purpose status are set to " Guangzhou College City ", and then determine to lead The navigation purpose status of boat task is set to " Guangzhou College City ".
Step S102, judge electronic equipment currently whether on navigation purpose position.
According to the current location of electronic equipment and navigation purpose position corresponding with navigation process, electronic equipment is judged Current location it is whether different from navigation purpose position;If so, then obtain priority corresponding to navigation process;If it is not, then not Perform action.
In certain embodiments, the coordinate of current location and navigation purpose position in geographic coordinate system can be obtained Position, and its relative distance is known by the coordinate difference of two positions, by judging it is default whether the relative distance is less than Value, to judge current location whether on the navigation purpose position.
Step S103, obtain priority corresponding to navigation process.
If electronic equipment is current not in navigation purpose position, priority corresponding to navigation process is obtained.
In certain embodiments, priority is the default parameter related to process, and the significance level of process passes through preferential Level makes a distinction, and electronic equipment can determine whether to carry out keep-alive to it according to the height of the process priority.It is excellent when process When first level is higher, it may be determined that the process belongs to the higher process of significance level, if electronic equipment is needed in cleaning system The normal operation of the process can be maintained during process, and the low process of priority is closed, removed;Or apply and holding , it is necessary to perform the pull-up operation to own process, electronic equipment can also be according to the height of priority under the instruction of row cycle synchronisation The low process pull-up determined whether to the application.
When determining current location not in navigation purpose position, it can now determine that user probably needs to continue Using to the navigation process, if now because the priority of the navigation process is relatively low and by cleaned system, user can be influenceed to this The normal use of navigation process, now need to obtain the priority of the navigation process, to provide foundation to judgment step below.
Step S104, judges whether the priority of navigation process meets the keep-alive condition that keep-alive is carried out to navigation process.
System can be classified to the priority of each application program first, in the process cleared up background process In, the high application process of conventional, priority can be carried out to keep-alive, and the low application process of being of little use, priority is carried out Cleaning.The process of keep-alive, the process after closing is either mainly subjected to drawing work by the application process close To realize.
In certain embodiments, keep-alive condition can be parameter one comparison threshold of offer for the priority of the process Value, determines whether the priority of the navigation process exceeds threshold value by comparing, and determines whether to meet the keep-alive condition;
For example, setting the priority limit of process as 1-5, the smaller then priority of numeral is lower, if keep-alive condition provides this The threshold value of part is 3, and the priority limit for meeting keep-alive condition is 3-5, then the priority of the navigation process needs to expire more than 3 Sufficient keep-alive condition.
In further embodiments, can be by performing whether following steps meet keep-alive bar to the priority for process of navigating Part is judged:
Acquisition meets between priority area corresponding to keep-alive condition;
It is determined that whether the priority of navigation process is between priority area;
If, it is determined that the priority for process of navigating meets keep-alive condition.
Priority typically has a span, such as sets the priority limit of process as 1-5, can between the priority area To be set in 3-5, it is determined that navigation process priority whether between priority area during, can be by the navigation of acquisition It is compared between the priority of process and the priority area, such as the priority of the navigation process is 2, then understands to be somebody's turn to do by comparing The priority of navigation process is not between the priority area, so being unsatisfactory for keep-alive condition.
Certainly, significance level height, priority limit and the threshold value for judgement corresponding to the priority height of process Value, can be set according to being actually needed, the concrete numerical value of above-mentioned case is only used for illustrating, not to we Case is defined.
Step S105, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets keep-alive bar Part.
If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that after adjustment The priority of navigation process meet keep-alive condition.
In certain embodiments, when the priority for getting navigation process, whether the navigation process priority can be met Keep-alive condition is judged, if the navigation process is unsatisfactory for keep-alive condition, illustrates that the navigation process is likely to by system Process cleanup action next time is to removing, or actively will not carry out pull-up to the navigation process.After there is the above situation, User needs that the navigation process can only be reloaded when using the navigation process, it is likely that cause the loss of data of navigation task, Influence the normal use of user.
In order to avoid the generation of problem, now need to be adjusted the priority for process of navigating, in certain embodiments, Can with calling system to priority of a process modification authority, to be modified to the priority for process of navigating so that this navigate into The priority of journey can meet that system carries out the minimum requirements of keep-alive to process.
For example, setting the priority limit of process as 1-5, the smaller then priority of numeral is lower, if keep-alive condition provides this The threshold value of part is 3, and the priority limit for meeting keep-alive condition is 3-5.Now, if the priority of the navigation process is 2, it is clear that small In the threshold value 3 of keep-alive condition, then the priority of the navigation process can be adjusted to 3 or more, so that system will not be led to this Boat process is cleared up.
A kind of application process priority management method provided in an embodiment of the present invention, when detect running background navigate process When, the current location of electronic equipment and navigation purpose position corresponding with the navigation process are obtained, it is current by judging Whether position is located at navigation purpose position whether to judge the electronic equipment of user in the state navigated, if present bit Display electronic equipment is put when not reaching navigation purpose position and the relatively low navigation process priority, adjusts the excellent of the navigation process First level, with avoid the navigation process because priority is relatively low and by cleaned system influence user normal use the problem of, so as to On the premise of ensureing the cleaning effect to the process of being of little use, it is ensured that the normal operation for the navigation process being used.
Fig. 3 shows the implementation process of acquisition current location provided by the invention and navigation purpose position, in order to just The part related to present invention is illustrate only in explanation, figure.
As shown in figure 3, in certain embodiments, step S101 can have implementations below:
Step S201, when detecting running background navigation process, obtain and led described in default first history duration The active call number that boat process is actively called;
First history duration can be the duration manually set, e.g. 1 hour, 1 day or 1 week etc., during first history Length can be based on actual use situation and formulate, and the embodiment of the present invention is not construed as limiting to this.
The active call number actively called according to the navigation process, use feelings of the user to the application can be known Condition, during user frequently uses the application in a period of time, the active that caused navigation process is actively called is called Number also can be more, and the active call number actively called using the navigation process judges the service condition of application, can be with Effectively know the liveness of navigation process during this period of time.
Step S202, judges whether the active call number is more than or equal to default frequency threshold value;
In certain embodiments, the frequency threshold value data for judgement can be obtained, the first history duration that will be got The active call number that interior navigation process is actively called is compared with default frequency threshold value, obtains comparison result.
Frequency threshold value can be 5 times, 10 any one inferior integer, and the frequency threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, certain navigation process, in 1 hour before current time, the number called by user is 5 times, if the number The number that threshold value is set as being called by user in 1 hour before current time is 3 times, then it is secondary can to determine that the number is more than Number threshold value.It should be noted that the concrete numerical value of above-mentioned case is only used for illustrating, this programme is not defined.
Step S203, if so, then obtaining the current location of electronic equipment and the mesh that navigates corresponding with the navigation process Position.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the fig. 3 embodiment, obtaining the current location of electronic equipment and navigation corresponding with the navigation process Before destination locations, using obtain the navigation process active call number, and using the active call number with it is default The comparison of frequency threshold value acts to decide whether to perform acquisition, can further know the liveness situation of the navigation process, right The navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process weight Degree is wanted, so as to decide whether to carry out the action of next step according to the significance level of the navigation process.
As shown in figure 4, in certain embodiments, step S101 can also have implementations below:
Step S301, when detect running background navigate process when, obtain the electronic equipment default two moment it Between change in location distance;
In certain embodiments, electronic equipment can know navigation process be present when, obtain electronic equipment current time The position at place, and after reaching sometime by certain time length, then obtain the current location where primary electron equipment.
After the geographic position data of two positions is obtained, the geographic position data of two positions can be compared To, calculate, obtain two positions between relative distance, or between two positions the path distance through path, by the phase Adjust the distance or path distance is set to preset the change in location distance between two moment.
When being set as first for example, as shown in figure 5, when electronic equipment is known in the presence of navigation process, at the time of will at that time Carve, and obtain electronic equipment where at the first moment first the moment position be " Shenzhen Che Kung Temple ".By certain intervals It after duration, can be set as 1 hour, be set as the second moment at the time of by 1 hour the first moment of distance, obtain electronic equipment and exist Where during the second moment second the moment position be " Dongguan Chang'an ".Now by obtaining the path distance between two positions, It is assumed to be 60 kilometers, then it is 60 kilometers that can obtain change in location distance of the electronic equipment between two moment are preset.
It should be understood that the computational methods of the interval duration and specific change in location distance can be according to being actually needed Set, the concrete numerical value of above-mentioned case is only used for illustrating, and this programme is not defined.
Step S302, judges whether the change in location distance is more than default first distance threshold;
In certain embodiments, the first distance threshold for judgement can be obtained, by between get two moment Change in location distance be compared with default first distance threshold.
First distance threshold can be any one integer, and first distance threshold can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, the first distance threshold is set as 100 meters, then only when the position corresponding to two moment change in location away from During from more than 100 meters, default condition could be met.
Step S303, if so, then obtaining the current location and navigation purpose status corresponding with the navigation process Put.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the fig. 4 embodiment, the current location of electronic equipment and navigation corresponding with the navigation process are being obtained Before destination locations, become using the change in location distance between two moment for obtaining the navigation process, and using the position Change distance to be compared with default first distance threshold to decide whether to perform acquisition action, can further know the navigation The liveness situation of process, to the navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively The significance level of different navigation process is distinguished, so as to decide whether to carry out the dynamic of next step according to the significance level of the navigation process Make.
As shown in fig. 6, in certain embodiments, step S101 can also have implementations below:
Step S401, when detecting running background navigation process, obtain navigation process and be in the second history duration The run time on system foreground;
Second history duration can be the duration manually set, e.g. 1 hour, 1 day etc., and the second history duration can be with Formulated based on actual use situation, the embodiment of the present invention is not construed as limiting to this.
In certain embodiments, when know navigation process has been currently running in electronic equipment when, can to it is each navigate into The level of journey is monitored.
For example, when knowing in electronic system " A navigation " be present, then the process of " the A navigation " is monitored, when user makes When using " A navigation ", the process of " A navigation " can be called to system foreground, when now can be to the operation of the process of " the A navigation " Between carry out timing.Assuming that a length of 1 hour during the second history, then before obtaining navigation process and being in system in the second history duration During the run time of platform, the process of " the A navigation " is transferred in first 1 hour of current time during lasting in system foreground Between.
When user is using some application, the process of the application can be called to system foreground, and statistics navigation process is in system The run time on foreground can effectively know the use frequent degree of navigation task.
Step S402, judges whether the run time is more than or equal to default time threshold;
In certain embodiments, the time threshold for judgement can be obtained, the navigation process got is gone through second The run time in system foreground is compared with default time threshold in history duration, obtains comparison result.
The time threshold can be the threshold value being manually set or the time threshold based on certain Rule.Its Unit can be arranged to the accounting or concrete numerical value that the process in the second history duration is located at the time on system foreground, The embodiment of the present invention is not construed as limiting to this.
For example, the second history duration is set to first 1 hour of current time, time threshold is arranged to time in this prior Run 30 minutes in first 1 hour, and the navigation process got is in the operation on system foreground in first 1 hour of current time Time is 40 minutes, then by comparing, can know that the navigation process is in system foreground in first 1 hour of current time Run time is more than the time threshold.
Step S403, if so, then obtaining the current location and navigation purpose status corresponding with the navigation process Put.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the embodiment in fig 6, the current location of electronic equipment and navigation corresponding with the navigation process are being obtained Before destination locations, the run time on system foreground is in the second history duration using acquisition navigation process, and is utilized The run time is compared with default time threshold to decide whether to perform acquisition action, can further know the navigation The liveness situation of process, to the navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively The significance level of different navigation process is distinguished, so as to decide whether to carry out the dynamic of next step according to the significance level of the navigation process Make.
Referring to Fig. 7, another implementation process of application process priority management method is shown in figure, for convenience of description, The part related to present invention is illustrate only in figure.
Relative to the application process priority management method in Fig. 1, the part steps of this method are identical with Fig. 1, in order to not Repeat again, the embodiment of same section may be referred to the description in Fig. 1.
Shown in Fig. 7, a kind of application process priority management method, comprise the following steps:
Step S501, when detect running background navigate process when, obtain electronic equipment current location and with navigation Navigation purpose position corresponding to process.
Step S502, judge the distance between current location and navigation purpose position whether be less than default second away from From threshold value;If the distance between described two positions are less than default second distance threshold value, obtain excellent corresponding to navigation process First level;If it is not, then terminate the step.
Judge whether electronic equipment is currently located on navigation purpose position, can be by judging current location and navigation Whether the distance between destination locations are less than default second distance threshold value to realize.
In certain embodiments, the coordinate of current location and navigation purpose position in geographic coordinate system can be obtained Position, and its relative distance is known by the coordinate difference of two positions, by judging it is default whether the relative distance is less than Value, to judge current location whether on the navigation purpose position.
Second predetermined threshold value can be any one integer, and the second distance threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
For example, second distance threshold value is set as 100 meters, then only between current location and navigation purpose position When distance is less than 100 meters, default condition could be met.
Step S503, obtain priority corresponding to navigation process.
Step S504, judges whether the priority of navigation process meets the keep-alive condition that keep-alive is carried out to navigation process.
Step S505, the priority of navigation process is adjusted, so that the priority of the navigation process after adjustment meets keep-alive bar Part.
Step S506, when monitoring that electronic equipment is currently located on navigation purpose position, then by the excellent of the process of navigation Priority of the first level restoration to before adjusting.
In certain embodiments, in order to improve management and control degree of the system to process, in navigation task corresponding to navigation process After end, i.e., when electronic equipment is determined in the range of navigation purpose ground, it is believed that the navigation task has been completed, should The importance of navigation task reduces.Now, if being raised to the priority of the navigation process before, this can be navigated Priority of the preferential level restoration of process to before adjusting, to avoid the navigation process from being constantly in keepalive state, can so be protected The beneficial effect that application processes set priority is held, reduces the power consumption of electronic equipment.
Referring to Fig. 8, application process priority management device is shown in figure, illustrate only for convenience of description, in figure with The related part of present invention.
As shown in figure 8, a kind of application process priority management device, including position acquisition module 601, judge module 602, Priority acquisition module 602, judge module 603 and priority adjusting module 604, wherein:
Position acquisition module 601, for when detecting running background navigation process, obtaining the current location of electronic equipment And navigation purpose position corresponding with navigation process.
In certain embodiments, can be by pre-setting navigation-related application list, the application that will be currently running Matching is compared with the navigation-related application list in title or attribute, to judge whether the navigation type being currently running Using determining whether the navigation process related to navigation feature.Or there is positioning authority by monitoring whether to exist Associated process be currently running, and the frequent degree for combining its location action determines whether the navigation related to navigation feature Process.
When it is determined that during in the presence of the navigation process related to navigation feature, electronic equipment can trigger to current location and with leading The acquisition of navigation purpose position corresponding to boat process.
In certain embodiments, on the one hand, electronic equipment can start or call the process for positioning, by obtaining environment In the positioning signal that is sent of satellite system or signal base station, to know the current location of electronic equipment.On the other hand, lead Navigate the acquisitions of destination locations, can be by obtaining navigation task corresponding to the navigation process, and will be set in the navigation task Fixed navigation purpose position is obtained.It can be the navigation purpose one that the navigation task stores related to destination Geographical coordinate or a code parameter related to destination (navigation task is using the code parameter and its phase The mapping relations of pass obtain destination locations)
For example, with reference to Fig. 2, the first of application process priority management device provided in an embodiment of the present invention is shown in figure Application scenario diagram, the application process of entitled " A navigation " is included in the application process in figure, should " A navigation " belong to navigation process In register, moreover, also comprising music process, video process etc., certainly, the method in the present embodiment is primarily directed to Navigation process.Now, electronic equipment can start positioning function, either fixed by the locating module and position location satellite of electronic equipment Position base station is attached, and so as to obtain the coordinate data of current location, and according to these coordinate datas is to determine current location " Shenzhen Che Kung Temple ".Then, electronic equipment can obtain the navigation task of the application from " A navigation ", appoint creating the navigation Before business, set out position and navigation purpose position that user inputs navigation task are generally required, so as to appoint in the navigation The geographic position data of above-mentioned set out position and navigation purpose position is included in business, can be got according to these data The position that sets out of the navigation task is " Shenzhen Hou Hai " and navigation purpose status are set to " Guangzhou College City ", and then determine to lead The navigation purpose status of boat task is set to " Guangzhou College City ".
Priority acquisition module 602, if for the current location of the electronic equipment and the navigation purpose position not Together, then priority corresponding to the navigation process is obtained.
According to current location and navigation purpose position, judge electronic equipment current location whether with navigation purpose status Put difference.
In certain embodiments, the coordinate of current location and navigation purpose position in geographic coordinate system can be obtained Position, and its relative distance is known by the coordinate difference of two positions, by judging it is default whether the relative distance is less than Value, to judge whether electronic equipment current location is different from navigation purpose position.
If electronic equipment is current not in navigation purpose position, priority corresponding to navigation process is obtained.
In certain embodiments, priority is the default parameter related to process, and the significance level of process passes through preferential Level makes a distinction, and electronic equipment can determine whether to carry out keep-alive to it according to the height of the process priority.It is excellent when process When first level is higher, it may be determined that the process belongs to the higher process of significance level, if electronic equipment is needed in cleaning system The normal operation of the process can be maintained during process, and the low process of priority is closed, removed;Or apply and holding , it is necessary to perform the pull-up operation to own process, electronic equipment can also be according to the height of priority under the instruction of row cycle synchronisation The low process pull-up determined whether to the application.
When determining current location not in navigation purpose position, it can now determine that user probably needs to continue Using to the navigation process, if now because the priority of the navigation process is relatively low and by cleaned system, user can be influenceed to this The normal use of navigation process, now need to obtain the priority of the navigation process, to provide foundation to judgment step below.
Whether judge module 603, the priority for judging navigation process meet the keep-alive that keep-alive is carried out to navigation process Condition.
In certain embodiments, keep-alive condition can be parameter one comparison threshold of offer for the priority of the process Value, determines whether the priority of the navigation process exceeds threshold value by comparing, and determines whether to meet the keep-alive condition;
Certainly, significance level height, priority limit and the threshold value for judgement corresponding to the priority height of process Value, can be set according to being actually needed, the concrete numerical value of above-mentioned case is only used for illustrating, not to we Case is defined.
Priority adjusting module 604, for adjusting the priority of navigation process so that adjustment after navigation process it is preferential Level meets keep-alive condition.
If the priority of navigation process is unsatisfactory for keep-alive condition, the priority of navigation process is adjusted, so that after adjustment The priority of navigation process meet keep-alive condition.
In certain embodiments, when the priority for getting navigation process, whether the navigation process priority can be met Keep-alive condition is judged, if the navigation process is unsatisfactory for keep-alive condition, illustrates that the navigation process is likely to by system Process cleanup action next time is to removing, or actively will not carry out pull-up to the navigation process.After there is the above situation, User needs that the navigation process can only be reloaded when using the navigation process, it is likely that cause the loss of data of navigation task, Influence the normal use of user.
In order to avoid the generation of problem, now need to be adjusted the priority for process of navigating, in certain embodiments, Can with calling system to priority of a process modification authority, to be modified to the priority for process of navigating so that this navigate into The priority of journey can meet that system carries out the minimum requirements of keep-alive to process.
A kind of application process priority management device provided in an embodiment of the present invention, when detect running background navigate process When, position acquisition module obtains the current location of electronic equipment and navigation purpose position corresponding with the navigation process, Judge whether current location is located at navigation purpose position to judge the electronic equipment of user whether in just by judge module In the state of navigation, if judge module determine current location show electronic equipment do not reach navigation purpose position and this navigate into When journey priority is relatively low, priority adjusting module adjusts the priority of the navigation process, to avoid the navigation process because of priority It is relatively low and by cleaned system influence user normal use the problem of, so as to ensure to the cleaning effect for the process of being of little use before Put, it is ensured that the normal operation for the navigation process being used.
Fig. 9 shows the structure of position acquisition module 601 provided in an embodiment of the present invention, for convenience of description, in figure only Show the part related to present invention.
As shown in figure 9, in certain embodiments, position acquisition module 601 includes call number acquisition submodule 6011, the One judging submodule 6012 and first position acquisition submodule 6013, wherein:
Call number acquisition submodule 6011, for when detect running background navigate process when, obtain default the The active call number that navigation process described in one history duration is actively called;
First history duration can be the duration manually set, e.g. 1 hour, 1 day or 1 week etc., during first history Length can be based on actual use situation and formulate, and the embodiment of the present invention is not construed as limiting to this.
The active call number actively called according to the navigation process, use feelings of the user to the application can be known Condition, during user frequently uses the application in a period of time, the active that caused navigation process is actively called is called Number also can be more, and the active call number actively called using the navigation process judges the service condition of application, can be with Effectively know the liveness of navigation process during this period of time.
First judging submodule 6012, for judging whether the active call number is more than or equal to default number threshold Value;
In certain embodiments, the frequency threshold value data for judgement can be obtained, the first history duration that will be got The active call number that interior navigation process is actively called is compared with default frequency threshold value, obtains comparison result.
Frequency threshold value can be 5 times, 10 any one inferior integer, and the frequency threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
First position acquisition submodule 6013, for if so, then obtaining the current location of electronic equipment and being led with described Navigation purpose position corresponding to boat process.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the embodiment in fig. 9, the current location of electronic equipment and navigation corresponding with the navigation process are being obtained Before destination locations, using obtain the navigation process active call number, and using the active call number with it is default The comparison of frequency threshold value acts to decide whether to perform acquisition, can further know the liveness situation of the navigation process, right The navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively distinguish different navigation process weight Degree is wanted, so as to decide whether to carry out the action of next step according to the significance level of the navigation process.
As shown in Figure 10, in certain embodiments, position acquisition module 601 is included apart from acquisition submodule 6014, second Judging submodule 6015 and second place acquisition submodule 6016:
Apart from acquisition submodule 6014, for when detecting running background navigation process, obtaining the electronic equipment and existing Preset the change in location distance between two moment;
In certain embodiments, electronic equipment can know navigation process be present when, obtain electronic equipment current time The position at place, and after reaching sometime by certain time length, then obtain the current location where primary electron equipment.
After the geographic position data of two positions is obtained, the geographic position data of two positions can be compared To, calculate, obtain two positions between relative distance, or between two positions the path distance through path, by the phase Adjust the distance or path distance is set to preset the change in location distance between two moment.
It should be understood that the computational methods of the interval duration and specific change in location distance can be according to being actually needed Set, the concrete numerical value of above-mentioned case is only used for illustrating, and this programme is not defined.
Second judging submodule 6015, for judging whether the change in location distance is more than default first apart from threshold Value;
In certain embodiments, the first distance threshold for judgement can be obtained, by between get two moment Change in location distance be compared with default first distance threshold.
First distance threshold can be any one integer, and first distance threshold can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
Second place acquisition submodule 6016, for if so, then obtain the current location and with the navigation process Corresponding navigation purpose position.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the embodiment in figure 10, the current location of electronic equipment and navigation corresponding with the navigation process are being obtained Before destination locations, become using the change in location distance between two moment for obtaining the navigation process, and using the position Change distance to be compared with default first distance threshold to decide whether to perform acquisition action, can further know the navigation The liveness situation of process, to the navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively The significance level of different navigation process is distinguished, so as to decide whether to carry out the dynamic of next step according to the significance level of the navigation process Make.
As shown in figure 11, in certain embodiments, position acquisition module 601 includes time acquisition submodule the 6017, the 3rd The position acquisition submodule 6019 of judging submodule 6018 and the 3rd, wherein:
Time acquisition submodule 6017, for when detecting running background navigation process, obtaining navigation process second The run time on system foreground is in history duration;
Second history duration can be the duration manually set, e.g. 1 hour, 1 day etc., and the second history duration can be with Formulated based on actual use situation, the embodiment of the present invention is not construed as limiting to this.
In certain embodiments, when know navigation process has been currently running in electronic equipment when, can to it is each navigate into The level of journey is monitored.
When user is using some application, the process of the application can be called to system foreground, and statistics navigation process is in system The run time on foreground can effectively know the use frequent degree of navigation task.
3rd judging submodule 6018, for judging whether the run time is more than or equal to default time threshold;
In certain embodiments, the time threshold for judgement can be obtained, the navigation process got is gone through second The run time in system foreground is compared with default time threshold in history duration, obtains comparison result.
The time threshold can be the threshold value being manually set or the time threshold based on certain Rule.Its Unit can be arranged to the accounting or concrete numerical value that the process in the second history duration is located at the time on system foreground, The embodiment of the present invention is not construed as limiting to this.
3rd position acquisition submodule 6019, for if so, then obtain the current location and with the navigation process Corresponding navigation purpose position.
The current location of electronic equipment and the specific acquisition side of navigation purpose position corresponding with the navigation process Method may refer to Fig. 1 for embodiment in introduction.
In the embodiment in figure 11, the current location of electronic equipment and navigation corresponding with the navigation process are being obtained Before destination locations, the run time on system foreground is in the second history duration using acquisition navigation process, and is utilized The run time is compared with default time threshold to decide whether to perform acquisition action, can further know the navigation The liveness situation of process, to the navigation process whether be the process that user is used judgement accuracy rate it is higher, effectively The significance level of different navigation process is distinguished, so as to decide whether to carry out the dynamic of next step according to the significance level of the navigation process Make.
Referring to Figure 12, another structure of application process priority management device is shown in figure, for convenience of description, in figure It illustrate only the part related to present invention.
Relative to the application process priority management device in Fig. 8, the part-structure of the device is identical with Fig. 1, in order to not Repeat again, the embodiment of same section may be referred to the description in Fig. 8.
Shown in Figure 12, a kind of application process priority management device, including position acquisition module 601, priority obtain mould Block 602, judge module 603, priority adjusting module 604 and priority recovery module 605, wherein, priority acquisition module 602 include the 4th judging submodule 6021, specific as follows:
Position acquisition module 601, for when detecting running background navigation process, obtaining the current location of electronic equipment And navigation purpose position corresponding with navigation process.
Priority acquisition module 602 includes the 4th judging submodule, wherein:
4th judging submodule 6021, for judging whether the distance between current location and navigation purpose position are small In default second distance threshold value;If the distance between described two positions are less than default second distance threshold value, acquisition is led Priority corresponding to boat process;If it is not, then terminate the step.
Judge whether electronic equipment is currently located on navigation purpose position, can be by judging current location and navigation Whether the distance between destination locations are less than default second distance threshold value to realize.
In certain embodiments, the coordinate of current location and navigation purpose position in geographic coordinate system can be obtained Position, and its relative distance is known by the coordinate difference of two positions, by judging it is default whether the relative distance is less than Value, to judge current location whether on the navigation purpose position.
Second predetermined threshold value can be any one integer, and the second distance threshold value can be based on actual use situation system Fixed, the embodiment of the present invention is not construed as limiting to this.
Priority acquisition module 602, if for the current location of the electronic equipment and the navigation purpose position not Together, then priority corresponding to navigation process is obtained.
Whether judge module 603, the priority for judging navigation process meet the keep-alive that keep-alive is carried out to navigation process Condition.
Priority adjusting module 604, for adjusting the priority of navigation process so that adjustment after navigation process it is preferential Level meets keep-alive condition.
Priority recovery module 605, for when monitoring that electronic equipment is currently located on navigation purpose position, then will Priority of the preferential level restoration of navigation process to before adjusting.
In certain embodiments, in order to improve management and control degree of the system to process, in navigation task corresponding to navigation process After end, i.e., when electronic equipment is determined in the range of navigation purpose ground, it is believed that the navigation task has been completed, should The importance of navigation task reduces.Now, if being raised to the priority of the navigation process before, this can be navigated Priority of the preferential level restoration of process to before adjusting, to avoid the navigation process from being constantly in keepalive state, can so be protected The beneficial effect that application processes set priority is held, reduces the power consumption of electronic equipment.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment can be smart mobile phone, tablet personal computer, desk-top The equipment such as computer, notebook, palm PC.Figure 13 is referred to, electronic equipment 700 includes processor 701 and memory 702. Wherein, processor 701 is electrically connected with memory 702.
The processor 700 is the control centre of electronic equipment 700, is set using various interfaces and the whole electronics of connection Standby various pieces, by the application program of operation or load store in memory 702, and call and be stored in memory Data in 702, the various functions and processing data of electronic equipment 700 are performed, so as to carry out overall prison to electronic equipment 700 Control.
The memory 702 can be used for storage software program and module, and processor 701 is stored in memory by operation 702 software program and module, so as to perform various function application and data processing.Memory 702 can mainly include depositing Program area and storage data field are stored up, wherein, storing program area can storage program area, the application program needed at least one function (such as sound-playing function, image player function etc.) etc.;Storage data field can store uses what is created according to server Data etc..In addition, memory 702 can include high-speed random access memory, nonvolatile memory can also be included, such as At least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, memory 702 can be with Including Memory Controller, to provide access of the processor 701 to memory 702.
In embodiments of the present invention, the processor 701 in electronic equipment 700 can be according to the steps, by one or one Instruction is loaded into memory 702 corresponding to the process of application program more than individual, and is stored in storage by the operation of processor 701 Application program in device 702 is as follows so as to realize various functions:
When detecting running background navigation process, the current location and navigation purpose status of the electronic equipment are obtained Put;If the current location of the electronic equipment is different from the navigation purpose position, obtain corresponding to the navigation process Priority;Judge whether the priority of the navigation process meets the keep-alive condition that keep-alive is carried out to the navigation process;If institute The priority for stating navigation process is unsatisfactory for the keep-alive condition, then adjusts the priority of the navigation process, so that after adjustment The priority of the navigation process meets the keep-alive condition.
In some embodiments, the use state of the application includes time for the active synchronization that the application is triggered Number, the processor 701 can be also used for:
When detecting running background navigation process, obtain process of being navigated described in default first history duration and led The dynamic active call number called;Judge whether the active call number is more than or equal to default frequency threshold value;If so, then Obtain the current location of the electronic equipment and navigation purpose position corresponding with the navigation process.
In some embodiments, the processor 701 can be also used for:
When detecting running background navigation process, obtain position of the electronic equipment between two moment are preset and become Change distance;Judge whether the change in location distance is more than default first distance threshold;If so, then obtain the current location And navigation purpose position corresponding with the navigation process.
In some embodiments, the use state of the application includes the data download state of the application, the place Reason device 701 can be also used for:
When detect running background navigate process when, obtain the navigation process in the second history duration be in system before The run time of platform;Judge whether the run time is more than or equal to default time threshold;If so, then obtain described current Position and navigation purpose position corresponding with the navigation process.
In some embodiments, the processor 701 can be also used for:
Judge the distance between the current location and the navigation purpose position whether be less than default second away from From threshold value;
In some embodiments, the processor 701 can be also used for:
Acquisition meets between priority area corresponding to the keep-alive condition;
Determine the priority of the navigation process whether in the priority area;
If, it is determined that the priority of the navigation process meets the keep-alive condition.
In some embodiments, the processor 701 can be also used for:
When monitoring that the electronic equipment is currently located on the navigation purpose position, then by the navigation process Priority before preferential level restoration to the adjustment.
Electronic equipment provided in an embodiment of the present invention, when detecting running background navigation process, obtain electronic equipment Current location and navigation purpose position corresponding with the navigation process, by judging current location whether positioned at navigation mesh Position whether judge the electronic equipment of user in the state navigated, if current location shows that electronic equipment does not arrive During up to navigation purpose position and the relatively low navigation process priority, the priority of the navigation process is adjusted, to avoid the navigation Process because priority is relatively low and by cleaned system influence user normal use the problem of, so as to ensure to the process of being of little use On the premise of cleaning effect, it is ensured that the normal operation for the navigation process being used.
Also referring to Figure 14, in some embodiments, electronic equipment 700 can also include:Display 703, radio frequency Circuit 704, voicefrequency circuit 705, wireless fidelity module 706 and power supply 707.Wherein, wherein, display 703, radio circuit 704th, voicefrequency circuit 705, wireless fidelity module 706 and power supply 707 are electrically connected with processor 701 respectively.
The display 703 is displayed for the information inputted by user or is supplied to the information of user and various figures Shape user interface, these graphical user interface can be made up of figure, text, icon, video and its any combination.Display 703 can include display panel, in some embodiments, can use liquid crystal display (LCD, Liquid Crystal Display) or the form such as Organic Light Emitting Diode (OLED, Organic Light-Emitting Diode) is aobvious to configure Show panel.
The radio circuit 704 can be used for transceiving radio frequency signal, to pass through radio communication and the network equipment or other electricity Sub- equipment establishes wireless telecommunications, the receiving and transmitting signal between the network equipment or other electronic equipments.
The voicefrequency circuit 705 can be used for providing the audio between user and electronic equipment by loudspeaker, microphone Interface.
The wireless fidelity module 706 can be used for short range wireless transmission, and user can be helped to send and receive e-mail, be clear Look at and website and access streaming video etc., it has provided the user wireless broadband internet and accessed.
The power supply 707 is used to all parts power supply of electronic equipment 700.In certain embodiments, power supply 707 Can be logically contiguous by power-supply management system and processor 701, so as to realize management charging by power-supply management system, put The function such as electricity and power managed.
Although not shown in Figure 14, electronic equipment 700 can also include camera, bluetooth module etc., will not be repeated here.
The embodiment of the present invention also provides a kind of storage medium, and the storage medium stores a plurality of instruction, a plurality of instruction Suitable for being loaded by processor to perform the application process priority management method in above-described embodiment, such as:When detect backstage When running navigation process, the current location of the electronic equipment and navigation purpose status corresponding with the navigation process are obtained Put;According to the current location and the navigation purpose position, judge whether the electronic equipment currently leads positioned at described Navigate on destination locations;If the electronic equipment is current not in the navigation purpose position, the navigation process pair is obtained The priority answered;Judge whether the priority of the navigation process meets to allow the electronic equipment to carry out the navigation process The keep-alive condition of keep-alive;If the priority of the navigation process is unsatisfactory for the keep-alive condition, the navigation process is adjusted Priority so that the priority of the navigation process after adjustment meets the keep-alive condition.
It should be noted that one of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or Part steps are by program the hardware of correlation can be instructed to complete, and the program can be stored in computer-readable medium In, the medium can include but is not limited to:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Application process priority management device, device, storage medium and the electronics provided above the embodiment of the present invention Equipment is described in detail, and specific case used herein is set forth to the principle and embodiment of the present invention, with The explanation of upper embodiment is only intended to help the method and its core concept for understanding the present invention;Meanwhile for the technology of this area Personnel, according to the thought of the present invention, there will be changes in specific embodiments and applications, in summary, this theory Bright book content should not be construed as limiting the invention.

Claims (16)

  1. A kind of 1. application process priority management method, applied to electronic equipment, it is characterised in that including:
    When detecting running background navigation process, current location and the navigation purpose position of the electronic equipment are obtained;
    If the current location of the electronic equipment is different from the navigation purpose position, obtain corresponding to the navigation process Priority;
    Judge whether the priority of the navigation process meets the keep-alive condition that keep-alive is carried out to the navigation process;
    If the priority of the navigation process is unsatisfactory for the keep-alive condition, the priority of the navigation process is adjusted, so that The priority of the navigation process after adjustment meets the keep-alive condition.
  2. 2. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, current location and the navigation purpose position of the electronic equipment are obtained, including:
    When detecting running background navigation process, obtain process of being navigated described in default first history duration and actively adjusted Active call number;
    Judge whether the active call number is more than or equal to default frequency threshold value;
    If so, then obtain the current location of the electronic equipment and the navigation purpose position.
  3. 3. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, current location and the navigation purpose position of the electronic equipment are obtained, including:
    When detect running background navigate process when, obtain the electronic equipment preset two moment between change in location away from From;
    Judge whether the change in location distance is more than default first distance threshold;
    If so, then obtain the current location and navigation purpose position corresponding with the navigation process.
  4. 4. application process priority management method as claimed in claim 1, it is characterised in that described to detect running background During navigation process, current location and the navigation purpose position of the electronic equipment are obtained, including:
    When detecting running background navigation process, obtain the navigation process and system foreground is in the second history duration Run time;
    Judge whether the run time is more than or equal to default time threshold;
    If so, then obtain the current location and navigation purpose position corresponding with the navigation process.
  5. 5. application process priority management method as claimed in claim 1, it is characterised in that if the electronic equipment Current location is different from the navigation purpose position, then before the step of obtaining priority corresponding to the navigation process, bag Include:
    Judge whether the distance between the current location and the navigation purpose position are less than second distance threshold value;
    If, it is determined that the current location of the electronic equipment is different from the navigation purpose position.
  6. 6. application process priority management method as claimed in claim 1, it is characterised in that judge the excellent of the navigation process Whether first level meets the keep-alive condition that keep-alive is carried out to the navigation process, including:
    Acquisition meets between priority area corresponding to the keep-alive condition;
    Determine the priority of the navigation process whether between the priority area;
    If, it is determined that the priority of the navigation process meets the keep-alive condition.
  7. 7. application process priority management method as claimed in claim 1, it is characterised in that if in the navigation process Priority be unsatisfactory for the keep-alive condition, then adjust the priority of the navigation process so that adjustment after it is described navigate into After the priority of journey meets the keep-alive condition, in addition to:
    When monitoring that the electronic equipment is currently located on the navigation purpose position, then by the preferential of the navigation process Priority before level restoration to the adjustment.
  8. A kind of 8. application process priority management device, it is characterised in that including:
    Position acquisition module, for when detect running background navigate process when, obtain the current location of the electronic equipment with And navigation purpose position;
    Priority acquisition module, if the current location for the electronic equipment is different from the navigation purpose position, obtain Take priority corresponding to the navigation process.
    Whether judge module, the priority for judging the navigation process meet the keep-alive that keep-alive is carried out to the navigation process Condition;And
    Priority adjusting module, if the priority for the navigation process is unsatisfactory for the keep-alive condition, led described in adjustment The priority of boat process, so that the priority of the navigation process after adjustment meets the keep-alive condition.
  9. 9. application process priority management device as claimed in claim 8, it is characterised in that the position acquisition module, bag Include:
    Call number acquisition submodule, for when detecting running background navigation process, obtaining in default first history The active call number that navigation process described in length is actively called;
    First judging submodule, for judging whether the active call number is more than or equal to default frequency threshold value;And
    First position acquisition submodule, for if so, then obtain the electronic equipment current location and with it is described navigate into Navigation purpose position corresponding to journey.
  10. 10. application process priority management device as claimed in claim 8, it is characterised in that the position acquisition module, bag Include:
    Apart from acquisition submodule, for when detecting running background navigation process, obtaining the electronic equipment default two Change in location distance between moment;
    Second judging submodule, for judging whether the change in location distance is more than default first distance threshold;And
    Second place acquisition submodule, for if so, then obtaining the current location and corresponding with the navigation process leading Navigate destination locations.
  11. 11. application process priority management device as claimed in claim 8, it is characterised in that the position acquisition module, bag Include:
    Time acquisition submodule, for when detecting running background navigation process, obtaining the navigation process in the second history The run time on system foreground is in duration;
    3rd judging submodule, for judging whether the run time is more than or equal to default time threshold;And
    3rd position acquisition submodule, for if so, then obtaining the current location and corresponding with the navigation process leading Navigate destination locations.
  12. 12. application process priority management device as claimed in claim 8, it is characterised in that the priority acquisition module, Including:
    4th judging submodule, for judging whether the distance between the current location and the navigation purpose position are small In default second distance threshold value;If, it is determined that the current location of the electronic equipment and the navigation purpose position are not Together.
  13. 13. application process priority management device as claimed in claim 8, it is characterised in that:
    Judge module, it is additionally operable to acquisition and meets between priority area corresponding to the keep-alive condition;Determine the excellent of the navigation process Whether first level is in the priority area;If, it is determined that the priority of the navigation process meets the keep-alive condition.
  14. 14. application process priority management device as claimed in claim 8, it is characterised in that the application process priority Managing device, in addition to:
    Priority recovery module, for when monitoring that the electronic equipment is currently located on the navigation purpose position, then By the priority before the preferential level restoration of the navigation process to the adjustment.
  15. 15. a kind of storage medium, it is characterised in that the storage medium stores a plurality of instruction, and a plurality of instruction is suitable to counting When being run on calculation machine so that the computer performs the application process priority management as described in claim 1 to 7 any one Method.
  16. 16. a kind of electronic equipment, it is characterised in that including processor and memory, a plurality of instruction of memory storage is described Processor is used to perform the application process as described in claim 1 to 7 any one by the instruction loaded in the memory Priority management method.
CN201710644133.6A 2017-07-31 2017-07-31 Application process priority management method, apparatus, storage medium and electronic equipment Pending CN107463445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710644133.6A CN107463445A (en) 2017-07-31 2017-07-31 Application process priority management method, apparatus, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710644133.6A CN107463445A (en) 2017-07-31 2017-07-31 Application process priority management method, apparatus, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN107463445A true CN107463445A (en) 2017-12-12

Family

ID=60547106

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710644133.6A Pending CN107463445A (en) 2017-07-31 2017-07-31 Application process priority management method, apparatus, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107463445A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918895A (en) * 2019-03-07 2019-06-21 上海掌门科技有限公司 For the method for output data, electronic equipment and computer-readable medium
CN111076741A (en) * 2019-12-03 2020-04-28 Oppo广东移动通信有限公司 Navigation state acquisition method and device, storage medium and electronic equipment
CN111813536A (en) * 2019-04-11 2020-10-23 华为技术有限公司 Task processing method, device, terminal and computer readable storage medium
CN113439253A (en) * 2019-04-12 2021-09-24 深圳市欢太科技有限公司 Application cleaning method and device, storage medium and electronic equipment
WO2022166675A1 (en) * 2021-02-04 2022-08-11 腾讯科技(深圳)有限公司 Method and apparatus for keeping client alive, and electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040031A1 (en) * 2006-08-10 2008-02-14 Ihung Tu Route condition evaluation method and apparatus for navigation system
US20080312817A1 (en) * 2007-06-08 2008-12-18 Aisin Aw Co., Ltd. Navigation apparatus and navigation program
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
CN105528052A (en) * 2015-12-09 2016-04-27 上海斐讯数据通信技术有限公司 Electronic equipment power consumption reduction method and device and electronic equipment with display screen
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080040031A1 (en) * 2006-08-10 2008-02-14 Ihung Tu Route condition evaluation method and apparatus for navigation system
US20080312817A1 (en) * 2007-06-08 2008-12-18 Aisin Aw Co., Ltd. Navigation apparatus and navigation program
CN103781057A (en) * 2014-01-08 2014-05-07 北京奇虎科技有限公司 Method and device for silently downloading upgrade package
CN105528052A (en) * 2015-12-09 2016-04-27 上海斐讯数据通信技术有限公司 Electronic equipment power consumption reduction method and device and electronic equipment with display screen
CN106604373A (en) * 2016-11-28 2017-04-26 深圳市金立通信设备有限公司 Method for managing power consumption and terminal
CN106648861A (en) * 2016-12-05 2017-05-10 广州优视网络科技有限公司 Method and device for keeping background service process activated

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109918895A (en) * 2019-03-07 2019-06-21 上海掌门科技有限公司 For the method for output data, electronic equipment and computer-readable medium
CN109918895B (en) * 2019-03-07 2023-07-14 上海掌门科技有限公司 Method, electronic device, and computer-readable medium for outputting data
CN111813536A (en) * 2019-04-11 2020-10-23 华为技术有限公司 Task processing method, device, terminal and computer readable storage medium
CN113439253A (en) * 2019-04-12 2021-09-24 深圳市欢太科技有限公司 Application cleaning method and device, storage medium and electronic equipment
CN113439253B (en) * 2019-04-12 2023-08-22 深圳市欢太科技有限公司 Application cleaning method and device, storage medium and electronic equipment
CN111076741A (en) * 2019-12-03 2020-04-28 Oppo广东移动通信有限公司 Navigation state acquisition method and device, storage medium and electronic equipment
CN111076741B (en) * 2019-12-03 2023-09-29 Oppo广东移动通信有限公司 Navigation state acquisition method and device, storage medium and electronic equipment
WO2022166675A1 (en) * 2021-02-04 2022-08-11 腾讯科技(深圳)有限公司 Method and apparatus for keeping client alive, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
CN107463445A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN107463435A (en) Application process priority management method, apparatus, storage medium and electronic equipment
CN108205451A (en) application management method, device, storage medium and electronic equipment
CN103476064A (en) Method and device for flow control of terminal device and terminal device
CN104735671A (en) Malicious call recognition method and device
CN105005909A (en) Method and device for predicting lost users
CN107357617A (en) Using update method, device, storage medium and electronic equipment
CN104243671A (en) Volume adjustment method and device and electronic device
CN107479954B (en) Process management method, device, storage medium and electronic equipment
CN106453597B (en) The method of adjustment of data synchronizing cycles, apparatus and system
CN104980455A (en) Multi-terminal data synchronization method based on cloud storage, device and system thereof
CN104142868A (en) Connection establishment method and device
CN104378488A (en) Harassing call processing method and device
CN104954159A (en) Network information statistics method and device
CN104104711A (en) Reading history processing method and device
CN106293738A (en) The update method of a kind of facial expression image and device
CN103713943A (en) Native terminal operating system based application function realization method and device
CN104253870A (en) Method and device for controlling data access period
CN105205066B (en) Picture searching method and device
CN103533139B (en) Data management method and device of multi-card user and mobile terminal
CN108038050B (en) Performance adjusting method and device, storage medium and electronic equipment
CN103631592B (en) A kind of configuration, call method, device and equipment that shows resource
CN104917905A (en) Strange incoming call processing method, terminal and server
CN104780234A (en) Method, device and system for inquiring Internet protocol (IP) address location
CN107908273B (en) Application management method and device, storage medium and electronic equipment

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

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

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

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

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171212