CN109164477B - Application positioning method and mobile terminal - Google Patents

Application positioning method and mobile terminal Download PDF

Info

Publication number
CN109164477B
CN109164477B CN201810997564.5A CN201810997564A CN109164477B CN 109164477 B CN109164477 B CN 109164477B CN 201810997564 A CN201810997564 A CN 201810997564A CN 109164477 B CN109164477 B CN 109164477B
Authority
CN
China
Prior art keywords
positioning
application
mobile terminal
application type
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.)
Active
Application number
CN201810997564.5A
Other languages
Chinese (zh)
Other versions
CN109164477A (en
Inventor
吴晓勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810997564.5A priority Critical patent/CN109164477B/en
Publication of CN109164477A publication Critical patent/CN109164477A/en
Application granted granted Critical
Publication of CN109164477B publication Critical patent/CN109164477B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining 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/42Determining position
    • G01S19/45Determining position by combining measurements of signals from the satellite radio beacon positioning system with a supplementary measurement
    • G01S19/46Determining 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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO 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/00Position-fixing by co-ordinating two or more direction or position line determinations; Position-fixing by co-ordinating two or more distance determinations
    • G01S5/0009Transmission of position information to remote stations
    • G01S5/0018Transmission from mobile station to base station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating 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

The application discloses an application positioning method and a mobile terminal, wherein the method is applied to the mobile terminal and comprises the following steps: acquiring a target application positioning request, wherein the positioning request is used for requesting to position the mobile terminal; if the target application belongs to the first application type, positioning the mobile terminal by using a network positioning mode to obtain first positioning information; and if the target application belongs to a second application type, positioning the mobile terminal by using the network positioning mode or the satellite positioning mode to obtain second positioning information. By the method, the application programs of different types can be effectively prevented from adopting the same positioning strategy, unnecessary function loss is reduced, and user experience is improved.

Description

Application positioning method and mobile terminal
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for positioning an application and a mobile terminal.
Background
With the development of terminal technology, especially mobile terminals (such as mobile phones or tablet computers) become necessities of people's lives. The functions of the mobile terminal are increasing and improving, such as the positioning function of the application program. The positioning function brings convenience to life for people.
Different positioning modes can be adopted by different applications, and the first type of application only needs to use positioning information based on the network positioning mode, such as weather application and the like. In addition, some applications may send out positioning requests for positioning based on a network positioning method and positioning based on a satellite positioning method at the same time, and in general, the time required for positioning using the network positioning method is significantly less than the time required for positioning using the satellite positioning method, so the applications may receive positioning information obtained based on the network positioning method first. After receiving the positioning information, the second type of application cancels the positioning request for positioning based on the satellite positioning mode, but the third type of application still keeps the positioning request for positioning based on the satellite positioning mode until the positioning information based on the satellite positioning mode is obtained.
However, although the second type of application does not acquire the positioning information based on the satellite positioning method, the second type of application flashes the icon for satellite positioning in the mobile terminal, thereby causing a trouble to the user. For the third type of application, the positioning information obtained by the satellite positioning mode is more accurate, and the third type of application also carries out network positioning, so that the power consumption of the mobile terminal is increased.
Disclosure of Invention
The embodiment of the application positioning method is provided to solve the problems that in the prior art, the loss of positioning request processing is large, and the user experience is poor.
In order to solve the above technical problem, the embodiment of the present application is implemented as follows:
in a first aspect, an application positioning method provided in an embodiment of the present application is applied to a mobile terminal, and the method includes:
acquiring a positioning request of a target application, wherein the positioning request is used for requesting to position the mobile terminal;
if the target application belongs to the first application type, positioning the mobile terminal by using a network positioning mode to obtain first positioning information;
and if the target application belongs to a second application type, positioning the mobile terminal by using the network positioning mode or the satellite positioning mode to obtain second positioning information.
Optionally, before the positioning the mobile terminal by using a network positioning manner to obtain the first positioning information if the target application belongs to the first application type, the method further includes:
if the positioning request is cancelled after the positioning information of the target application is acquired based on a network positioning mode, marking the application type to which the target application belongs as a suspected first application type;
and if the frequency that the application type to which the target application belongs is marked as the suspected first application type exceeds a preset frequency threshold value, determining that the application type to which the target application belongs is the first application type.
Optionally, if the target application belongs to the first application type, positioning the mobile terminal by using a network positioning manner to obtain first positioning information, including:
if the target application belongs to the first application type, acquiring prestored target positioning information, wherein the target positioning information is positioning information acquired based on the network positioning mode;
determining the target positioning information as first positioning information.
Optionally, before the positioning the mobile terminal by using the network positioning manner or the satellite positioning manner to obtain the second positioning information if the target application data is of the second application type, the method further includes:
and if the positioning request is not cancelled after the positioning information of the target application is acquired based on a network positioning mode, marking the application type to which the target application belongs as a second application type.
Optionally, if the target application belongs to a second application type, the positioning the mobile terminal by using the network positioning or satellite positioning manner to obtain second positioning information includes:
if the target application is of a second application type and the positioning signal of the satellite positioning mode is lower than a preset signal intensity threshold value within a preset time, acquiring the light intensity of the current environment;
if the light intensity is greater than a preset intensity threshold value, positioning according to the satellite positioning mode to obtain second positioning information;
and if the light intensity is not greater than a preset intensity threshold value, positioning according to the network positioning mode to obtain second positioning information.
Optionally, if the light intensity is not greater than a preset intensity threshold, positioning is performed according to the network positioning manner, and after second positioning information is obtained, the method further includes:
and when the light intensity of the current environment is detected to be changed and the changed light intensity is greater than a preset intensity threshold value, positioning according to the satellite positioning mode to obtain second positioning information.
Optionally, the acquiring the light intensity of the current environment includes:
and when a preset light detection period is reached, acquiring the light intensity of the current environment through the photosensitive sensor.
In a second aspect, an embodiment of the present application provides a mobile terminal, where the mobile terminal includes:
the mobile terminal comprises a request acquisition module, a request processing module and a processing module, wherein the request acquisition module is used for acquiring a positioning request of a target application, and the positioning request is used for requesting to position the mobile terminal;
the first processing module is used for positioning the mobile terminal by using a network positioning mode to obtain first positioning information if the target application belongs to a first application type;
and the second processing module is used for positioning the mobile terminal by using the network positioning mode or the satellite positioning mode to obtain second positioning information if the target application belongs to a second application type.
Optionally, the mobile terminal further includes:
the first marking module is used for marking the application type to which the target application belongs as a suspected first application type if the positioning request is cancelled after the positioning information of the target application is acquired based on a network positioning mode;
a first confirmation module, configured to determine that the application type to which the target application belongs is the first application type if a number of times that the application type to which the target application belongs is marked as a suspected first application type exceeds a predetermined number threshold.
Optionally, the first processing module includes:
a first positioning obtaining unit, configured to obtain pre-stored target positioning information if the target application belongs to a first application type, where the target positioning information is positioning information obtained based on the network positioning manner;
and the positioning determining unit is used for determining the target positioning information as first positioning information if the target application belongs to a first application type.
Optionally, the mobile terminal further includes:
and the second confirmation module is used for marking the application type of the target application as a second application type if the positioning request is not cancelled after the positioning information of the target application is acquired based on a network positioning mode.
Optionally, the second processing module includes:
the detection unit is used for acquiring the light intensity of the current environment if the second application type and the positioning signal of the satellite positioning mode within the preset time length are lower than a preset signal intensity threshold value;
the second positioning acquisition unit is used for positioning according to the satellite positioning mode to obtain second positioning information if the light intensity is greater than a preset intensity threshold;
and the third positioning acquisition unit is used for positioning according to the network positioning mode to obtain second positioning information if the light intensity is not greater than a preset intensity threshold value.
Optionally, the mobile terminal further includes:
and the fourth positioning acquisition module is used for positioning according to the satellite positioning mode to obtain second positioning information when the light intensity of the current environment is detected to be changed and the changed light intensity is greater than a preset intensity threshold value.
Optionally, the detection unit is configured to obtain, by using the photosensor, the light intensity of the current environment when a preset light detection period is reached.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the method for positioning an application provided in the foregoing embodiment.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for positioning an application provided in the foregoing embodiment.
According to the technical scheme provided by the embodiment of the application, after the target application positioning request is obtained, if the target application belongs to the first application type, the mobile terminal is positioned by using a network positioning mode to obtain the first positioning information, if the target application belongs to the second application type, the mobile terminal is positioned by using a network positioning mode multi-satellite positioning mode to obtain the second positioning information, and when the positioning request of the application program is received, the mobile terminal can be positioned by adopting a corresponding positioning strategy according to the type to which the application program belongs, so that unnecessary function loss is reduced, and user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method of application positioning according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of an application positioning of the present invention;
FIG. 3 is a flow chart of another embodiment of a method for applying position location in accordance with the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal according to the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to the present invention.
Detailed Description
The embodiment of the application provides an application positioning method and a mobile terminal. In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
As shown in fig. 1, an execution main body of the method may be a mobile terminal, which may be a mobile terminal such as a mobile phone, a tablet computer, and the like, and the mobile terminal may be a mobile terminal used by a user. The method can be used for positioning by adopting a corresponding positioning strategy according to the type of the application when the positioning request of the application is received. The method may specifically comprise the steps of:
in step S102, a positioning request of a target application is obtained, where the positioning request is used to request positioning of a mobile terminal.
The target application may be an application program capable of requesting or triggering the mobile terminal to perform positioning, such as a map application that may provide location query and navigation services, a social application that provides location sharing, viewing nearby people, and the like. The location request of the target application may be a message in which the mobile terminal acquires location information (latitude and longitude coordinates, etc.) of the mobile terminal through a specific location technology. The network-based positioning may be a positioning of the mobile terminal according to a measured distance between a base station of the mobile operating network and the mobile terminal. The satellite Positioning method may be a method of Positioning by satellite signals, for example, a method of Positioning by a GPS (Global Positioning System), a method of Positioning by a galileo satellite Positioning System, or a method of Positioning by a beidou satellite navigation System.
In implementation, the applied positioning function brings great convenience to the life of people and becomes an important tool which is not available in the life of people. The positioning function provides various positioning modes such as network-based positioning and satellite-based positioning for people, and can provide various different position requirements for people, for example, real-time navigation service, quick weather query service, convenient position sharing service and the like for users through the positioning function.
Generally, a positioning request from an application can be used to request positioning based on a network positioning method or positioning based on a satellite positioning method. Different positioning modes can be adopted by different applications, and the first type of application only needs to use positioning information based on the network positioning mode, such as weather application and the like. In addition, some applications may send out positioning requests for positioning based on a network positioning method and positioning based on a satellite positioning method at the same time, and in general, the time required for positioning using the network positioning method is significantly less than the time required for positioning using the satellite positioning method, so the applications may receive positioning information obtained based on the network positioning method first. After receiving the positioning information, the second type of application cancels the positioning request for positioning based on the satellite positioning mode, but the third type of application still keeps the positioning request for positioning based on the satellite positioning mode until the positioning information based on the satellite positioning mode is obtained. Obviously, the foregoing manner may consume a certain amount of power consumption of the mobile terminal, and for this reason, the embodiment of the present application provides a feasible solution, which may specifically include the following:
when a user starts an application (i.e., a target application) or triggers a positioning function of the application (i.e., the target application), the target application may acquire information such as an identifier of the target application and a current time, and generate a positioning request using the acquired information, where the positioning request needs to request the mobile terminal to perform positioning based on a network positioning mode and a satellite positioning mode at the same time. Then, the target application may provide the positioning request to the mobile terminal through a corresponding program interface, so that the mobile terminal may obtain the positioning request of the target application, where the positioning request is used to request positioning of the mobile terminal.
In step S104, if the target application belongs to the first application type, the mobile terminal is located by using a network location method to obtain first location information.
In implementation, in a mobile terminal, a user may generally install a plurality of applications, a positioning manner used by each application may be different, and in order to enable different applications to use corresponding positioning manners, the installed applications may be classified in advance. For example, n applications are installed in a mobile terminal of a user, the user may classify the applications according to their own requirements (e.g., requirements for positioning duration or positioning accuracy, etc.), and during the process of classifying the applications, a corresponding type identifier may be added to each application, so that the applications installed in the mobile terminal may be divided into a first application type and a second application type. In addition, for convenience of subsequent processing, a first application type database and a second application type database may also be created for storing an identification of the application of the first application type and an identification of the application of the second application type, respectively.
When the mobile terminal acquires the positioning request, the identifier of the target application can be extracted from the positioning request, then, the type identifier of the target application corresponding to the identifier can be determined, and if the type identifier is the type identifier of the first application type, the target application can be determined to belong to the first application type. Or, the identifier of the target application may be respectively searched in the first application type database and the second application type database, and if the identifier of the target application is found in the first application type database, it may be determined that the target application belongs to the first application type.
After the target application is determined to belong to the first application type in the above manner, positioning can be performed in a network positioning manner to obtain first positioning information.
For example, a weather application is installed in a mobile terminal by a user and is marked as a first application type, when the weather application is opened by the user and weather information is refreshed, the weather application sends a positioning request for positioning based on a network positioning mode and positioning based on a satellite positioning mode to the mobile terminal through a corresponding program interface, wherein the positioning request can also carry information such as an identifier of the weather application and request time, and when the mobile terminal obtains the positioning request, the identifier carried in the positioning request is extracted from the positioning request. The extracted identification can be used for respectively carrying out matching search in the first application type database and the second application type database, if the weather application is searched in the first application type database, the mobile terminal can carry out positioning based on a network positioning mode for a positioning request sent by the weather application to obtain first positioning information, and the first positioning information is returned to the weather application.
In step S106, if the target application belongs to the second application type, the mobile terminal is located by using a network location method or a satellite location method, so as to obtain second location information.
In implementation, as shown in step S104, the user may classify the application into the first application type and the second application type in advance according to the needs of the user, and may store the identifier classification of the application in the first application type database and the second application type database. When the identification of the target application is judged to be located in the second application type database through the identification extracted from the positioning request, the target application can be determined to belong to the second application type, and at this time, the mobile terminal can perform positioning by using a network positioning mode or a satellite positioning mode. Specifically, which positioning mode is used for positioning can be selected in various modes, for example, the mobile terminal can determine whether to use a network positioning mode for positioning or a satellite positioning mode for positioning by detecting the strength of a satellite signal, specifically, when the mobile terminal detects that the strength of the current satellite signal is lower than a predetermined threshold value, the mobile terminal can use the satellite positioning mode for positioning, otherwise, the mobile terminal can use the network positioning mode for positioning; or, the mobile terminal may preferentially perform positioning based on the satellite positioning mode to obtain the second positioning information, and in the positioning based on the satellite positioning mode, if the positioning is impossible or the second positioning information cannot be obtained, the mobile terminal restarts positioning based on the network positioning mode to obtain the second positioning information.
For example, a user installs a map application in a mobile terminal, and marks the map application as a second application type, and when the user starts a positioning function of the map application, the map application sends a positioning request for positioning based on a network positioning manner and positioning based on a satellite positioning manner to the mobile terminal through a corresponding interface, as shown in fig. 2, where the positioning request may also carry information such as an identifier of the map application and a request time. When the mobile terminal acquires the positioning request, the identification carried in the positioning request is extracted from the positioning request, matching search is respectively carried out in the first application type database and the second application type database, and if the identification of the map application is searched in the second application type database, the target application can be determined to belong to the second application type. At this time, the mobile terminal may preferentially perform positioning based on a satellite positioning method to obtain second positioning information, and return the positioning information to the map application. In the process of positioning based on the satellite positioning mode, if the positioning cannot be performed or the corresponding positioning information cannot be acquired, the mobile terminal can start the network positioning mode to perform positioning to obtain second positioning information, and the second positioning information is returned to the map application.
The embodiment of the application positioning method comprises the steps of after a target application positioning request is obtained, if a target application belongs to a first application type, positioning a mobile terminal by using a network positioning mode to obtain first positioning information, and if the target application belongs to a second application type, positioning the mobile terminal by using the network positioning mode or a satellite positioning mode to obtain second positioning information. By the method, when the positioning request of the application program is received, the corresponding positioning strategy can be adopted for positioning according to the type of the application program, so that unnecessary function loss is reduced, and user experience is improved.
Example two
The embodiment of the application positioning method is characterized in that an execution main body of the method can be a mobile terminal, the mobile terminal can be a mobile terminal such as a mobile phone and a tablet personal computer, and the mobile terminal can be a mobile terminal used by a user. The method can be used for positioning by adopting a corresponding positioning strategy according to the type of the application when the positioning request of the application is received. The method may specifically comprise the steps of:
in order to implement positioning of different types of applications using positioning manners corresponding to the types of applications, a type to which the application requesting positioning belongs may be determined, where the determining manner may be implemented in a variety of manners besides the manner provided in the first embodiment, and an optional processing manner is provided below, which may specifically include the following steps S302 to S308.
In step S302, a positioning request of a target application is obtained, where the positioning request is used to request positioning of a mobile terminal.
The processing of S302 may refer to the related content of S102 in the first embodiment, and is not described herein again.
In step S304, if the positioning request is cancelled after the positioning information of the target application is acquired based on the network positioning manner, the application type to which the target application belongs is marked as the suspected first application type.
In implementation, in general, the time required for positioning using the network-based positioning method is significantly less than the time required for positioning using the satellite-based positioning method, so that the target application may first receive the positioning information based on the network-based positioning method, and if the mobile terminal cancels the positioning request for continuing positioning using the satellite-based positioning method after receiving the positioning information, the target application may be determined as the suspected first application type. The application type to which the target application belongs may be marked as the suspected first application type (e.g., may be marked by setting a label for the target application, etc.).
In step S306, if the number of times that the application type to which the target application belongs is marked as a suspected first application type exceeds a predetermined number threshold, it is determined that the application type to which the target application belongs is the first application type.
The number of times that an application is marked as a suspected first application type may be a cumulative number of times that an application is marked in a process of performing a location request, and if the same application is not marked as the suspected first application type for one or more times, the previous cumulative number of times of marking may be cleared, so that the application may be marked again. The predetermined number threshold may be set according to an actual situation, specifically, 10 times or 5 times, and the like, which is not limited in this application embodiment.
In implementation, after the target application is marked as the suspected first application type, if the target application issues a positioning request again (the positioning request is used for requesting positioning based on the network positioning mode and the satellite positioning mode), the mobile terminal may perform positioning based on the network positioning mode and the satellite positioning mode at the same time. Because the time length required for positioning based on the network positioning mode is less than the time length required for positioning based on the satellite positioning mode, if the target application cancels the continuous positioning based on the satellite positioning mode after receiving the positioning information obtained based on the network positioning mode, the frequency of marking the application type to which the target application belongs as the suspected first application type can be increased by 1, then the positioning request sent by the target application can be continuously processed in the mode, the frequency of marking the application type to which the target application belongs as the suspected first application type is recorded, and when the frequency of continuously marking the application type to which the target application belongs as the suspected first application type exceeds the preset frequency threshold, the application type to which the target application belongs can be determined as the first application type.
For example, if the predetermined number of times is set to 5 times, if the number of times that the application type to which the target application belongs is continuously marked as the suspected first application type exceeds 5 times, it may be determined that the application type to which the target application belongs is the first application type. If the number of times that the application type to which the target application belongs is continuously marked as the suspected first application type is 4 times, in the next positioning request of the target application, after the target application receives the positioning information based on the network positioning mode, the target application still continues to request positioning based on the satellite positioning mode, at this time, the application type to which the target application belongs cannot be marked as the suspected first application type again, at this time, the number of times that the target application is marked as the suspected first application type may be cleared, that is, the application type to which the target application belongs needs to be determined again.
In step S308, if the positioning request is not cancelled after the positioning information of the target application is acquired based on the network positioning manner, the application type to which the target application belongs is marked as the second application type.
The second application type may be an application program that, after sending a positioning request for positioning based on two positioning manners, such as a network positioning manner and a satellite positioning manner, continues to request positioning based on the satellite positioning manner when receiving positioning information obtained based on the network positioning manner, specifically, a map application or a navigation application.
In implementation, after the target application sends a positioning request including positioning based on two positioning manners, such as a network positioning manner and a satellite positioning manner, the target application usually receives positioning information obtained based on the network positioning manner first. After receiving the positioning information obtained based on the network positioning manner, if the target application does not cancel the positioning request based on the satellite positioning manner (i.e., after receiving the positioning information obtained based on the network positioning manner, positioning still needs to be performed based on the satellite positioning manner), the target application may be considered to belong to the second application type.
Through the processing of the steps S302 to S308, the applications installed in the mobile terminal can be classified, so that the application type to which each application belongs can be determined, and the applications of different application types have corresponding positioning modes. After determining the application type to which the application belongs through the above-described processing, when a positioning request is issued again by a certain application, the processing can be performed through the following steps S310 to S322.
In step S310, a positioning request of the target application is obtained, where the positioning request is used to request positioning of the mobile terminal.
The processing of S310 may refer to the related content of S102 in the first embodiment, and is not described herein again.
In step S312, if the target application belongs to the first application type, the mobile terminal is located by using a network location method to obtain first location information.
The processing of S312 may refer to the related content of S104 in the first embodiment, and is not described herein again.
The processing manner of step S312 may be various, and besides the above-mentioned processing manner, the processing manner may also be processed in other various manners, for example, considering that the current mobile terminal has stored the positioning information acquired based on the network positioning manner, the positioning may not need to be performed again at this time, and specifically, the following step a and step b may be included.
Step one, if the target application belongs to the first application type, pre-stored target positioning information is obtained, and the target positioning information is positioning information obtained based on a network positioning mode.
The target positioning information may be common position information stored in the mobile terminal or a corresponding application, or positioning information obtained in a network positioning manner in the near future (i.e., within a predetermined time before the current time), such as position information of a home, a company, and the like marked in the map application.
In implementation, if the user stores the positioning information obtained by the network positioning mode at a certain position in the target application in the near future, when the user calls the positioning information (i.e. the target positioning information) at the position by using the target application again, the target application can directly acquire the stored target positioning information without performing positioning again by the network positioning mode. For example, when a user requests positioning information of a location using a map application, if the map application belongs to the first application type, the positioning information of the location where the user is located may be obtained in a network positioning manner. If the position is a common position of the user and the user already stores the target positioning information of the position in the map application, when the user requests the positioning information of the position again by using the map application, the target positioning information of the position can be directly acquired without positioning again in a network positioning mode.
And step two, determining the target positioning information as first positioning information.
In step S314, if the target application belongs to the second application type and the positioning signal of the satellite positioning mode is lower than the predetermined signal intensity threshold within the predetermined time, the light intensity of the current environment is obtained.
The predetermined time, the predetermined signal intensity threshold, and the preset light detection period may be set according to actual conditions, specifically, the predetermined time is 30 seconds or 1 minute, the predetermined signal intensity threshold is 3 levels or 5 levels, and the preset light detection period is 1 minute or 3 minutes, which is not limited in this embodiment of the application.
In the implementation, the positioning based on the satellite may be affected by many factors, except for the device itself, if the shielding around the mobile terminal is too much, the positioning signal is poor, and the satellite positioning cannot be performed normally, so that if the positioning signal based on the satellite positioning is still poor within a predetermined time period, the predetermined signal intensity cannot be reached, and the positioning information based on the satellite positioning cannot be obtained, it may be determined whether the mobile terminal is in a closed environment (such as indoors, etc.) by obtaining the light intensity of the environment.
For example, if the time period required for positioning based on the satellite positioning method is 5 minutes and the signal strength required for acquiring the corresponding positioning information is 5 levels, 5 minutes may be set as a predetermined time period and 5 levels may be set as a predetermined signal strength threshold. If the positioning signal based on the satellite positioning mode is always lower than 5 levels in 5 minutes, the light detection function of the mobile terminal can be started to acquire the light intensity of the environment.
In addition, considering that the light detection is always performed on the current environment, a certain degree of function loss of the mobile terminal may also be caused, for this reason, a corresponding light detection period may be set for the light detection, so that the light detection is a periodic detection, and the processing of obtaining the light intensity of the current environment may be specifically implemented in the following manner: and when a preset light detection period is reached, acquiring the light intensity of the current environment through the photosensitive sensor.
The light sensor can be a sensor which converts a light signal into an electric signal by using a light sensitive element, the sensitive wavelength of the light sensor is near the visible light wavelength, including the infrared wavelength and the ultraviolet wavelength, and the light intensity in the environment can be captured by the light sensor, converted into the electric signal and returned to the mobile terminal.
In practice, the light detection may be performed by a photosensor using a preset light detection period, for example, it may be set to perform light detection every ten minutes, and the intensity of light detected every time is recorded.
In step S316, if the light intensity is greater than the preset intensity threshold, positioning is performed according to a satellite positioning method to obtain second positioning information.
The preset intensity threshold may be set according to an actual situation, which is not limited in the embodiment of the present application.
In implementation, when the detected light intensity is greater than the preset intensity threshold, it may be determined that the mobile terminal has left the closed environment, at this time, the positioning signal of the mobile terminal may reach the predetermined signal intensity threshold, and then, the mobile terminal may perform positioning based on a satellite positioning manner to obtain the required second positioning information.
In step S318, if the light intensity is not greater than the preset intensity threshold, the positioning is performed according to a network positioning manner to obtain second positioning information.
In implementation, if the mobile terminal is always in a closed environment, the positioning signal based on the satellite positioning mode sent by the target application is lower than the predetermined signal intensity threshold, at this time, the mobile terminal cannot obtain the second positioning information based on the satellite positioning mode, and in order to avoid continuous functional loss, positioning may be performed in a network positioning mode.
In the processing of step S318, after the mobile terminal performs positioning in a network positioning manner and obtains the second positioning information, when the detected light intensity changes, the positioning request is processed according to the result of the light intensity change, which may be specifically referred to as step S320 below.
In step S320, when it is detected that the light intensity of the current environment changes and the changed light intensity is greater than the preset intensity threshold, positioning is performed according to a satellite positioning method to obtain second positioning information.
In implementation, after the light intensity is obtained in step S318, if the detected light intensity is greater than the preset intensity threshold, it indicates that the environment in which the mobile terminal is located is changed, that is, the mobile terminal is moved from the closed environment to outside the closed environment, and at this time, if the positioning signal of the satellite positioning is greater than the predetermined signal intensity threshold, the satellite positioning may be requested again to obtain the second positioning information based on the satellite positioning manner.
The embodiment of the application positioning method comprises the steps of after a target application positioning request is obtained, if the target application belongs to a first application type, positioning a mobile terminal by using a network positioning mode to obtain first positioning information, and if the target application belongs to a second application type, positioning the mobile terminal by using the network positioning mode or a satellite positioning mode to obtain second positioning information. By the method, when the positioning request of the application program is received, the corresponding positioning strategy can be adopted for positioning according to the type of the application program, so that unnecessary function loss is reduced, and user experience is improved.
EXAMPLE III
Based on the same idea, the application positioning method provided in the embodiment of the present application further provides a mobile terminal, as shown in fig. 4.
The mobile terminal includes: a request acquisition module 401, a first processing module 402, and a second processing module 403, wherein:
a request obtaining module 401, configured to obtain a target application positioning request, where the positioning request is used to request to position the mobile terminal;
a first processing module 402, configured to, if the target application belongs to a first application type, use a network positioning manner to position the mobile terminal to obtain first positioning information;
a second processing module 403, configured to, if the target application data is of the second application type, use the network positioning manner or the satellite positioning manner to position the mobile terminal, so as to obtain second positioning information.
In this embodiment, the mobile terminal further includes:
the first marking module is used for marking the application type to which the target application belongs as a suspected first application type if the positioning request is cancelled after the positioning information of the target application is acquired based on a network positioning mode;
a first confirmation module, configured to determine that the application type to which the target application belongs is the first application type if a number of times that the application type to which the target application belongs is marked as a suspected first application type exceeds a predetermined number threshold.
In this embodiment, the first processing module 402 includes:
a first positioning obtaining unit, configured to obtain pre-stored target positioning information if the target application belongs to a first application type, where the target positioning information is positioning information obtained based on the network positioning manner;
and the positioning determining unit is used for determining the target positioning information as first positioning information.
In this embodiment, the mobile terminal further includes:
and the second confirmation module is used for marking the application type of the application program as a second application type if the positioning request is not cancelled after the positioning information of the target application is acquired based on a network positioning mode.
In this embodiment, the second processing module 403 includes:
the detection unit is used for acquiring the light intensity of the current environment if the target application is of a second application type and the positioning signal of the satellite positioning mode is lower than a preset signal intensity threshold within a preset time length;
the second positioning acquisition unit is used for positioning according to the satellite positioning mode to obtain second positioning information if the light intensity is greater than a preset intensity threshold;
and the third positioning acquisition unit is used for positioning according to the network positioning mode to obtain second positioning information if the light intensity is not greater than a preset intensity threshold value.
In this embodiment, the mobile terminal further includes:
and the fourth positioning acquisition module is used for positioning according to the satellite positioning mode to obtain second positioning information when the light intensity of the current environment is detected to be changed and the changed light intensity is greater than a preset intensity threshold value.
In the embodiment of the application, the detection unit is used for acquiring the light intensity of the current environment through the photosensitive sensor when the preset light detection period is reached.
The embodiment of the application provides a mobile terminal, after a target application positioning request is obtained, if a target application belongs to a first application type, a network positioning mode is used for positioning the mobile terminal to obtain first positioning information, and if the target application belongs to a second application type, the network positioning mode or a satellite positioning mode is used for positioning the mobile terminal to obtain second positioning information. Through the processing mode, when the positioning request of the application program is received, the corresponding positioning strategy can be adopted for positioning according to the type of the application program, so that unnecessary function loss is reduced, and the user experience is improved.
Example four
Figure 5 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 5 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 510 is configured to obtain a target application location request, where the location request is used to request to locate the mobile terminal;
the processor 510 is further configured to, if the target application belongs to a first application type, use a network positioning manner to position the mobile terminal to obtain first positioning information;
the processor 510 is further configured to, if the target application data is of the second application type, use the network positioning manner or the satellite positioning manner to position the mobile terminal, so as to obtain second positioning information.
In addition, the processor 510 is further configured to mark the application type to which the target application belongs as a suspected first application type if the positioning request is cancelled after the positioning information of the target application is acquired based on a network positioning manner; and if the frequency that the application type to which the target application belongs is marked as the suspected first application type exceeds a preset frequency threshold value, determining that the application type to which the target application belongs is the first application type.
In addition, the processor 510 is further configured to obtain pre-stored target positioning information, where the target positioning information is positioning information obtained based on the network positioning manner; and if the target application belongs to the first application type, determining the target positioning information as first positioning information.
In addition, the processor 510 is further configured to mark the application type to which the application program belongs as a second application type if the positioning request is not cancelled after the positioning information of the target application is acquired based on a network positioning manner.
In addition, the processor 510 is further configured to obtain the light intensity of the current environment if the positioning signal of the satellite positioning mode of the second application type is lower than a predetermined signal intensity threshold within a predetermined time period; if the light intensity is greater than a preset intensity threshold value, positioning according to the satellite positioning mode to obtain second positioning information; and if the light intensity is not greater than a preset intensity threshold value, positioning according to the network positioning mode to obtain second positioning information.
In addition, the processor 510 is further configured to perform positioning according to the satellite positioning manner to obtain second positioning information when it is detected that the light intensity of the current environment changes and the changed light intensity is greater than a preset intensity threshold.
In addition, the processor 510 is further configured to obtain the light intensity of the current environment through the photosensitive sensor when a preset light detection period is reached.
The embodiment of the application provides a mobile terminal, after a target application positioning request is obtained, if a target application belongs to a first application type, a network positioning mode is used for positioning the mobile terminal to obtain first positioning information, and if the target application belongs to a second application type, the network positioning mode or a satellite positioning mode is used for positioning the mobile terminal to obtain second positioning information. Through the processing mode, when the positioning request of the application program is received, the corresponding positioning strategy can be adopted for positioning according to the type of the application program, so that unnecessary function loss is reduced, and the user experience is improved.
It should be understood that, in the embodiment of the present application, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the mobile terminal 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The mobile terminal 500 also includes at least one sensor 505, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the mobile terminal 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 5, the touch panel 5071 and the display panel 5061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 500 or may be used to transmit data between the mobile terminal 500 and external devices.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 510 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the mobile terminal. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The mobile terminal 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 510, a memory 509, and a computer program that is stored in the memory 509 and can be run on the processor 510, and when the computer program is executed by the processor 510, the processes of the method embodiment for positioning an application are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
EXAMPLE five
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for application positioning, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
The embodiment of the application provides a computer-readable storage medium, after a target application positioning request is obtained, if a target application belongs to a first application type, a network positioning mode is used for positioning a mobile terminal to obtain first positioning information, and if the target application belongs to a second application type, the network positioning mode or a satellite positioning mode is used for positioning the mobile terminal to obtain second positioning information. Through the processing mode, when the positioning request of the application program is received, the corresponding positioning strategy can be adopted for positioning according to the type of the application program, so that unnecessary function loss is reduced, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (8)

1. A method for positioning an application, applied to a mobile terminal, is characterized in that the method comprises:
acquiring a positioning request of a target application, wherein the positioning request is used for requesting to position the mobile terminal;
if the target application belongs to the first application type, positioning the mobile terminal by using a network positioning mode to obtain first positioning information;
if the target application belongs to a second application type, positioning the mobile terminal by using the network positioning mode or the satellite positioning mode to obtain second positioning information;
wherein, if the target application belongs to the first application type, before positioning the mobile terminal by using a network positioning mode to obtain first positioning information, the method further comprises:
if the positioning request based on the satellite positioning mode is cancelled after the positioning information of the target application is acquired based on the network positioning mode, marking the application type to which the target application belongs as a suspected first application type;
if the frequency that the application type to which the target application belongs is marked as a suspected first application type exceeds a preset frequency threshold value, determining that the application type to which the target application belongs is the first application type;
wherein, before the positioning the mobile terminal by using the network positioning manner or the satellite positioning manner to obtain the second positioning information if the target application data is of the second application type, the method further comprises:
and if the positioning request based on the satellite positioning mode is not cancelled after the positioning information of the target application is acquired based on the network positioning mode, marking the application type to which the target application belongs as a second application type.
2. The method according to claim 1, wherein if the target application belongs to the first application type, the positioning the mobile terminal by using a network positioning manner to obtain first positioning information comprises:
if the target application belongs to the first application type, acquiring prestored target positioning information, wherein the target positioning information is positioning information acquired based on the network positioning mode;
determining the target positioning information as the first positioning information.
3. The method according to claim 1, wherein if the target application belongs to a second application type, using the network positioning manner or the satellite positioning manner to position the mobile terminal to obtain second positioning information comprises:
if the target application is of a second application type and the positioning signal of the satellite positioning mode is lower than a preset signal intensity threshold value within a preset time, acquiring the light intensity of the current environment;
if the light intensity is greater than a preset intensity threshold value, positioning according to the satellite positioning mode to obtain second positioning information;
and if the light intensity is not greater than a preset intensity threshold value, positioning according to the network positioning mode to obtain second positioning information.
4. The method of claim 3, wherein if the light intensity is not greater than a predetermined intensity threshold, then performing positioning according to the network positioning method, and after obtaining second positioning information, the method further comprises:
and when the light intensity of the current environment is detected to be changed and the changed light intensity is greater than a preset intensity threshold value, positioning according to the satellite positioning mode to obtain second positioning information.
5. The method according to claim 3 or 4, wherein the obtaining the light intensity of the current environment comprises:
and when a preset light detection period is reached, acquiring the light intensity of the current environment through the photosensitive sensor.
6. A mobile terminal, characterized in that the mobile terminal comprises:
the mobile terminal comprises a request acquisition module, a request processing module and a processing module, wherein the request acquisition module is used for acquiring a positioning request of a target application, and the positioning request is used for requesting to position the mobile terminal;
the first processing module is used for positioning the mobile terminal by using a network positioning mode to obtain first positioning information if the target application belongs to a first application type;
the second processing module is used for positioning the mobile terminal by using the network positioning mode or the satellite positioning mode to obtain second positioning information if the target application belongs to a second application type;
the mobile terminal further includes:
the first marking module is used for marking the application type to which the target application belongs as a suspected first application type if a positioning request based on a satellite positioning mode is cancelled after positioning information of the target application is acquired based on a network positioning mode;
a first confirmation module, configured to determine that the application type to which the target application belongs is the first application type if a number of times that the application type to which the target application belongs is marked as a suspected first application type exceeds a predetermined number threshold;
and the second confirmation module is used for marking the application type of the target application as a second application type if the positioning request based on the satellite positioning mode is not cancelled after the positioning information of the target application is acquired based on the network positioning mode.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the method of application localization according to any of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of application localization according to any one of claims 1 to 5.
CN201810997564.5A 2018-08-29 2018-08-29 Application positioning method and mobile terminal Active CN109164477B (en)

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 CN109164477A (en) 2019-01-08
CN109164477B true 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)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109889873B (en) * 2017-12-06 2021-07-06 中兴通讯股份有限公司 Play switching method, set top box, wearable device and storage medium
CN111736196B (en) * 2019-06-14 2022-05-06 腾讯科技(深圳)有限公司 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
CN110456395B (en) * 2019-08-13 2022-03-04 维沃移动通信有限公司 Positioning method and terminal equipment
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
CN116866818A (en) * 2022-03-26 2023-10-10 华为技术有限公司 Method and communication device for positioning

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102082993B (en) * 2009-11-26 2014-01-08 中国电信股份有限公司 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 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal
CN106878945B (en) * 2017-01-23 2019-11-26 北京安云世纪科技有限公司 Optimization method, device and the mobile terminal of positioning system performance
CN106973150B (en) * 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal
CN107124699A (en) * 2017-05-05 2017-09-01 广东小天才科技有限公司 Terminal device localization method and device
CN108076507B (en) * 2017-12-13 2020-09-22 Oppo广东移动通信有限公司 Positioning mode control method and device, storage medium and mobile terminal
CN108093373B (en) * 2017-12-13 2020-09-15 Oppo广东移动通信有限公司 Positioning control method and device, storage medium and terminal equipment
CN108012237B (en) * 2017-12-13 2020-02-14 Oppo广东移动通信有限公司 Positioning control method and device, storage medium and terminal equipment

Also Published As

Publication number Publication date
CN109164477A (en) 2019-01-08

Similar Documents

Publication Publication Date Title
CN109164477B (en) Application positioning method and mobile terminal
CN107943489B (en) Data sharing method and mobile terminal
CN108337368B (en) Method for updating positioning data and mobile terminal
CN107566985B (en) Method and device for determining main SIM card of mobile terminal
CN110221737B (en) Icon display method and terminal equipment
CN111316673B (en) Electronic fence updating method and communication device
CN107608855B (en) Reminding method and mobile terminal
CN107888765B (en) Method for switching scene mode and mobile terminal
CN108681413B (en) Control method of display module and mobile terminal
KR101848696B1 (en) A method of superimposing location information on a collage,
CN111107219B (en) Control method and electronic equipment
CN108551525B (en) State determination method of movement track and mobile terminal
CN109936817B (en) Positioning method and terminal equipment
CN110234068B (en) Positioning method and terminal equipment
CN109522741B (en) Application program permission prompting method and terminal equipment thereof
CN111221602A (en) Interface display method and electronic equipment
CN110824516B (en) Positioning method and electronic equipment
CN107835304B (en) Method and device for controlling mobile terminal, mobile terminal and storage medium
CN111427644B (en) Target behavior identification method and electronic equipment
CN109618278B (en) Positioning method and mobile terminal
CN108988413B (en) Mobile terminal charging method and mobile terminal
CN109040457B (en) Screen brightness adjusting method and mobile terminal
CN109041212B (en) Positioning method and wearable device
CN111399011A (en) Position information determining method and electronic equipment
CN111103607A (en) Positioning prompting method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant