CN105554104B - According to GPS satellite number bolt down procedure running background method and device - Google Patents
According to GPS satellite number bolt down procedure running background method and device Download PDFInfo
- Publication number
- CN105554104B CN105554104B CN201510933774.4A CN201510933774A CN105554104B CN 105554104 B CN105554104 B CN 105554104B CN 201510933774 A CN201510933774 A CN 201510933774A CN 105554104 B CN105554104 B CN 105554104B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- gps
- satellite
- application program
- threshold value
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses it is a kind of according to GPS satellite number bolt down procedure running background method and device, method includes the following steps: whether thering is social category application program to be in background operation state in detection mobile terminal and initiating GPS positioning request on backstage, to call GPS positioning function;If so, whether the GPS module for then detecting mobile terminal currently searches effective visible satellite;If currently not searching effective visible satellite, the running background of the social category application program is closed;If current search judges whether effective visible satellite number is less than preset number threshold value to effective visible satellite;If effective visible satellite number is less than preset number threshold value, the running background of the social category application program is closed.The present invention solves social category application program and often initiates GPS positioning request when GPS positioning service environment is poor, leads to long-term occupying system resources, serious the problem of reducing equipment cruise duration.
Description
Technical field
The present invention relates to technical field of mobile terminals, more specifically, be related to it is a kind of according to GPS satellite number close journey
Method and device of the sequence in running background.
Background technique
Currently, GPS is increasingly liked by user as a kind of location service function convenient to use, therefore mobile
Social category application program in terminal, such as QQ, wechat also it is more and more common will GPS positioning function be added program in.
However, when these social category application programs are in running background, if mobile terminal is in the poor ring of GPS positioning
When border, and system initiates GPS positioning access request again, at this time can unconfined access CPU and Internet resources, if user
It is closed not in time by serious waste electricity, the cruise duration of strong influence mobile terminal.
Summary of the invention
It is an object of the invention to overcome drawbacks described above in the prior art, provide a kind of according to the closing of GPS satellite number
For program in the method and device of running background, it is frequent when GPS positioning service environment is poor which solve social category application programs
GPS positioning request is initiated, long-term occupying system resources are caused, serious the problem of reducing equipment cruise duration.
To achieve the above object, first aspect present invention provide it is a kind of according to GPS satellite number bolt down procedure backstage
The method of operation, comprising the following steps:
Whether there is social category application program to be in background operation state in detection mobile terminal and initiates GPS positioning on backstage
Request, to call GPS positioning function;
If thering is social category application program to be in background operation state in mobile terminal and initiating GPS positioning request on backstage,
Whether the GPS module for then detecting mobile terminal currently searches effective visible satellite;
If the GPS module of mobile terminal does not search effective visible satellite currently, the social category application journey is closed
The running background of sequence;
If the GPS module current search of mobile terminal judges effective visible satellite number to effective visible satellite
Whether preset number threshold value is less than;
If effective visible satellite number is less than preset number threshold value, the backstage of the social category application program is closed
Operation.
Preferably, whether the GPS module of the detection mobile terminal currently searches the step of effective visible satellite
Suddenly it specifically includes:
Whether the GPS module for detecting mobile terminal is higher than in the satellite-signal power for scanning for receiving when tracking processing
Preset detection threshold value;
If the satellite-signal power received is higher than preset detection threshold value, judgement searches effectively visible defend
Star.
Preferably, the step for whether thering is social category application program to be in background operation state in the detection mobile terminal
Suddenly it specifically includes:
Into the task management module of mobile terminal, social category application program is detected by the process of inquiry application
Whether background operation state is in.
Preferably, in the above-mentioned methods, the number threshold value is set as 3~4.
If preferably, the mobile terminal GPS module current search to effective visible satellite, judgement has
After the step of whether the visible satellite number of effect is less than preset number threshold value further include:
If effective visible satellite number is greater than or equal to preset number threshold value, the social category application program is maintained
Background operation state.
Second aspect of the present invention provide it is a kind of according to GPS satellite number bolt down procedure running background device, comprising:
Whether background program request detection module has social category application program to be in backstage fortune for detecting in mobile terminal
Row state and backstage initiate GPS positioning request, to call GPS positioning function;
Visible satellite detection module, if for have in mobile terminal social category application program be in background operation state and
GPS positioning request is initiated on backstage, then whether the GPS module for detecting mobile terminal currently searches effective visible satellite;
Judgment module, if the GPS module current search for mobile terminal is to effective visible satellite, judgement is effectively
Whether visible satellite number is less than preset number threshold value;
Background program closedown module, if the GPS module for mobile terminal does not search effective visible satellite currently,
Close the running background of the social category application program;And if effective visible satellite number is less than preset number threshold value,
Then close the running background of the social category application program.
Preferably, the GPS module that the visible satellite detection module is further used for detecting mobile terminal is carrying out
Whether the satellite-signal power received when search and track processing is higher than preset detection threshold value;If the satellite-signal received
Power is higher than preset detection threshold value, then determines to search effective visible satellite.
Preferably, the background program request detection module is further used for the task management mould into mobile terminal
Block, detects whether social category application program is in background operation state by the process of inquiry application.
Preferably, the number threshold value is set as 3~4 in above-mentioned apparatus.
Third aspect present invention provides a kind of mobile terminal comprising according to GPS satellite described in above-mentioned technical proposal
Device of the number bolt down procedure in running background.
Compared with prior art, the beneficial effects of the present invention are:
The present invention has social category application program to be in background operation state and initiate on backstage in detecting mobile terminal
When GPS positioning is requested, whether the GPS module that can detect mobile terminal currently searches effective visible satellite, and judges have
Whether the visible satellite number of effect is less than preset number threshold value, if not searching effective visible satellite or searching
Effective visible satellite number is less than preset number threshold value, then determines that mobile terminal cannot provide GPS positioning function, social category
Application program is currently at poor GPS positioning service environment, closes the running background of social category application program in time at this time, prevents
Only social category application program often initiates GPS positioning request when GPS positioning service environment is poor, it is avoided to occupy system for a long time
Resource greatly improves the cruise duration of equipment.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 be the embodiment of the present invention one provide it is a kind of according to GPS satellite number bolt down procedure running background method
Flow chart;
Fig. 2 be it is provided by Embodiment 2 of the present invention it is a kind of according to GPS satellite number bolt down procedure running background device
Structural block diagram.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the present invention one provide it is a kind of according to GPS satellite number bolt down procedure running background method, under
Face is described in detail the present embodiment in conjunction with attached drawing.Fig. 1 is the method flow diagram of the embodiment of the present invention one, referring to FIG. 1, this
The methods of inventive embodiments the following steps are included:
Step S101, whether detect has social category application program to be in background operation state and send out on backstage in mobile terminal
GPS positioning request is played, to call GPS positioning function;
Specifically, the social category application program can be the application programs such as QQ, wechat, whasapp, and certainly, the present invention
Technical solution be readily applicable to other application programs for needing to call GPS positioning function.
Furthermore, detect in mobile terminal whether have the step of social category application program is in background operation state tool
Body includes:
Into the task management module of mobile terminal, social category application program is detected by the process of inquiry application
Whether background operation state is in.
When social category application program is in running background and when needing to detect geographical location, these social category application programs will
GPS positioning request is initiated to the GPS module of mobile terminal to call GPS positioning function.If there is social category application in mobile terminal
Program is in background operation state and initiates GPS positioning request on backstage, thens follow the steps S102.
Step S102, whether the GPS module for detecting mobile terminal currently searches effective visible satellite;
Furthermore, step S102 can with specifically includes the following steps:
Whether the GPS module for detecting mobile terminal is higher than in the satellite-signal power for scanning for receiving when tracking processing
Preset detection threshold value;
If the satellite-signal power received is higher than preset detection threshold value, judgement searches effectively visible defend
Star.
Wherein, if the GPS module current search of mobile terminal thens follow the steps S103 to effective visible satellite, if moving
The GPS module of dynamic terminal does not search effective visible satellite while being 0 (search star number) currently, thens follow the steps S104.
Step S103, judge whether effective visible satellite number is less than preset number threshold value;
Wherein, the number threshold value can be preferably arranged to 3~4.If effective visible satellite number is less than preset
Number threshold value, at such as less than 3, then mobile terminal cannot provide satellite navigation and positioning function at this time, and mobile terminal is currently at
Poor GPS positioning service environment, it is therefore desirable to execute step S104;If effective visible satellite number is greater than or equal to default
Number threshold value, then follow the steps S105.
Step S104, the running background of the social category application program is closed.
Step S105, the background operation state of the social category application program is maintained.
Method of the invention can close the running background of application program according to the number of usable satellite, can prevent social activity
Class application program often initiates GPS positioning request when GPS positioning service environment is poor, avoids its long-term occupying system resources,
Greatly improve the non-cruise duration of equipment.
Embodiment two
The embodiment of the present invention two provide it is a kind of according to GPS satellite number bolt down procedure in the device of running background, ask
With reference to Fig. 2, the device of the embodiment of the present invention includes background program request detection module 1, visible satellite detection module 2, judges mould
Block 3 and background program closedown module 4 below will be described in detail the principle of above-mentioned module.
Whether background program request detection module 1 has social category application program to be in backstage for detecting in mobile terminal
Operating status and backstage initiate GPS positioning request, to call GPS positioning function.
Specifically, the background program request detection module 1 can further pass through the task management into mobile terminal
Module, and the process of inquiry application detects whether social category application program is in background operation state.
When social category application program is in running background and when needing to detect geographical location, these social category application programs will
GPS positioning request is initiated to the GPS module of mobile terminal to call GPS positioning function.If there is social category application in mobile terminal
Program is in background operation state and initiates GPS positioning request on backstage, then can start visible satellite detection module 2.
Visible satellite detection module 2, if for have in mobile terminal social category application program be in background operation state and
GPS positioning request is initiated on backstage, then whether the GPS module for detecting mobile terminal currently searches effective visible satellite;
Specifically, the GPS module that the visible satellite detection module 2 can be further used for detecting mobile terminal is carrying out
Whether the satellite-signal power received when search and track processing is higher than preset detection threshold value;If the satellite-signal received
Power is higher than preset detection threshold value, then determines to search effective visible satellite.
Judgment module 3, if the GPS module current search for mobile terminal is to effective visible satellite, judgement is effectively
Visible satellite number whether be less than preset number threshold value.
Wherein, the number threshold value can be preferably arranged to 3~4.If effective visible satellite number is less than preset
Number threshold value, at such as less than 3, then mobile terminal cannot provide satellite navigation and positioning function at this time, and mobile terminal is currently at
Poor GPS positioning service environment, therefore can star background program closedown module 4.If effective visible satellite number is greater than
Or be equal to preset number threshold value, then maintain the background operation state of the social category application program.
Background program closedown module 4, if the GPS module for mobile terminal does not search effective visible satellite currently,
Then close the running background of the social category application program;And if effective visible satellite number is less than preset number threshold
Value, then close the running background of the social category application program.
The device of the invention can close the running background of application program according to the number of usable satellite, can prevent social activity
Class application program often initiates GPS positioning request when GPS positioning service environment is poor, avoids its long-term occupying system resources,
Greatly improve the non-cruise duration of equipment.
When it is implemented, described in above-described embodiment according to GPS satellite number bolt down procedure the device of running background can
To be set in mobile terminal.Wherein, the mobile terminal can be mobile phone, tablet computer, human-computer interaction terminal or other have
The mobile terminal device of GPS positioning function.
It should be noted that according to GPS satellite number bolt down procedure in running background described in above-described embodiment, only more than
The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional module complete, i.e., the internal structure of system is divided into different functional modules, with complete it is described above whole or
Person's partial function.
Those of ordinary skill in the art will appreciate that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, the program can be stored in a computer-readable storage medium
In, the storage medium, such as ROM/RAM, disk, CD.
The above embodiment is a preferred embodiment of the present invention, but embodiments of the present invention are not by above-described embodiment
Limitation, other any changes, modifications, substitutions, combinations, simplifications made without departing from the spirit and principles of the present invention,
It should be equivalent substitute mode, be included within the scope of the present invention.
Claims (8)
1. it is a kind of according to GPS satellite number bolt down procedure running background method, which is characterized in that this method includes following step
It is rapid:
Whether there is social category application program to be in background operation state and initiate GPS positioning on backstage in detection mobile terminal to ask
It asks, to call GPS positioning function;
If thering is social category application program to be in background operation state in mobile terminal and initiating GPS positioning request on backstage, examine
Whether the GPS module for surveying mobile terminal is higher than preset detection in the satellite-signal power for scanning for receiving when tracking processing
Threshold value;If the satellite-signal power received is higher than preset detection threshold value, judgement searches effective visible satellite;
If the GPS module of mobile terminal does not search effective visible satellite currently, the social category application program is closed
Running background;
If whether the GPS module current search of mobile terminal judges effective visible satellite number to effective visible satellite
Less than preset number threshold value;
If effective visible satellite number is less than preset number threshold value, the backstage fortune of the social category application program is closed
Row.
2. it is according to claim 1 according to GPS satellite number bolt down procedure running background method, which is characterized in that
Whether there is the step of social category application program is in background operation state to specifically include in the detection mobile terminal:
Into the task management module of mobile terminal, social category application program is detected by the process of inquiry application whether
In background operation state.
3. it is according to claim 1 according to GPS satellite number bolt down procedure running background method, which is characterized in that
The number threshold value is set as 3~4.
4. it is according to claim 1 according to GPS satellite number bolt down procedure running background method, which is characterized in that
If the mobile terminal GPS module current search to effective visible satellite, judge that effective visible satellite number is
After no the step of being less than preset number threshold value further include:
If effective visible satellite number is greater than or equal to preset number threshold value, after maintaining the social category application program
Platform operating status.
5. it is a kind of according to GPS satellite number bolt down procedure running background device, which is characterized in that the device includes:
Whether background program request detection module has social category application program to be in running background shape for detecting in mobile terminal
State and backstage initiate GPS positioning request, to call GPS positioning function;
Visible satellite detection module, if for there is social category application program to be in background operation state and on backstage in mobile terminal
GPS positioning request is initiated, then detects the GPS module of mobile terminal in the satellite-signal function for scanning for receiving when tracking processing
Whether rate is higher than preset detection threshold value;If the satellite-signal power received is higher than preset detection threshold value, determine
Search effective visible satellite;
Judgment module, if the GPS module current search for mobile terminal judges effective visible to effective visible satellite
Whether number of satellite is less than preset number threshold value;
Background program closedown module is closed if the GPS module for mobile terminal does not search effective visible satellite currently
The running background of the social category application program;And if effective visible satellite number is less than preset number threshold value, closes
Close the running background of the social category application program.
6. it is according to claim 5 according to GPS satellite number bolt down procedure running background device, which is characterized in that
The background program request detection module is further used for the task management module into mobile terminal, passes through inquiry application
Process detect whether social category application program is in background operation state.
7. it is according to claim 5 according to GPS satellite number bolt down procedure running background device, which is characterized in that
The number threshold value is set as 3~4.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes basis described in any one of claim 5~7
Device of the GPS satellite number bolt down procedure in running background.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510933774.4A CN105554104B (en) | 2015-12-14 | 2015-12-14 | According to GPS satellite number bolt down procedure running background method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510933774.4A CN105554104B (en) | 2015-12-14 | 2015-12-14 | According to GPS satellite number bolt down procedure running background method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105554104A CN105554104A (en) | 2016-05-04 |
CN105554104B true CN105554104B (en) | 2018-12-11 |
Family
ID=55833036
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510933774.4A Active CN105554104B (en) | 2015-12-14 | 2015-12-14 | According to GPS satellite number bolt down procedure running background method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105554104B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108271238A (en) * | 2017-01-04 | 2018-07-10 | 中兴通讯股份有限公司 | The power-saving method and terminal device of a kind of terminal device |
DE102018206789A1 (en) * | 2018-05-03 | 2019-11-07 | Robert Bosch Gmbh | Method for operating a GNSS receiver |
CN111045044A (en) * | 2019-10-14 | 2020-04-21 | 广东星舆科技有限公司 | Control method, device and medium for high-precision positioning |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104793995A (en) * | 2015-04-27 | 2015-07-22 | 广东欧珀移动通信有限公司 | Method and device for controlling GPS invocation |
CN104822133A (en) * | 2015-04-22 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for controlling positioning mode of intelligent terminal |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8489111B2 (en) * | 2007-08-14 | 2013-07-16 | Mpanion, Inc. | Real-time location and presence using a push-location client and server |
-
2015
- 2015-12-14 CN CN201510933774.4A patent/CN105554104B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104822133A (en) * | 2015-04-22 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for controlling positioning mode of intelligent terminal |
CN104793995A (en) * | 2015-04-27 | 2015-07-22 | 广东欧珀移动通信有限公司 | Method and device for controlling GPS invocation |
Also Published As
Publication number | Publication date |
---|---|
CN105554104A (en) | 2016-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106507445B (en) | Wireless fidelity Wi-Fi scanning method and mobile terminal | |
CN102298532B (en) | Startup-item-based management method and device | |
CN109698934B (en) | Region monitoring method and device | |
US20170048789A1 (en) | Switching Between Networks Based on Quality of Available Networks | |
CN105554104B (en) | According to GPS satellite number bolt down procedure running background method and device | |
CN109121149B (en) | Wireless network autonomous optimization method, device, equipment and storage medium | |
CN105960004B (en) | Mobile terminal positioning function control method and mobile terminal | |
MY202019A (en) | Method, apparatus and server for account login | |
WO2012040692A3 (en) | Presenting social search results | |
CN105100032A (en) | Method and apparatus for preventing resource steal | |
CN102819713A (en) | Method and system for detecting security of popup window | |
CN111274340A (en) | People flow density monitoring processing method, equipment and storage medium | |
KR20200091895A (en) | Distributed identification of network systems | |
CN107402851A (en) | A kind of data recovery control method and device | |
CN105573470A (en) | Method and apparatus for closing GPS positioning request of background program according to access time | |
CN108718440A (en) | A kind of safety protection method and platform of sensitizing range | |
CN112953920B (en) | Monitoring management method based on cloud mobile phone | |
US11943127B2 (en) | Network-based control method for power consumption of applications, terminal and storage medium | |
CN104426836A (en) | Invasion detection method and device | |
CN107220003B (en) | Data reading method and system | |
CN107248277A (en) | A kind of shared bicycle empty wagons prediction system for prompting | |
CN108770014B (en) | Calculation evaluation method, system and device of network server and readable storage medium | |
CN105095781B (en) | A kind of application program access rights system for prompting and method | |
WO2018082252A1 (en) | Detection processing method, apparatus and device for mobile terminal and computer storage medium | |
CN108419238A (en) | A kind of method and device of detection rogue AP |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |