CN109164477A - A kind of method and mobile terminal of application positioning - Google Patents
A kind of method and mobile terminal of application positioning Download PDFInfo
- Publication number
- CN109164477A CN109164477A CN201810997564.5A CN201810997564A CN109164477A CN 109164477 A CN109164477 A CN 109164477A CN 201810997564 A CN201810997564 A CN 201810997564A CN 109164477 A CN109164477 A CN 109164477A
- Authority
- CN
- China
- Prior art keywords
- application
- mobile terminal
- mode
- location information
- target application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
- G01S19/45—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
- G01S19/46—Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement the supplementary measurement being of a radio-wave signal type
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S5/00—Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
- G01S5/0009—Transmission of position information to remote stations
- G01S5/0018—Transmission from mobile station to base station
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W64/00—Locating users or terminals or network equipment for network management purposes, e.g. mobility management
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
This application discloses the method and mobile terminal of a kind of application positioning, this method is applied to mobile terminal, this method comprises: obtaining target application Location Request, wherein the Location Request positions the mobile terminal for requesting;If the target application belongs to the first application type, the mobile terminal is positioned using network positions mode, obtains the first location information;If the target application belongs to the second application type, the mobile terminal is positioned using the network positions mode or satellite positioning mode, obtains the second location information.By this method, it is possible to prevente effectively from different types of application program uses identical positioning strategy, unnecessary function loss is reduced, user experience is improved.
Description
Technical field
This application involves field of computer technology, especially relate to the method and mobile terminal of a kind of application positioning.
Background technique
With the development of terminal technology, especially mobile terminal (such as mobile phone or tablet computer) at for people's lives must
Estovers.And the function of mobile terminal is also continuously increased and perfect, such as the positioning function of application program.Positioning function to people with
Convenience in life is carried out.
Different applications can use different positioning methods, and first kind application is only needed using based on network positions mode
Location information, such as weather application etc..In addition, also some application can be simultaneously emitted by based on network positions mode carry out positioning and base
In the Location Request that satellite positioning mode is positioned, it is generally the case that carry out positioning needs using based on network positions mode
Time can be considerably less than using based on satellite positioning mode carry out positioning needs time, so using can first receive based on net
The location information that network positioning method obtains.After receiving above-mentioned location information, the second class application therein can be cancelled based on satellite
The Location Request that positioning method is positioned, but third class therein application still will continue to keep carrying out based on satellite positioning mode
The Location Request of positioning, until getting the location information based on satellite positioning mode.
Although however, the second class application do not get the location information based on satellite positioning mode, can be in movement
Flash the icon of satellite positioning in terminal, to bring puzzlement to user, meanwhile, the second class, which is applied, to be sent and is cancelling based on defending
During the Location Request of star positioning method, certain power consumption can be also caused to mobile terminal.And it is directed to the application of third class, by
It is more accurate in the location information that satellite positioning mode obtains, and the application of third class has also carried out network positions, to increase
The power consumption of mobile terminal.
Summary of the invention
The embodiment of the present application provides a kind of method of application positioning, to solve the loss of Location Request processing in the prior art
It is larger, the poor problem of user experience.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, a kind of method of application positioning provided by the embodiments of the present application, is applied to mobile terminal, the method
Include:
Obtain the Location Request of target application, wherein the Location Request determines the mobile terminal for requesting
Position;
If the target application belongs to the first application type, the mobile terminal is carried out using network positions mode
Positioning, obtains the first location information;
If the target application belongs to the second application type, the network positions mode or satellite positioning mode are used
The mobile terminal is positioned, the second location information is obtained.
Optionally, if the target application belongs to the first application type, using network positions mode to described
Mobile terminal is positioned, before obtaining the first location information, the method also includes:
If after the location information for getting the target application based on network positions mode, the Location Request is taken
Disappear, then application type belonging to the target application is labeled as doubtful first application type;
If the number that application type belonging to the target application is marked as doubtful first application type is more than predetermined
Frequency threshold value, it is determined that application type belonging to the target application is the first application type.
Optionally, if the target application belongs to the first application type, using network positions mode to described
Mobile terminal is positioned, and the first location information is obtained, comprising:
If the target application belongs to the first application type, pre-stored targeting information, the mesh are obtained
Marking location information is the location information obtained based on the network positions mode;
The targeting information is determined as the first location information.
Optionally, if the second application type of the target application data, using the network positions mode or
Satellite positioning mode positions the mobile terminal, before obtaining the second location information, the method also includes:
If after the location information for getting the target application based on network positions mode, the Location Request is not taken
Disappear, then application type belonging to the target application is labeled as the second application type.
Optionally, if the target application belongs to the second application type, the network positions or satellite are used
Positioning method positions the mobile terminal, obtains the second location information, comprising:
If the target application is the second application type, and the positioning signal of satellite positioning mode is low in scheduled duration
In predetermined signal strength threshold value, then the light intensity of current environment is obtained;
If the light intensity is greater than preset strength threshold value, is positioned, obtained according to the satellite positioning mode
Second location information;
If the light intensity is not more than preset strength threshold value, is positioned, obtained according to the network positions mode
To the second location information.
Optionally, if the light intensity is not more than preset strength threshold value, according to the network positions mode
It is positioned, after obtaining the second location information, the method also includes:
Light intensity when the light intensity for detecting current environment changes, and after changing is greater than preset strength
Threshold value is then positioned according to the satellite positioning mode, obtains the second location information.
Optionally, the light intensity for obtaining current environment, comprising:
When reaching default light detection cycle, the light intensity of current environment is obtained by photosensitive sensor.
Second aspect, the embodiment of the present application provide a kind of mobile terminal, and the mobile terminal includes:
Request module, for obtaining the Location Request of target application, wherein the Location Request is for requesting to institute
Mobile terminal is stated to be positioned;
First processing module uses network positions mode if belonging to the first application type for the target application
The mobile terminal is positioned, the first location information is obtained;
Second processing module uses the network positions if belonging to the second application type for the target application
Mode or satellite positioning mode position the mobile terminal, obtain the second location information.
Optionally, the mobile terminal further include:
First mark module, if after location information for getting the target application based on network positions mode,
The Location Request is cancelled, then application type belonging to the target application is labeled as doubtful first application type;
First confirmation module, if being marked as doubtful first using class for application type belonging to the target application
The number of type is more than pre-determined number threshold value, it is determined that application type belonging to the target application is the first application type.
Optionally, the first processing module, comprising:
First positioning acquiring unit, if belonging to the first application type for the target application, acquisition is stored in advance
Targeting information, the targeting information is the location information obtained based on the network positions mode;
The target is positioned and is believed if belonging to the first application type for the target application by position determination unit
Breath is determined as the first location information.
Optionally, the mobile terminal further include:
Second confirmation module, if after location information for getting the target application based on network positions mode,
The Location Request is not cancelled, then application type belonging to the target application is labeled as the second application type.
Optionally, the Second processing module, comprising:
Detection unit, if being used for second application type, and the positioning of satellite positioning mode is believed in scheduled duration
Number be lower than predetermined signal strength threshold value, then obtain the light intensity of current environment;
Second positioning acquiring unit, if being greater than preset strength threshold value for the light intensity, according to the satellite
Positioning method is positioned, and the second location information is obtained;
Third positions acquiring unit, if being not more than preset strength threshold value for the light intensity, according to the net
Network positioning method is positioned, and the second location information is obtained.
Optionally, the mobile terminal further include:
4th positioning obtains module, for changing when the light intensity for detecting current environment, and after variation
Light intensity be greater than preset strength threshold value, then positioned according to the satellite positioning mode, obtain the second location information.
Optionally, the detection unit, for being worked as by photosensitive sensor acquisition when reaching default light detection cycle
The light intensity of preceding local environment.
The third aspect, the embodiment of the present application provide a kind of mobile terminal, including processor, memory and are stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
The step of method of application positioning provided by the above embodiment.
Fourth aspect, a kind of computer readable storage medium of the embodiment of the present application, on the computer readable storage medium
Store computer program, the computer program realizes application positioning provided by the above embodiment method when being executed by processor
The step of.
As can be seen from the technical scheme provided by the above embodiments of the present application, the embodiment of the present application is asked in acquisition target application positioning
After asking, if target application belongs to the first application type, the mobile terminal is positioned using network positions mode, is obtained
To the first location information, if target application belongs to the second application type, the more satellite positioning modes of network positions mode are used
Mobile terminal is positioned, the second location information is obtained, it, can be according to application when receiving the Location Request of application program
Type belonging to program takes corresponding positioning strategy to be positioned, to reduce unnecessary function loss, improves and uses
Family experience.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen
Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the embodiment of the method for application positioning of the present invention;
Fig. 2 is a kind of schematic diagram of application positioning of the present invention;
Fig. 3 is the flow chart of the embodiment of the method for another application positioning of the present invention;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided by the invention;
Fig. 5 is a kind of structural schematic diagram of mobile terminal of the present invention.
Specific embodiment
The embodiment of the present application provides the method and mobile terminal of a kind of application positioning.For purpose, the technical side for making the application
Case and advantage are clearer, carry out below in conjunction with the application specific embodiment and corresponding attached drawing to technical scheme clear
Chu is fully described by.Obviously, the described embodiments are only a part but not all of the embodiments of the present application.Base
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
His embodiment, shall fall in the protection scope of this application.
Embodiment one
As shown in Figure 1, the embodiment of the present application provides a kind of method of application positioning, the executing subject of this method can be shifting
Dynamic terminal, the mobile terminal can such as mobile phone, tablet computer mobile terminal, which can be movement that user uses
Terminal.This method can be used in the Location Request for receiving application, take corresponding positioning according to using affiliated type
Strategy is positioned.This method can specifically include following steps:
In step s 102, obtain the Location Request of target application, wherein Location Request for request to mobile terminal into
Row positioning.
Wherein, target application, which can be, can request or trigger the application program that mobile terminal is positioned, such as can be with
There is provided the map application of position enquiring and navigation Service, provide position share, check near the social application of people etc..Target is answered
Location Request can be mobile terminal and obtain by specific location technology the location information of mobile terminal, and (longitude and latitude is sat
Mark etc.) message.Wherein, the mode based on network positions can be between the base station and mobile terminal according to mobile operation network
The mode that measuring and calculating distance positions mobile terminal.Mode based on satellite positioning can be to be positioned by satellite-signal
Mode, for example, the mode positioned based on GPS (Global Positioning System, global positioning system), base
The mode positioned in Galilean satellite positioning system or the mode etc. positioned based on Beidou satellite navigation system.
In an implementation, the positioning function of application brings many conveniences to people's life, has become in people's life
Not retrievable important tool.Positioning function provides for people based on network positions and based on a variety of positioning sides such as satellite positionings
Formula, can provide a variety of different locational requirements for people, for example, by positioning function for user provide real-time navigation Service,
Quick weather lookup service, convenient and fast position shared service etc..
In general, the Location Request that application issues can be used for requesting to be carried out based on network positions mode positioning or based on defending
Star positioning method is positioned.Different applications can only be needed using different positioning methods, first kind application using based on net
The location information of network positioning method, such as weather application etc..In addition, also some applications can be simultaneously emitted by based on network positions mode
Carry out the Location Request for positioning and being positioned based on satellite positioning mode, it is generally the case that using based on network positions mode
The time for carrying out positioning needs can be considerably less than using the time of positioning needs is carried out based on satellite positioning mode, so applying meeting
First receive the location information obtained based on network positions mode.After receiving above-mentioned location information, the second class therein applies meeting
Cancel the Location Request positioned based on satellite positioning mode, but third class therein application still will continue to keep based on satellite
The Location Request that positioning method is positioned, until getting the location information based on satellite positioning mode.Obviously, aforesaid way
The certain power consumption of mobile terminal can be consumed, for this purpose, the embodiment of the present application provides a kind of feasible solution, can specifically include
The following contents:
When user starts certain application (i.e. target application) or triggers the positioning function of the application (i.e. target application), mesh
The information such as mark, the current time of the available target application of mark application, and positioning is generated using the information of above-mentioned acquisition
Request, wherein the Location Request needs to request mobile terminal while be based on network positions mode and satellite positioning mode is determined
Position.Then, which can be supplied to mobile terminal by corresponding routine interface by target application, thus mobile terminal
The available Location Request to target application, the Location Request position the mobile terminal for requesting.
In step S104, if target application belongs to the first application type, using network positions mode to mobile whole
End is positioned, and the first location information is obtained.
In an implementation, in the terminal, usual user will be installed multiple applications, each using positioning method
May be different, in order to enable it is different using corresponding positioning method, the application of installation can be divided in advance
Class.For example, being equipped with n application in the mobile terminal of user, user (such as can want positioning duration according to their own needs
Ask or the requirement to positioning accuracy etc.) classify to application, during classifying to application, can be answered for each
With corresponding type identification is all added, so as to which the application installed in mobile terminal is divided into the first application type and second
Application type.In addition, the first application type database and the second application type data can also be created in order to which subsequent processing is convenient
Library is respectively used to the mark of the mark of the application of the first application type of storage and the application of the second application type.
When mobile terminal is when getting Location Request, the mark of target application can be extracted from the Location Request, so
Afterwards, the type identification of the corresponding target application of the mark can be determined, if the type is identified as the type of the first application type
Mark, then can determine that target application belongs to the first application type.Alternatively, can the mark based on target application arrive respectively it is above-mentioned
It is searched in first application type database and the second application type database, if found in the first application type database
The mark of target application can then determine that target application belongs to the first application type.
After determining that target application belongs to the first application type through the above way, it can be carried out by network positions mode
Positioning, obtains the first location information.
For example, user is equipped with weather application in the terminal and is marked as the first application type, then work as user
Weather application is opened, when refreshing Weather information, weather application can be sent to mobile terminal by corresponding routine interface and be based on net
Network positioning method carries out the Location Request for positioning and being positioned based on satellite positioning mode, wherein may be used also in the Location Request
With information such as the mark and the request times that carry weather application, when acquisition for mobile terminal is to Location Request, from Location Request
It is middle to extract the mark wherein carried.Class can be applied in the first application type database and second respectively by the mark of extraction
Matched and searched is carried out in type database, if the weather application has been found in the first application type database, for day
The Location Request that gas application issues, mobile terminal can be positioned based on network positions mode, obtain the first location information, and
First location information is returned into weather application.
In step s 106, if target application belongs to the second application type, network positions mode or satellite are used
Position mode positions mobile terminal, obtains the second location information.
In an implementation, by step S104 it is found that user will can apply in advance according to their own needs is divided into the first application
Type and the second application type, and the mark of application can be classified and be stored in the first application type database and second using class
In type database.When the mark by extracting from Location Request determines that the mark of target application is located at the second application type data
When in library, can determine that target application belongs to the second application type, at this point, mobile terminal can be used network positions mode or
Satellite positioning mode is positioned.And positioned especially by any positioning method, it can be selected in several ways
It selects, for example, mobile terminal can judge to be positioned using network positions mode by detecting the power of satellite-signal, still
It is positioned using satellite positioning mode, specifically such as, when mobile terminal detects the intensity of current satellite signal lower than predetermined
When threshold value, satellite positioning mode can be used to be positioned, otherwise, network positions mode can be used to be positioned;Or
Person, mobile terminal can obtain the second location information to be preferentially based on being positioned in a manner of satellite positioning, and be based on satellite positioning
During mode is positioned, the case where if there is that can not position or the second location information can not be got, mobile terminal
Restart and positioned based on network positions mode, obtains the second location information.
For example, user is equipped with map application in the terminal, and has been marked as the second application type, work as user
When opening the positioning function of map application, map application can be sent to mobile terminal by corresponding interface and be based on network positions side
Formula carries out positioning and based on the Location Request that satellite positioning mode is positioned, as shown in Figure 2, wherein in the Location Request also
The information such as mark and the request time of map application can be carried.When acquisition for mobile terminal is to Location Request, asked from positioning
The middle mark extracted and wherein carried is sought, matching is carried out in the first application type database and the second application type database respectively and looks into
It looks for, if having found the mark of map application in the second application type database, can determine that target application belongs to
Two application types.At this point, mobile terminal can by preferentially be based on satellite positioning in a manner of positioned, obtain the second location information, and
The location information is returned into map application.And during being positioned based on satellite positioning mode, if there is can not
When the case where positioning or can not getting corresponding location information, mobile terminal can star to be determined based on network positions mode
Position, obtains the second location information, and the second location information is returned to map application.
The embodiment of the present application provides a kind of method of application positioning, after obtaining target application Location Request, if target
Using the first application type is belonged to, then the mobile terminal is positioned using network positions mode, obtains the first positioning letter
Breath, if target application belongs to the second application type, using the network positions mode or satellite positioning mode to mobile whole
End is positioned, and the second location information is obtained.It, can basis when receiving the Location Request of application program by this method
Type belonging to application program takes corresponding positioning strategy to be positioned, to reduce unnecessary function loss, improves
User experience.
Embodiment two
The embodiment of the present application provides a kind of method of application positioning, and the executing subject of this method can be mobile terminal, should
Mobile terminal can such as mobile phone, tablet computer mobile terminal, the mobile terminal which can use for user.The party
Method can be used in the Location Request for receiving application, take corresponding positioning strategy to be determined according to using affiliated type
Position.This method can specifically include following steps:
It is positioned to different types of using positioning method corresponding with its type to realize, it can be to asking
Seek being judged using affiliated type for positioning, judgment mode therein is in addition to can be to provide in through the foregoing embodiment one
Mode can also be accomplished in several ways, a kind of optional processing mode presented below can specifically include following outside realizing
Step S302~S308.
In step s 302, obtain the Location Request of target application, wherein Location Request for request to mobile terminal into
Row positioning.
The processing of above-mentioned S302 may refer to the related content of S102 in above-described embodiment one, and details are not described herein.
In step s 304, if after getting the location information of target application based on network positions mode, Location Request
It is cancelled, then application type belonging to target application is labeled as doubtful first application type.
In an implementation, it is generally the case that can be considerably less than using the time for carrying out positioning needs based on network positions mode
Using the time for carrying out positioning needs based on satellite positioning mode, so target application can be initially received based on network positions side
The location information of formula, if mobile terminal, which eliminates, to continue to carry out based on satellite positioning mode after receiving the location information
Target application can be then determined as doubtful first application type by the Location Request of positioning.It can will be answered belonging to target application
It is that doubtful first application type (specifically can be such as marked by way of label is arranged for the target application with type mark
Deng).
In step S306, if application type belonging to target application is marked as the number of doubtful first application type
More than pre-determined number threshold value, it is determined that application type belonging to target application is the first application type.
Wherein, the number for being marked as doubtful first application type can be certain and apply quilt during carrying out Location Request
The cumulative number of label adds up before if same application is one or many to be not labeled as doubtful first application type
Label number can reset, so as to re-start label to the application.Pre-determined number threshold value can be according to the actual situation
Setting, specific such as 10 times or 5 inferior, the embodiment of the present application does not limit this.
In an implementation, after target application is marked as doubtful first application type, determine if target application issues again
Position request (Location Request is positioned for requesting based on network positions mode and satellite positioning mode), then mobile terminal can
Simultaneously based on being positioned with satellite positioning mode in a manner of network positions.Needed for being positioned based on network positions mode
The duration wanted is less than to be carried out positioning required duration based on satellite positioning mode, therefore, if target application is receiving base
After the location information that network positions mode obtains, cancellation continues to be positioned based on satellite positioning mode, then can be by target
Number using affiliated application type labeled as doubtful first application type increases by 1, it is then possible to continue through aforesaid way
The Location Request that processing target application issues, and record and application type belonging to target application is applied into class labeled as doubtful first
The number of type, the number that the application type belonging to the target application is continuously marked as doubtful first application type is more than predetermined time
Number threshold value can then determine that application type belonging to target application is the first application type.
For example, pre-determined number threshold value is set as 5 times, if application type belonging to target application is continuously marked as doubting
Number like the first application type is more than 5 times, then being assured that application type belonging to target application is first using class
Type.If the application type belonging to target application be continuously marked as doubtful first application type number be 4 times when, in mesh
In the Location Request of mark application next time, target application continues to after receiving the location information based on network positions mode
Request is positioned based on satellite positioning mode, then at this time can not be again by application type belonging to target application labeled as doubtful
First application type is to need weight at this point it is possible to which the number that target application is marked as doubtful first application type is reset
It is new to determine application type belonging to target application.
In step S308, if after getting the location information of target application based on network positions mode, Location Request
It is not cancelled, then application type belonging to target application is labeled as the second application type.
Wherein, the application of the second application type can be sending based on network positions mode and based on satellite positioning mode etc.
After the Location Request that two kinds of positioning methods are positioned, when receiving the location information obtained based on network positions mode, still
Continue the application program for requesting to be positioned based on satellite positioning mode, specific such as map application or navigation application.
In an implementation, target application is being issued comprising being determined based on network positions mode and based on two kinds of satellite positioning mode etc.
After the Location Request that position mode is positioned, usual target application can be initially received the positioning obtained based on network positions mode
Information.And after receiving the location information obtained based on network positions mode, if target application is not cancelled yet based on satellite
The Location Request of positioning method is (i.e. after receiving the location information obtained based on network positions mode, it is still desirable to based on defending
Star positioning method is positioned), it may be considered that target application belongs to the second application type.
The processing of S302~S308 through the above steps can classify the application installed in mobile terminal, thus
It can determine application type belonging to each application, and the application of different application types has corresponding positioning method.It is logical
After above-mentioned processing is crossed to determining using affiliated application type, when certain application issues Location Request again, it can pass through
Following steps S310~S322 is handled.
In step s310, obtain the Location Request of target application, wherein Location Request for request to mobile terminal into
Row positioning.
The processing of above-mentioned S310 may refer to the related content of S102 in above-described embodiment one, and details are not described herein.
In step S312, if target application belongs to the first application type, using network positions mode to mobile whole
End is positioned, and the first location information is obtained.
The processing of above-mentioned S312 may refer to the related content of S104 in above-described embodiment one, and details are not described herein.
The processing mode of above-mentioned steps S312 can be varied, can be with other than it can handle through the above way
It is handled by other various ways, is obtained for example, it is contemplated that being stored with into current mobile terminal based on network positions mode
Location information can not need to be positioned again at this time, can specifically include following steps one and step 2.
Step 1 obtains pre-stored targeting information, target if target application belongs to the first application type
Location information is the location information obtained based on network positions mode.
Wherein, targeting information can be the common location information stored in mobile terminal or corresponding application or
The location information obtained (in the scheduled duration i.e. before current time) by network positions mode at no distant date, such as answered in map
With location informations such as the family of middle label, companies.
In an implementation, if user is stored with certain position in target application and is obtained in the near future by network positions mode
Location information, then when user, which reuses target application, calls location information (i.e. the targeting information) of the position, mesh
Mark application can directly acquire stored targeting information, without being positioned again by network positions mode.Example
Such as, user is when using the location information of map application request position, if map application belongs to the first application type,
The location information in user location can be got by way of network positions.If this position is the common position of user,
And user saves the targeting information of this position in map application, then, when user reuses map application
When requesting the location information of position, the targeting information of this position can be directly acquired, without again by net
Network positioning method is positioned.
Targeting information is determined as the first location information by step 2.
In step S314, if target application belongs to the second application type, and the satellite positioning mode in scheduled duration
Positioning signal be lower than predetermined signal strength threshold value, then obtain the light intensity of current environment.
Wherein, scheduled duration, predetermined signal strength threshold value and default light detection cycle may be set according to actual conditions,
Specifically such as, scheduled duration is 30 seconds or 1 minute etc., and predetermined signal strength threshold value is 3 grades or 5 grades, presets light detection cycle
It is 1 minute or 3 minutes etc., the embodiment of the present application does not limit this.
In an implementation, it may be influenced by many factors when satellite-based positioning method is positioned, in addition to equipment
Outside the factor of itself, if the more positioning signal that also results in of veil around mobile terminal is poor, satellite positioning can not be just
It often carries out, therefore, if the positioning signal based on satellite positioning mode in scheduled duration is poor always, is unable to reach scheduled
Signal strength, and when can not obtain the location information based on satellite positioning mode, can by obtain the light intensity of environment come
Judge whether mobile terminal is in enclosed environment (such as interior).
For example, obtaining corresponding location information institute if 5 minutes a length of when carrying out positioning required based on satellite positioning mode
The signal strength needed is 5 grades, then can be set as scheduled duration for 5 minutes, 5 grades are set as predetermined signal strength threshold value.Such as
Positioning signal of the fruit in 5 minutes based on satellite positioning mode is always below 5 grades, then the light of mobile terminal can be opened
Detection function obtains the light intensity of local environment.
Furthermore, it is contemplated that carrying out light detection to current environment always, it is a degree of to will also result in mobile terminal
Function loss, for this purpose, corresponding light detection cycle can be arranged for light detection, so that light is detected as periodically examining
It surveys, then the processing of the light intensity of above-mentioned acquisition current environment, can specifically be accomplished by the following way: default when reaching
When light detection cycle, the light intensity of current environment is obtained by photosensitive sensor.
Wherein, photosensitive sensor can be the sensor that electric signal is converted optical signals to using light-sensitive element, photosensitive biography
The sensitive wave length of sensor is near visible wavelength, including IR wavelength and ultraviolet wavelength, can pass through photosensitive sensor
The domestic light intensity of capture ring, is converted into electric signal, returns to mobile terminal.
In an implementation, light detection can be carried out using default light detection cycle by photosensitive sensor, for example, can be with
It sets and carries out within every ten minutes a light detection, and record the intensity of the light detected each time.
In step S316, if light intensity is greater than preset strength threshold value, positioned according to satellite positioning mode,
Obtain the second location information.
Wherein, preset strength threshold value may be set according to actual conditions, and the embodiment of the present application does not limit this.
In an implementation, when the light intensity detected be greater than preset strength threshold value when, it is possible to determine that mobile terminal from
Closed environment is opened, at this point, the positioning signal of mobile terminal can achieve predetermined signal strength threshold value, then, mobile terminal can
It is positioned in a manner of based on satellite positioning, obtains the second required location information.
In step S318, if light intensity is not more than preset strength threshold value, determined according to network positions mode
Position, obtains the second location information.
In an implementation, if mobile terminal is constantly in enclosed environment, target application issue based on satellite positioning
The positioning signal of mode is lower than predetermined signal strength threshold value, at this point, mobile terminal can not obtain the based on satellite positioning mode
Two location informations can be positioned to avoid lasting function from being lost by network positions mode.
In the processing of above-mentioned steps S318, mobile terminal is positioned by network positions mode, obtains the second positioning
After information, when the light intensity detected changes, according to light intensity variation as a result, doing source to Location Request
Reason, specifically may refer to following step S320.
In step s 320, the light when the light intensity for detecting current environment changes, and after changing is strong
Degree is greater than preset strength threshold value, then is positioned according to satellite positioning mode, obtain second location information.
In an implementation, after obtaining light intensity by step S318, if the light intensity detected is greater than preset strength
Threshold value then shows that environment locating for mobile terminal changes, i.e., mobile terminal is transferred to outside enclosed environment by enclosed environment, this
When, if the positioning signal of satellite positioning is greater than predetermined signal strength threshold value, carry out satellite positioning can be re-requested, to obtain
Take the second location information based on satellite positioning mode.
The embodiment of the present application provides a kind of method of application positioning, after obtaining target application Location Request, if target
Using the first application type is belonged to, then mobile terminal is positioned using network positions mode, obtains the first location information, such as
Fruit target application belongs to the second application type, then is determined using network positions mode or satellite positioning mode mobile terminal
Position, obtains the second location information.It, can be according to application program when receiving the Location Request of application program by this method
Affiliated type takes corresponding positioning strategy to be positioned, to reduce unnecessary function loss, improves user's body
It tests.
Embodiment three
The above are the methods of application provided by the embodiments of the present application positioning, are based on same thinking, the embodiment of the present application is also
A kind of mobile terminal is provided, as shown in Figure 4.
The mobile terminal includes: request module 401, first processing module 402 and Second processing module 403,
In:
Request module 401, for obtaining target application Location Request, wherein the Location Request is for requesting to institute
Mobile terminal is stated to be positioned;
First processing module 402 uses network positions side if belonging to the first application type for the target application
Formula positions the mobile terminal, obtains the first location information;
Second processing module 403, it is fixed using the network if being used for second application type of target application data
Position mode or satellite positioning mode position the mobile terminal, obtain the second location information.
In the embodiment of the present application, the mobile terminal further include:
First mark module, if after location information for getting the target application based on network positions mode,
The Location Request is cancelled, then application type belonging to the target application is labeled as doubtful first application type;
First confirmation module, if being marked as doubtful first using class for application type belonging to the target application
The number of type is more than pre-determined number threshold value, it is determined that application type belonging to the target application is the first application type.
In the embodiment of the present application, the first processing module 402, comprising:
First positioning acquiring unit, if belonging to the first application type for the target application, acquisition is stored in advance
Targeting information, the targeting information is the location information obtained based on the network positions mode;
Position determination unit, for the targeting information to be determined as the first location information.
In the embodiment of the present application, the mobile terminal further include:
Second confirmation module, if after location information for getting the target application based on network positions mode,
The Location Request is not cancelled, then application type belonging to the application program is labeled as the second application type.
In the embodiment of the present application, the Second processing module 403, comprising:
Detection unit, if being used for the target application as the second application type, and the satellite positioning side in scheduled duration
The positioning signal of formula is lower than predetermined signal strength threshold value, then obtains the light intensity of current environment;
Second positioning acquiring unit, if being greater than preset strength threshold value for the light intensity, according to the satellite
Positioning method is positioned, and the second location information is obtained;
Third positions acquiring unit, if being not more than preset strength threshold value for the light intensity, according to the net
Network positioning method is positioned, and the second location information is obtained.
In the embodiment of the present application, the mobile terminal further include:
4th positioning obtains module, for changing when the light intensity for detecting current environment, and after variation
Light intensity be greater than preset strength threshold value, then positioned according to the satellite positioning mode, obtain the second location information.
In the embodiment of the present application, the detection unit, for passing through light sensor when reaching default light detection cycle
The light intensity of device acquisition current environment.
The embodiment of the present application provides a kind of mobile terminal, after obtaining target application Location Request, if target application category
In the first application type, then mobile terminal is positioned using network positions mode, obtain the first location information, if target
Using the second application type is belonged to, then mobile terminal is positioned using network positions mode or satellite positioning mode, obtained
Second location information.It, can be according to application program institute when receiving the Location Request of application program by above-mentioned processing mode
The type of category takes corresponding positioning strategy to be positioned, to reduce unnecessary function loss, improves user experience.
Example IV
A kind of hardware structural diagram of Fig. 5 mobile terminal of each embodiment to realize the present invention,
The mobile terminal 500 includes but is not limited to: radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, perhaps combine certain components or
Different component layouts.In embodiments of the present invention, mobile terminal include but is not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 510, for obtaining target application Location Request, wherein the Location Request is for requesting to institute
Mobile terminal is stated to be positioned;
Processor 510 uses network positions mode pair if being also used to the target application belongs to the first application type
The mobile terminal is positioned, and the first location information is obtained;
Processor 510 uses the network positions side if being also used to second application type of target application data
Formula or satellite positioning mode position the mobile terminal, obtain the second location information.
In addition, processor 510, if being also used to get the location information of the target application based on network positions mode
Afterwards, the Location Request is cancelled, then application type belonging to the target application is labeled as doubtful first application type;Such as
The number that application type belonging to target application described in fruit is marked as doubtful first application type is more than pre-determined number threshold value, then
Determine that application type belonging to the target application is the first application type.
In addition, the processor 510, is also used to obtain pre-stored targeting information, the targeting information
It is the location information obtained based on the network positions mode;If the target application belongs to the first application type, by institute
It states targeting information and is determined as the first location information.
In addition, the processor 510, if being also used to get the positioning of the target application based on network positions mode
After information, the Location Request is not cancelled, then application type belonging to the application program is labeled as the second application type.
In addition, the processor 510, if being also used to the second application type satellite positioning mode in scheduled duration
Positioning signal be lower than predetermined signal strength threshold value, then obtain the light intensity of current environment;If the light intensity
Greater than preset strength threshold value, is then positioned according to the satellite positioning mode, obtain the second location information;If the light
Intensity is not more than preset strength threshold value, then is positioned according to the network positions mode, obtain the second location information.
In addition, the processor 510, is also used to detect that the light intensity of current environment changes, and become
Light intensity after change is greater than preset strength threshold value, then is positioned according to the satellite positioning mode, and the second positioning letter is obtained
Breath.
In addition, the processor 510, is also used to obtain when reaching default light detection cycle by photosensitive sensor
The light intensity of current environment.
The embodiment of the present application provides a kind of mobile terminal, after obtaining target application Location Request, if target application category
In the first application type, then mobile terminal is positioned using network positions mode, obtain the first location information, if target
Using the second application type is belonged to, then mobile terminal is positioned using network positions mode or satellite positioning mode, obtained
Second location information.It, can be according to application program institute when receiving the Location Request of application program by above-mentioned processing mode
The type of category takes corresponding positioning strategy to be positioned, to reduce unnecessary function loss, improves user experience.
It should be understood that the embodiment of the present application in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but is not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by wireless communication system and network and other set
Standby communication.
Mobile terminal provides wireless broadband internet by network module 502 for user and accesses, and such as user is helped to receive
It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 503 can be received by radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loudspeaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output that mobile communication base station can be sent to via radio frequency unit 501 is converted in the case where telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Seed type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating stick, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touching
The type for touching event provides corresponding visual output on display panel 5061.Although in Fig. 5, touch panel 5071 and display
Panel 5061 is the function that outputs and inputs of realizing mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place is without limitation.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Data are transmitted between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 510 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can run on the processor 510, the computer program are executed by processor 510
Each process of the embodiment of the method for the above-mentioned application positioning of Shi Shixian, and identical technical effect can be reached, to avoid repeating, this
In repeat no more.
Embodiment five
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of the embodiment of the method for above-mentioned application positioning when being executed by processor, and
Identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as
Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic or disk etc..
The embodiment of the present application provides a kind of computer readable storage medium, after obtaining target application Location Request, if
Target application belongs to the first application type, then is positioned using network positions mode to mobile terminal, obtains the first positioning letter
Breath, if target application belongs to the second application type, using network positions mode or satellite positioning mode to mobile terminal into
Row positioning, obtains the second location information.Pass through above-mentioned processing mode, when receiving the Location Request of application program, Ke Yigen
Corresponding positioning strategy is taken to be positioned according to type belonging to application program, thus reduce unnecessary function loss,
Improve user experience.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art
For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal
Replacement, improvement etc., should be included within the scope of the claims of this application.
Claims (10)
1. a kind of method of application positioning, is applied to mobile terminal, which is characterized in that the described method includes:
Obtain the Location Request of target application, wherein the Location Request positions the mobile terminal for requesting;
If the target application belongs to the first application type, the mobile terminal is determined using network positions mode
Position, obtains the first location information;
If the target application belongs to the second application type, using the network positions mode or satellite positioning mode to institute
It states mobile terminal to be positioned, obtains the second location information.
2. if the method according to claim 1, wherein the target application belongs to first using class
Type then positions the mobile terminal using network positions mode, and before obtaining the first location information, the method is also wrapped
It includes:
If after the location information for getting the target application based on network positions mode, the Location Request is cancelled, then
Application type belonging to the target application is labeled as doubtful first application type;
If the number that application type belonging to the target application is marked as doubtful first application type is more than pre-determined number
Threshold value, it is determined that application type belonging to the target application is the first application type.
3. if the method according to claim 1, wherein the target application belongs to first using class
Type then positions the mobile terminal using network positions mode, obtains the first location information, comprising:
If the target application belongs to the first application type, pre-stored targeting information is obtained, the target is fixed
Position information is the location information obtained based on the network positions mode;
The targeting information is determined as first location information.
4. if the method according to claim 1, wherein the target application data second apply class
Type then positions the mobile terminal using the network positions mode or satellite positioning mode, obtains the second positioning letter
Before breath, the method also includes:
If after the location information for getting the target application based on network positions mode, the Location Request is not cancelled,
Application type belonging to the target application is then labeled as the second application type.
5. if the method according to claim 1, wherein the target application belongs to second using class
Type then positions the mobile terminal using the network positions mode or satellite positioning mode, obtains the second positioning letter
Breath, comprising:
If the target application is the second application type, and the positioning signal of satellite positioning mode is lower than in advance in scheduled duration
Determine signal strength threshold, then obtains the light intensity of current environment;
If the light intensity is greater than preset strength threshold value, is positioned according to the satellite positioning mode, obtain second
Location information;
If the light intensity is not more than preset strength threshold value, positioned according to the network positions mode, obtains the
Two location informations.
6. if according to the method described in claim 5, it is characterized in that, the light intensity is not more than preset strength threshold
Value, then positioned according to the network positions mode, after obtaining the second location information, the method also includes:
Light intensity when the light intensity for detecting current environment changes, and after changing is greater than preset strength threshold
Value, then positioned according to the satellite positioning mode, obtain the second location information.
7. method according to claim 5 or 6, which is characterized in that the light intensity for obtaining current environment, packet
It includes:
When reaching default light detection cycle, the light intensity of current environment is obtained by photosensitive sensor.
8. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Request module, for obtaining the Location Request of target application, wherein the Location Request is for requesting to the shifting
Dynamic terminal is positioned;
First processing module, if belonging to the first application type for the target application, using network positions mode to institute
It states mobile terminal to be positioned, the first obtained location information;
Second processing module uses the network positions mode if belonging to the second application type for the target application
Or satellite positioning mode positions the mobile terminal, obtains the second location information.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in claim 1 to 7
The step of method of described in any item application positioning.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence realizes the method for the application positioning as described in any one of claims 1 to 7 when the computer program is executed by processor
The step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997564.5A CN109164477B (en) | 2018-08-29 | 2018-08-29 | Application positioning method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997564.5A CN109164477B (en) | 2018-08-29 | 2018-08-29 | Application positioning method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109164477A true CN109164477A (en) | 2019-01-08 |
CN109164477B CN109164477B (en) | 2021-05-25 |
Family
ID=64893189
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810997564.5A Active CN109164477B (en) | 2018-08-29 | 2018-08-29 | Application positioning method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109164477B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889873A (en) * | 2017-12-06 | 2019-06-14 | 中兴通讯股份有限公司 | A kind of play switching method, set-top box, wearable device and storage medium |
CN110456395A (en) * | 2019-08-13 | 2019-11-15 | 维沃移动通信有限公司 | A kind of localization method and terminal device |
CN111736196A (en) * | 2019-06-14 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Method for meeting application positioning requirement and user equipment |
CN111757263A (en) * | 2019-07-31 | 2020-10-09 | 广东小天才科技有限公司 | Positioning data sharing method and system and mobile terminal |
CN112073462A (en) * | 2020-08-05 | 2020-12-11 | 长沙市到家悠享网络科技有限公司 | Positioning method and device |
CN113473362A (en) * | 2021-06-29 | 2021-10-01 | 北京小米移动软件有限公司 | Positioning method, positioning device and storage medium |
WO2023185420A1 (en) * | 2022-03-26 | 2023-10-05 | 华为技术有限公司 | Positioning method and communication apparatus |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102036165A (en) * | 2010-12-16 | 2011-04-27 | 中兴通讯股份有限公司 | Positioning method and user terminal supporting multiple positioning modes |
CN102082993A (en) * | 2009-11-26 | 2011-06-01 | 中国电信股份有限公司 | Third party single positioning method and system as well as access manager |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN106131795A (en) * | 2016-08-30 | 2016-11-16 | 维沃移动通信有限公司 | A kind of localization method and mobile terminal |
CN106878945A (en) * | 2017-01-23 | 2017-06-20 | 北京奇虎科技有限公司 | The optimization method of alignment system performance, device and mobile terminal |
CN106973150A (en) * | 2017-03-16 | 2017-07-21 | 广东欧珀移动通信有限公司 | Positioning precision level adjustment method, device and mobile terminal |
CN107124699A (en) * | 2017-05-05 | 2017-09-01 | 广东小天才科技有限公司 | Terminal equipment positioning method and device |
CN108012237A (en) * | 2017-12-13 | 2018-05-08 | 广东欧珀移动通信有限公司 | Position control method, device, storage medium and terminal device |
CN108076507A (en) * | 2017-12-13 | 2018-05-25 | 广东欧珀移动通信有限公司 | Positioning method control method, device, storage medium and mobile terminal |
CN108093373A (en) * | 2017-12-13 | 2018-05-29 | 广东欧珀移动通信有限公司 | Position control method, device, storage medium and terminal device |
-
2018
- 2018-08-29 CN CN201810997564.5A patent/CN109164477B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102082993A (en) * | 2009-11-26 | 2011-06-01 | 中国电信股份有限公司 | Third party single positioning method and system as well as access manager |
CN102036165A (en) * | 2010-12-16 | 2011-04-27 | 中兴通讯股份有限公司 | Positioning method and user terminal supporting multiple positioning modes |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN106131795A (en) * | 2016-08-30 | 2016-11-16 | 维沃移动通信有限公司 | A kind of localization method and mobile terminal |
CN106878945A (en) * | 2017-01-23 | 2017-06-20 | 北京奇虎科技有限公司 | The optimization method of alignment system performance, device and mobile terminal |
CN106973150A (en) * | 2017-03-16 | 2017-07-21 | 广东欧珀移动通信有限公司 | Positioning precision level adjustment method, device and mobile terminal |
CN107124699A (en) * | 2017-05-05 | 2017-09-01 | 广东小天才科技有限公司 | Terminal equipment positioning method and device |
CN108012237A (en) * | 2017-12-13 | 2018-05-08 | 广东欧珀移动通信有限公司 | Position control method, device, storage medium and terminal device |
CN108076507A (en) * | 2017-12-13 | 2018-05-25 | 广东欧珀移动通信有限公司 | Positioning method control method, device, storage medium and mobile terminal |
CN108093373A (en) * | 2017-12-13 | 2018-05-29 | 广东欧珀移动通信有限公司 | Position control method, device, storage medium and terminal device |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109889873A (en) * | 2017-12-06 | 2019-06-14 | 中兴通讯股份有限公司 | A kind of play switching method, set-top box, wearable device and storage medium |
CN109889873B (en) * | 2017-12-06 | 2021-07-06 | 中兴通讯股份有限公司 | Play switching method, set top box, wearable device and storage medium |
CN111736196A (en) * | 2019-06-14 | 2020-10-02 | 腾讯科技(深圳)有限公司 | Method for meeting application positioning requirement and user equipment |
CN111757263A (en) * | 2019-07-31 | 2020-10-09 | 广东小天才科技有限公司 | Positioning data sharing method and system and mobile terminal |
CN110456395A (en) * | 2019-08-13 | 2019-11-15 | 维沃移动通信有限公司 | A kind of localization method and terminal device |
WO2021027466A1 (en) * | 2019-08-13 | 2021-02-18 | 维沃移动通信有限公司 | Positioning method and terminal device |
CN112073462A (en) * | 2020-08-05 | 2020-12-11 | 长沙市到家悠享网络科技有限公司 | Positioning method and device |
CN112073462B (en) * | 2020-08-05 | 2023-10-27 | 长沙市到家悠享网络科技有限公司 | Positioning method and device |
CN113473362A (en) * | 2021-06-29 | 2021-10-01 | 北京小米移动软件有限公司 | Positioning method, positioning device and storage medium |
WO2023185420A1 (en) * | 2022-03-26 | 2023-10-05 | 华为技术有限公司 | Positioning method and communication apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN109164477B (en) | 2021-05-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109164477A (en) | A kind of method and mobile terminal of application positioning | |
CN107665697B (en) | A kind of adjusting method and mobile terminal of screen intensity | |
CN108337368B (en) | Method for updating positioning data and mobile terminal | |
CN108388414A (en) | Go out screen control method and device, computer readable storage medium, the terminal of terminal | |
CN108022446A (en) | A kind of parking spot acquisition methods, mobile terminal | |
CN108628568A (en) | A kind of display methods of information, device and terminal device | |
CN107592615A (en) | Localization method and device | |
CN108828692A (en) | A kind of weather prediction method and terminal device | |
CN110162254A (en) | A kind of display methods and terminal device | |
CN107566255A (en) | Unread message abstraction generating method and device | |
CN107846518A (en) | A kind of navigational state switching method, mobile terminal and computer-readable recording medium | |
CN108197934A (en) | A kind of method of payment and terminal device | |
CN108541015A (en) | A kind of signal strength reminding method and mobile terminal | |
CN108898040A (en) | A kind of recognition methods and mobile terminal | |
CN108270853A (en) | A kind of message treatment method and mobile terminal | |
CN106851119A (en) | A kind of method and apparatus and mobile terminal of picture generation | |
CN108549660B (en) | Information pushing method and device | |
CN107748679A (en) | A kind of run-limiting method, terminal and computer-readable recording medium | |
CN110456395A (en) | A kind of localization method and terminal device | |
CN107103074A (en) | The processing method and mobile terminal of a kind of sharing information | |
CN108429856A (en) | A kind of location information acquisition methods and mobile terminal | |
CN108510266A (en) | A kind of Digital Object Unique Identifier recognition methods and mobile terminal | |
CN107330867A (en) | Image combining method, device, computer-readable recording medium and computer equipment | |
CN106708390A (en) | Screen capture method, apparatus and system | |
CN107885450B (en) | Realize the method and mobile terminal of mouse action |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |