CN108076507B - Positioning mode control method and device, storage medium and mobile terminal - Google Patents

Positioning mode control method and device, storage medium and mobile terminal Download PDF

Info

Publication number
CN108076507B
CN108076507B CN201711326718.XA CN201711326718A CN108076507B CN 108076507 B CN108076507 B CN 108076507B CN 201711326718 A CN201711326718 A CN 201711326718A CN 108076507 B CN108076507 B CN 108076507B
Authority
CN
China
Prior art keywords
application
background
application program
running
mobile terminal
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
CN201711326718.XA
Other languages
Chinese (zh)
Other versions
CN108076507A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711326718.XA priority Critical patent/CN108076507B/en
Publication of CN108076507A publication Critical patent/CN108076507A/en
Application granted granted Critical
Publication of CN108076507B publication Critical patent/CN108076507B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • H04W52/0264Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the application discloses a positioning mode control method, a positioning mode control device, a storage medium and a mobile terminal. The method comprises the following steps: when a Location Based Service (LBS) application initiating a positioning request is received, acquiring the current residual capacity of the mobile terminal; when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which is currently running in a background of the mobile terminal; and determining the positioning mode of the LBS application according to the first type information. By adopting the technical scheme, the embodiment of the application reasonably determines the positioning mode of the LBS application, can effectively reduce the power consumption and prolong the standby time of the mobile terminal.

Description

Positioning mode control method and device, storage medium and mobile terminal
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a positioning mode control method, a positioning mode control device, a storage medium and a mobile terminal.
Background
With the rapid development of electronic technology and the increasing living standard of people, mobile terminals such as smart phones and tablet computers have become an essential part of the life of people. In order to meet different requirements of users, the users may install various Applications (APPs) in the mobile terminals, such as a weather Application, a news Application, a navigation Application, and the like. Generally, these applications need to acquire the current location information of the user to provide better service for the user.
Generally, Location Based Service (LBS) applications (hereinafter referred to as LBS applications) are located by a hybrid Location method of Global Navigation Satellite System (GNSS), WIFI, base station and bluetooth. Different positioning modes have different power consumption, and different positioning modes have different positioning accuracy. In general, GNSS positioning is preferably used, when GNSS cannot be searched, Wireless Fidelity (WiFi) network positioning is used, and finally, base station positioning and bluetooth positioning are selected.
However, in the process of searching satellites through the GNSS positioning method, power consumption is quite large, and especially under the condition that the power consumption of the terminal is low, the mobile terminal is easily turned off, which affects normal use of the user.
Disclosure of Invention
The embodiment of the application provides a positioning mode control method, a positioning mode control device, a storage medium and a mobile terminal, which can effectively control the positioning mode of LBS application and reduce the power consumption of the mobile terminal.
In a first aspect, an embodiment of the present application provides a positioning method control method, including:
when a Location Based Service (LBS) application initiating a positioning request is received, acquiring the current residual capacity of the mobile terminal;
when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which is currently running in a background of the mobile terminal;
and determining the positioning mode of the LBS application according to the first type information.
In a second aspect, an embodiment of the present application provides a positioning method control apparatus, including:
the system comprises a residual capacity acquisition module, a positioning module and a power management module, wherein the residual capacity acquisition module is used for acquiring the current residual capacity of the mobile terminal when receiving a positioning request initiated by a Location Based Service (LBS) application;
the first type information acquisition module is used for acquiring first type information of an application program currently running in a background of the mobile terminal when the residual electric quantity is smaller than a preset electric quantity threshold value;
and the positioning mode determining module is used for determining the positioning mode of the LBS application according to the first type information.
In a third aspect, an embodiment of 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 positioning mode control method according to the first aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the positioning method according to the first aspect of the embodiment of the present application.
According to the positioning mode control scheme provided by the embodiment of the application, when a positioning request initiated by the LBS application based on the position service is received, the current residual electric quantity of the mobile terminal is obtained, when the residual electric quantity is smaller than a preset electric quantity threshold value, the first type information of the application program running in the current background of the mobile terminal is obtained, and then the positioning mode of the LBS application is determined according to the first type information. When the residual electric quantity of the mobile terminal is less, the positioning mode of the LBS application is reasonably determined according to the application program running in the background, the electric quantity consumption can be effectively reduced, and the standby time of the mobile terminal is prolonged.
Drawings
Fig. 1 is a schematic flowchart of a positioning method control method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of another positioning mode control method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another positioning method control method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another positioning method control method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a positioning mode control device according to an embodiment of the present disclosure;
fig. 6 is a block diagram of a mobile terminal according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the application is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
At present, an intelligent system is used as an operating system platform of an intelligent terminal with the largest user group, and can be compatible with various third-party applications so as to meet various use requirements of users in life and entertainment. These third-party applications include a large number of LBS applications, which provide better services to the user by acquiring the user's location information.
Different LBS applications are located by different positioning manners, and are usually preferentially located by a GNSS positioning module, wherein the GNSS positioning module (for short, GNSS) may be a Global Positioning System (GPS) positioning module, or other positioning modules based on satellite positioning manners, such as a beidou satellite navigation system module and a GALILEO satellite navigation system (GALILEO) module. When the GNSS (such as GPS) can not realize positioning, the positioning is carried out by a WiFi network positioning module, a base station positioning module, a Bluetooth positioning module and the like. However, when the LBS application calls the GNSS, a large amount of power is easily consumed, and especially when the power of the mobile terminal is low, the mobile terminal is easily powered off immediately by calling the GNSS, which affects normal use of the user. Moreover, different types of LBS applications have different requirements on positioning accuracy, such as a Baidu map with higher requirements on positioning accuracy and Baidu takeout with lower requirements on positioning accuracy. If the LBS application with lower requirement on positioning accuracy is used under the condition that the electric quantity of the mobile terminal is lower, the GNSS module is directly called for positioning, so that the electric quantity is wasted, the requirement on the positioning of the LBS application is not substantial, and the mobile terminal is easy to shut down. In addition, in the process of using the mobile terminal, a plurality of application programs still keep running in the background of the mobile terminal. However, the number and the types of applications running in the background are different, and the power consumption of the mobile terminal is different. Therefore, when the power of the mobile terminal is low, in order to prolong the endurance time of the mobile terminal, the application program running in the background may have a certain influence on the location mode of the LBS application initiating the location request. It is understood that when the LBS application initiates a location request, its location mode is also germane to the application running in the background. For the above reasons, the embodiments of the present application provide the following positioning manner control method.
Fig. 1 is a schematic flowchart of a positioning method control method according to an embodiment of the present application, where the present embodiment is applicable to a case where a positioning method of an LBS application initiating a positioning request is controlled according to an application program running in a background. As shown in fig. 1, the method includes:
step 101, when receiving a positioning request initiated by an LBS application, acquiring the current residual power of the mobile terminal.
In the embodiment of the present application, the LBS application is application software that needs to provide a service by acquiring the current location information of the user, and provides a better service for the user by acquiring the location information of the user. For example, in weather application, when a user needs to obtain weather information of a region where the user is located through the weather application, the weather application needs to locate position information of the region where the user is located through positioning the position information of the region where the user is located because weather conditions of various regions are different, so that accurate weather information is provided for the user more accurately. And when receiving a positioning request initiated by the LBS application, acquiring the current residual power of the mobile terminal. The remaining capacity of the mobile terminal can be understood as the current remaining capacity of the mobile terminal. The more the residual electric quantity of the mobile terminal is, the longer the time that the mobile terminal can be used by a user is, and the longer the cruising time is; conversely, the smaller the remaining power of the mobile terminal is, the shorter the time that the mobile terminal can be used by the user is, the shorter the cruising time is.
And 102, when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which runs in a current background of the mobile terminal.
In the embodiment of the application, the residual electric quantity is compared with the preset electric quantity threshold value, and the size relation between the residual electric quantity and the preset electric quantity threshold value is judged. When the remaining power is compared with the preset power threshold, the full power of the mobile terminal can be used as a reference. It is understood that the remaining power may refer to a percentage of a current power of the mobile terminal to a full power of the mobile terminal, and the preset power threshold may be set to a proportional value of the full power of the mobile terminal, for example, the preset power threshold is set to 30% of the full power of the mobile terminal. And when the residual electric quantity is less than a preset electric quantity threshold value, if the residual electric quantity is 20%, judging whether an operating application program exists in a background of the mobile terminal. When the running application program exists in the background of the mobile terminal, the first type information of the application program running in the background is acquired. One or more applications running in the background may be provided. When there are a plurality of applications running in the background, the application type information of each application running in the background may be referred to as first type information.
Optionally, the first type information of at least one application running in the background is obtained. The type information of the LBS application may include a video-type application (e.g., Tencent video, Aiqiyi video), a game-type application (e.g., Royal, Happy Xiaole), a text-type application (e.g., electronic novel, word), a navigation-type application (e.g., Baidu map, Gaodde map), and the like. The first type information of the application program running in the background can reflect not only the power consumption of the application program, the occupied system memory and the CPU occupancy rate, but also the degree of association with the application program running in the foreground of the mobile terminal (such as LBS application initiating a positioning request in the mobile terminal). Illustratively, the application running in the background is a music application (e.g., cool dog music, QQ music, internet music cloud), and the LBS application initiating the location request in the mobile terminal is a Keep application. The music application program running in the background and the Keep application program initiating the positioning request are in close relation, or the association degree of the music application program and the Keep application program initiating the positioning request is stronger. It will be appreciated that the user monitors the running distance via the Keep application, while listening to music via the music-like application running in the background during running to relax the mood. The first type information may be determined by obtaining package name information of the application program running in the background, or may be determined by obtaining other identification information of the application program running in the background, such as a process identification of the application program running in the background.
And 103, determining a positioning mode of the LBS application according to the first type information.
In the embodiment of the application, when the remaining power of the mobile terminal is less, for example, the remaining power is less than the preset power threshold, the location mode of the LBS application initiating the location request is determined according to the first type information of the application running in the background of the mobile terminal. Illustratively, whether the application program running in the background belongs to the preset application type set is judged according to the first type information. And when the application program running in the background is judged to belong to the preset application type set according to the first type information, taking any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode as the positioning mode of the LBS application. And when the application program running in the background is judged not to belong to the preset application type set according to the first type information, determining the GNSS positioning mode as the positioning mode of the LBS application. And when the application programs in the preset application type set run in the background, the power consumption is larger. It is understood that the preset application type set may be a list in which type information of each application program is stored, such as package name and/or process identification of each application program, and identification information capable of uniquely identifying the application program. The preset application type set may be generated and formulated by performing data statistics on power consumption of different types of applications. It can be understood that when the remaining power of the mobile terminal is low and the background of the mobile terminal has an application program running with high power consumption, in order to reduce the large power consumption of the LBS application, the LBS application initiating the location request may perform the location by using a low power consumption location manner such as a network location manner, a base station location manner, and a bluetooth location manner. When the residual power of the mobile terminal is low, and meanwhile, an application program running in the background of the mobile terminal exists, but the power consumption of the application program running in the background is low, the LBS application can perform positioning in a GNSS positioning mode with high positioning accuracy.
Optionally, determining a location mode of the LBS application according to the first type information may include: controlling the application program running in the background to close or maintain running according to the first type information; and determining the positioning mode of the LBS application according to the control result of controlling the closing or maintaining of the application program running in the background. The setting has the advantages that the positioning mode of the LBS application can be reasonably determined according to the working state (closing or maintaining running) of the application program running in the background, the power consumption is reduced, and the standby time of the mobile terminal is prolonged.
Optionally, determining a location mode of the LBS application according to a control result of controlling the application program running in the background to close or maintain running may include: when the application program running in the background is controlled to be closed according to the first type of information, providing positioning information for LBS application in a GNSS positioning mode; and when the application program running in the background is controlled to maintain running according to the first type information, providing the positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode. For example, when it is determined that the application program running in the background consumes more power or occupies more system resources according to the first type information, the application program running in the background may be controlled to be closed. For example, the application program running in the background is a game application program or a video application program, and when the application program runs in the background of the mobile terminal, the power consumption of the mobile terminal is large, so that the endurance time of the mobile terminal can be greatly reduced. Thus, at this point, these applications may be controlled to shut down. The power consumption of the application program which runs in the background and is relatively high is controlled to be closed, so that the power consumption of the mobile terminal can be effectively reduced, and the endurance time of the mobile terminal is adaptively prolonged. And when the power consumption of the application program running in the background is determined to be smaller or the occupied system resource is less according to the first type information, the application program running in the background can be controlled to continuously keep a running state. For example, the applications running in the background are music-like applications (such as QQ music, cool dog music, etc.), and these applications consume less power to the mobile terminal when the mobile terminal runs in the background, and these applications may increase the user experience when running in the background. For example, the user has a preference to listen to music, and therefore, it is not desirable to shut down these applications running in the background so that they continue to remain running in the background. Although the application program continuously running in the background of the mobile terminal consumes less power of the mobile terminal, when the remaining power of the mobile terminal is less, the application program still has certain influence on the endurance time of the mobile terminal, so when the LBS application initiates a positioning request, the LBS application can be provided with positioning information through a network positioning mode, a base station positioning mode and a bluetooth positioning mode which have lower power consumption. The method has the advantages that the LBS application can be ensured to acquire the position information to provide service for the user, meanwhile, the endurance time of the terminal can be properly prolonged, the application program running in the background can provide service for the user, and the use experience of the user can be greatly improved.
For example, when it is determined that the power consumption of the applications running in the background is large according to the first type information, but the applications running in the background are indispensable to meet the user requirements, the applications running in the background can be controlled to maintain the running state. For example, the application running in the background is a flashlight application, which consumes a large amount of power when running in the background, but at night, the user needs to illuminate through the flashlight running in the background, and at this time, the application running in the background should not be turned off. Therefore, when the LBS application initiates a location request, in order to save power, location information can be provided to the LBS application through a location mode with lower power consumption, such as a network location mode, a base station location mode, and a bluetooth location mode. When the power consumption of the application programs running in the background is determined to be small according to the first type information, but the application programs running in the background do not necessarily help to meet the user requirements, the application programs running in the background can be controlled to be closed. For example, the application running in the background is a calculator application, and when the calculator application does not help the user necessarily during driving, the application running in the background can be controlled to be closed. Therefore, when the LBS application initiates a positioning request, the location information can be provided to the LBS application in a way that the GNSS positioning accuracy is higher, so as to provide better service for the user.
According to the positioning mode control method provided by the embodiment of the application, when a positioning request initiated by the LBS application based on the position service is received, the current residual electric quantity of the mobile terminal is obtained, when the residual electric quantity is smaller than a preset electric quantity threshold value, the first type information of the application program running in the current background of the mobile terminal is obtained, and then the positioning mode of the LBS application is determined according to the first type information. When the residual electric quantity of the mobile terminal is less, the positioning mode of the LBS application is reasonably determined according to the application program running in the background, the electric quantity consumption can be effectively reduced, and the standby time of the mobile terminal is prolonged.
In some embodiments, before controlling the application running in the background to close or maintain running according to the first type information, the method may include: acquiring current application scene information of the mobile terminal; and determining at least one target application program corresponding to the current application scene information of the mobile terminal according to the corresponding relation between the application scene and the application program stored in advance, and taking the target application program as a target set. Controlling the application program running in the background to close or maintain running according to the first type information, comprising the following steps: judging whether the application program running in the background belongs to a target set or not according to the first type information; when the application program running in the background belongs to the target set, controlling the application program running in the background to maintain running; and when the application program running in the background does not belong to the target set, controlling the application program running in the background to be closed. The advantage of setting up like this lies in, can be according to the scene information that mobile terminal located, the operating condition (close or maintain the operation) of the application of reasonable control mobile terminal backstage operation, can effectively reduce mobile terminal's electric quantity consumption, further increases mobile terminal's duration, and the application of control backstage operation is different under different scenes simultaneously, can also satisfy user's demand, improves user experience.
Further, determining a location mode of the LBS application according to a control result of controlling the application program running in the background to close or maintain running may include: when the application program running in the background is controlled to be closed according to the first type of information, providing positioning information for LBS application in a GNSS positioning mode; and when the application program running in the background is controlled to maintain running according to the first type information, providing the positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode. The setting has the advantages that when the residual electric quantity of the mobile terminal is small, the working state (closing or maintaining running) of the application program running in the background of the mobile terminal can be reasonably controlled according to the scene information of the mobile terminal, so that the positioning mode of the LBS application is further controlled according to the working state of the application program running in the background, the electric quantity consumption of the mobile terminal can be reduced, and the endurance time of the mobile terminal is further increased.
In the embodiment of the application, the current application scene information of the mobile terminal is acquired before the application program running in the background is controlled to be closed or kept running according to the first type information. The background running application programs of the mobile terminal are different in different application scenes, or the working states (closing or maintaining running) of the background running application programs are controlled to be different in different application scenes. The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge.
Optionally, the time category when the application program runs in the background is determined according to the time information of the mobile terminal, where the time category may include a first time category and a second time category. Optionally, the first time category is obtained according to a date of the application program running in the background determined by the time information of the mobile terminal, where the first time category may include: working days and holidays; acquiring a second time category according to a time period of the application program running in the background determined by the time information of the mobile terminal, wherein the second time category may include: morning peak, noon, evening peak, work hours, and rest hours; and taking the combination of the first time category and the second time category as the time category of the application program running in the background. Optionally, the second time category may also include day, evening, and rest hours. Of course, the second time category may also be divided equally into 0:00-24:00 hours 24 hours a day, for example, into 6 time periods, each time period being 4 hours. Wherein the second time category may be recorded in the form of a timestamp.
The environment information in the application scenario information may include an indoor environment and an outdoor environment, and the indoor environment may include a home, an office, a mall building, and the like. For example, the current environment information of the mobile terminal may be obtained through GNSS, that is, whether the mobile terminal is currently in an indoor environment or an outdoor environment is determined through GNSS. The mobile terminal inputs satellite information of a plurality of satellites to the GNSS, judges whether the satellite information changes or not, and determines that the mobile terminal is currently in an indoor environment if the satellite information does not change. If the satellite information of at least one satellite is changed in the satellite information of the plurality of satellites, whether the signal intensity of the changed satellite information is smaller than a preset intensity threshold value is further judged. And when the signal intensity is smaller than a preset intensity threshold value, further judging whether the number of satellites corresponding to the changed satellite information is smaller than a preset satellite threshold value, and if the number of satellites is smaller than the preset satellite threshold value, determining that the mobile terminal is currently in an indoor environment. If at least one of the signal strengths of the changed satellite information is greater than a preset strength threshold, it may be determined that the mobile terminal is currently located in an outdoor environment. Or, the signal intensity of the changed satellite information is smaller than the preset intensity threshold, but the number of satellites corresponding to the changed satellite information is larger than the preset satellite threshold, and it may also be determined that the mobile terminal is currently located in an outdoor environment.
The method comprises the steps of acquiring image information of an environment where the mobile terminal is located through a front camera or a rear camera of the mobile terminal, and judging whether the mobile terminal is located in an indoor environment or an outdoor environment according to the acquired image information of the environment. For example, if the image information of the environment acquired by the mobile terminal is image information of an office or a home, it may be determined that the mobile terminal is currently located in an indoor environment. The image information of the environment acquired by the mobile terminal is building information and/or road information, and then it can be determined that the mobile terminal is currently located in an outdoor environment. The distance between the mobile terminal and each edge (such as a wall surface and the ground) of the space where the terminal is located can be measured by utilizing the ranging sensor. And judging whether the mobile terminal is in an indoor environment or an outdoor environment according to the measured distance. For example, if the measured distances from the mobile terminal to the edge of the terminal are both smaller than the preset distance threshold, it may be determined that the mobile terminal is in an indoor environment. When at least one distance in the distances from the edge of the mobile terminal to the terminal is greater than a preset distance threshold, it can be determined that the mobile terminal is in an outdoor environment. It should be noted that, in the embodiment of the present application, a specific method for determining whether the mobile terminal is in an indoor environment or an outdoor environment is not specifically limited.
The network connection information may include whether the mobile terminal is connected to a network, and when the mobile terminal is connected to a network, the type of the network, such as a WiFi network or a mobile communication network. And the application programs running in the background of the mobile terminal are different when the mobile terminal is in different network connection states. For example, in the case of network connection, the applications running in the background of the mobile terminal may include applications that need to be connected to the network to implement corresponding functions, such as applications in mobile phone panning and high-grade maps. Under the condition of no network connection, the application programs running in the background of the mobile terminal can include application programs which can realize corresponding functions without a network, such as application programs of a camera, a photo, a memo and the like.
Whether to charge may include whether the mobile terminal is in a charging mode, wherein when the mobile terminal is in the charging mode, a charging mode type may also be included. The charging mode types may include a fast charging mode in which charging is performed through a fast charging power adapter (e.g., a mobile power supply) and a normal charging mode in which charging is performed through a normal power adapter (e.g., an original charger of a mobile terminal). And the mobile terminal has different application programs running in the background under different charging modes. For example, when the mobile terminal is not charged, in order to reduce power consumption of the mobile terminal, the applications running in the background of the mobile terminal may include applications with less power consumption, such as music applications and document applications. For another example, when the mobile terminal is in the fast charging mode, it may be said that the mobile terminal is in an outdoor environment, and the application program running in the background of the mobile terminal may include an application program frequently used outdoors by the user, such as a navigation application program like a high-grade map or a Baidu map; when the mobile terminal is in the normal charging mode, it may be said that the mobile terminal is in an indoor environment, and the applications running in the background of the mobile terminal may include applications frequently used by the user indoors, such as video applications and game applications.
Illustratively, at least one target application program corresponding to the current application scene information of the terminal is searched according to the corresponding relation between the application scene and the application program stored in advance, and the target application program or the target application programs are used as a target set. It can be understood that the pre-stored correspondence between the application scenarios and the application programs may be a list, and the application programs corresponding to the respective application scenarios are stored in the list. The application programs corresponding to the application scenes in the list can be understood as allowing the application programs to continuously maintain the running state in the background of the mobile terminal under the corresponding scenes. And judging whether the application program running in the background belongs to the target set or not according to the first type information, controlling the application program running in the background to maintain running when the application program running in the background belongs to the target set, and controlling the application program running in the background to be closed when the application program running in the background does not belong to the target set. It can be understood that, according to the first type information of the application program running in the current background of the mobile terminal, whether the application program running in the current background belongs to the application program in the current application scene is judged, and the application program is allowed to continue to keep running in the background of the mobile terminal. When it is determined that the applications currently running in the background belong to the target set according to the first type information, it indicates that the applications are allowed to continue to run in the background under the current application scene. When the current application programs running in the background do not belong to the target set according to the first type information, the fact that the application programs are not allowed to continue to run in the background in the current application scene is indicated, and the application programs running in the background can be directly controlled to be closed.
The pre-stored correspondence between the application scenario and the application program may be generated by counting or learning historical usage habits of the user sample and corresponding scenario information. The selection of the user sample may be historical usage data of the user and scene information corresponding to the historical usage data in a set time interval, or historical usage data and corresponding scene information in a set time interval of a set number of user groups meeting set conditions. For example, the server acquires historical use data of a local user within one month, takes the historical use data and scene information corresponding to the historical use data as a user sample, learns the user sample by adopting a machine learning model, and predicts an application program which is possibly caused by the user to continue to run in a background of the mobile terminal under different application scenes. And generating a corresponding relation between the application scene and the application program according to the application program which is possibly continuously operated in the background of the mobile terminal under different application scenes so as to determine the application program which is allowed to continuously maintain to operate in the background of the mobile terminal according to the current application scene information of the terminal. And after the corresponding relation between the application scene and the application program is generated, pushing the application scene and the application program to the mobile terminal by the server. It should be noted that the correspondence between the application scenario and the application program may also be selected by the user. The corresponding relation between the application scene and the application program can be stored in a mobile terminal local or cloud server in a file mode, and can also be stored in the mobile terminal local or cloud server in a database mode.
Illustratively, when the application program running in the background is controlled to be closed according to the first type information of the application program running in the background and the current application scene information of the mobile terminal, positioning information can be provided for the LBS application in a GNSS positioning manner. It can be understood that, in the current application scenario of the mobile terminal, after the application program running in the background is closed, the power consumption of the mobile terminal can be effectively reduced, and the duration of the mobile terminal is adaptively prolonged, so that when the LBS application initiates a positioning request, the LBS application can be provided with positioning information in a positioning manner with higher GNSS positioning accuracy, so as to provide better service for the user. When the application program running in the background is controlled to keep running according to the first type information of the application program running in the background and the current application scene information of the mobile terminal, positioning information can be provided for LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode. It can be understood that, in the current application scenario of the mobile terminal, the application programs running in the background are kept running, and the power consumption of the mobile terminal is increased by the application programs running in the background, so that the duration of the mobile terminal is reduced.
In some embodiments, before determining the location mode of the LBS application according to the first type information, the method may further include: acquiring second type information of the LBS application; correspondingly, determining the location mode of the LBS application according to the first type information may include: and determining the positioning mode of the LBS application according to the first type information and the second type information. The setting has the advantages that the positioning mode of the LBS application can be reasonably determined according to the application program running in the background and the LBS application initiating the positioning request, and the endurance time of the mobile terminal is further increased.
Illustratively, when determining that the power consumption of an application program running in the background of the mobile terminal is larger according to the first type of information, the application program running in the background is controlled to be closed, and when determining that the LBS application initiating the positioning request has higher requirement on the positioning accuracy according to the second type of information, the LBS application can be provided with the position information in a GNSS positioning mode with higher positioning accuracy; when determining that the power consumption of the application program running in the background of the mobile terminal is larger according to the first type information, controlling the application program running in the background to be closed, and when determining that the LBS application initiating the positioning request has lower requirement on the positioning accuracy according to the second type information, providing the position information for the LBS application through any one or more of network positioning, base station positioning and Bluetooth positioning with lower positioning accuracy; when the LBS application initiating the positioning request is determined to have higher requirement on the positioning accuracy according to the second type information and the power consumption of the application running in the background of the mobile terminal is determined to be lower according to the first type information, the position information can be provided for the LBS application in a GNSS positioning mode with higher positioning accuracy without considering the working state (closing or maintaining running) of the application running in the background; when the LBS application initiating the positioning request is determined to have lower requirement on the positioning accuracy according to the second type information, and meanwhile, when the power consumption of the application program running in the background of the mobile terminal is determined to be lower according to the first type information, the LBS application can be provided with the position information through any one or more of network positioning, base station positioning and Bluetooth positioning with lower positioning accuracy regardless of the working state (closing or maintaining running) of the application program running in the background.
Optionally, determining a location mode of the LBS application according to the first type information and the second type information may include: determining the association degree of the application program running in the background and the LBS application according to the first type information and the second type information; when the correlation degree is greater than a preset correlation threshold value, controlling the application program running in the background to maintain running; and providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode. The method has the advantages that the LBS application can be ensured to acquire the position information to provide service for the user, meanwhile, the endurance time of the terminal can be properly prolonged, the application program running in the background can provide service for the user, and the use experience of the user can be greatly improved.
The association degree comprises a probability value of the application program running in the background when the LBS application initiates a positioning request. The degree of association between the application running in the background and the LBS application initiating the location request may be understood as a probability value of the application running in the background when the LBS application initiates the location request, or a degree of dependence of the application running in the background on the LBS application. Illustratively, the application running in the background is a music application (e.g., cool dog music, QQ music, internet music cloud), and the LBS application initiating the location request in the mobile terminal is a Keep application. The music application program running in the background and the Keep application program initiating the positioning request are in close relation, or the association degree of the music application program and the Keep application program initiating the positioning request is stronger. It will be appreciated that the user monitors the running distance via the Keep application, while listening to music via the music-like application running in the background during running to relax the mood. Therefore, the music application program running in the background can be kept running, and meanwhile, in order to save the electric quantity, positioning information can be provided for the Keep application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode. For another example, the application running in the background is a game application (such as royal glory, happy and happy), and the LBS application initiating the location request in the mobile terminal is a Keep application. The game application program running in the background and the Keep application program initiating the positioning request do not have necessary connection, or the association degree of the game application program and the Keep application program initiating the positioning request is weak. Therefore, the game application program running in the background can be closed, the power consumption of the mobile terminal can be effectively reduced, and the endurance time of the mobile terminal can be adaptively prolonged. At this time, the position information can be provided to the Keep application in a way that the GNSS positioning accuracy is high, so as to accurately acquire the position of the user.
Optionally, when the association degree is smaller than a preset association threshold, controlling the application program running in the background to be closed; and providing positioning information to the LBS application through a GNSS positioning mode. The method has the advantages that the positioning information can be provided for the LBS application in a positioning mode with high positioning accuracy, better service is provided for users, and application programs running in a background with low association degree with the LBS application can be directly closed, so that the power consumption of the mobile terminal is effectively reduced, and the endurance time of the mobile terminal is adaptively prolonged.
Illustratively, according to the first type information and the second type information, it is determined whether a background running application program and an LBS application initiating a positioning request exist in a pre-stored application relationship list, and whether the background running application program and the LBS application initiating the positioning request are in a corresponding relationship in the pre-stored application relationship list. When it is determined that the application program running in the background and the LBS application initiating the positioning request exist in the application relationship list in the form of a corresponding relationship, it is described that the association degree between the application program running in the background and the LBS application is relatively large, or the association degree between the application program running in the background and the LBS application is greater than a preset association threshold, at this time, the application program running in the background can be controlled to maintain running, and positioning information is provided to the LBS application through any one or more of a network positioning mode, a base station positioning mode and a bluetooth positioning mode. When the application program running in the background and the LBS application initiating the positioning request do not exist in the application relationship list at the same time, or the application program running in the background and the LBS application initiating the positioning request do not exist in the application relationship list at the same time, but do not exist in a corresponding relationship, it is indicated that the association degree between the application program running in the background and the LBS application is small, or the association degree between the application program running in the background and the LBS application is smaller than a preset association threshold, at this time, the application program running in the background can be controlled to be closed, and the positioning information is provided for the LBS application in a GNSS positioning manner.
Illustratively, whether the application program running in the background and the LBS application initiating the positioning request exist in a pre-stored application relationship list or not is judged according to the first type information and the second type information, and in the pre-stored application relationship list, the corresponding relationship level between the application program running in the background and the LBS application initiating the positioning request exists. When the corresponding relation grade between the application program running in the background and the LBS application is higher, the association degree between the application program running in the background and the LBS application is higher. For example, in the application relationship list, a corresponding relationship of four levels is set for the LBS application and the application program running in the background, for example, the first level indicates that the association degree of the two is 80%, the second level indicates that the association degree of the two is 60%, the third level indicates that the association degree of the two is 40%, and the fourth level indicates that the association degree of the two is 20%. The preset association threshold may be set to 50%, and when the level of the correspondence between the application program running in the background and the LBS application initiating the location request is the first level or the second level, the application program running in the background may be controlled to maintain running, and location information may be provided to the LBS application in any one or more of a network location manner, a base station location manner, and a bluetooth location manner. When the application program running in the background and the LBS application initiating the positioning request do not exist in the application relationship list at the same time, or when the corresponding relationship level between the application program running in the background and the LBS application initiating the positioning request is a third level or a fourth level, it is indicated that the association degree between the application program running in the background and the LBS application is smaller, or the association degree between the application program running in the background and the LBS application is smaller than a preset association threshold value, at this time, the application program running in the background can be controlled to be closed, and the positioning information is provided for the LBS application in a GNSS positioning manner.
The application relationship list stored in advance may be generated and established by counting or learning the historical usage habits of the user sample. The selection of the user sample may be historical usage data of the user in a set time interval, or historical usage data of a set number of user groups meeting set conditions in the set time interval. For example, the server obtains historical usage data of a local user within one month, uses the historical usage data as a user sample, learns the user sample by adopting a machine learning model, and predicts an application program which is possibly continuously run in a background of the mobile terminal when different LBS applications initiate positioning requests. And generating an application relation list according to application programs which can be continuously run in the background of the mobile terminal when different LBS applications initiate positioning requests, so as to determine the application programs which are allowed to continuously run in the background of the mobile terminal according to the current LBS application initiating the positioning requests of the mobile terminal, or determine the association degree of the application programs running in the background and the LBS application initiating the positioning requests. After the application relationship list (which can be understood as an application relationship list of the association degree between the application program running in the background and the LBS application initiating the positioning request) is generated, the application relationship list is pushed to the mobile terminal by the server. It should be noted that the application relationship list may also be selected by the user. The application relation list can be stored in a local mobile terminal or a cloud server in a file mode, and can also be stored in the local mobile terminal or the cloud server in a database mode.
Fig. 2 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 2, the method includes:
step 201, when receiving a location request initiated by an LBS application, acquiring the current remaining power of the mobile terminal.
Step 202, when the remaining power is smaller than a preset power threshold, acquiring first type information of an application program running in a current background of the mobile terminal.
Step 203, judging whether to control the application program running in the background to be closed or not according to the first type information, if so, executing step 204, otherwise, executing step 205.
And step 204, providing the positioning information to the LBS application in a GNSS positioning mode.
Step 205, providing location information to the LBS application through any one or more of a network location mode, a base station location mode and a bluetooth location mode.
It is to be understood that, when the application program running in the background is controlled to remain running according to the first type information, the location information may be provided to the LBS application through any one or more of a network location mode, a base station location mode, and a bluetooth location mode.
According to the positioning mode control method provided by the embodiment of the application, when the application program which controls the background to run is closed, the positioning information is provided for the LBS application in the GNSS positioning mode, so that the power consumption of the mobile terminal can be effectively reduced, the endurance time of the mobile terminal is adaptively prolonged, the LBS application obtains the positioning information with higher precision, and better services are provided for users; when the application program controlling the background running keeps running, the positioning information is provided for the LBS application through any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode, so that the LBS application can be ensured to acquire the position information to provide service for a user, meanwhile, the endurance time of the terminal can be properly prolonged, the application program running in the background can provide service for the user, and the use experience of the user can be greatly improved.
Fig. 3 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 3, the method includes:
step 301, when receiving a location request initiated by an LBS application, acquiring the current remaining power of the mobile terminal.
Step 302, when the remaining power is smaller than a preset power threshold, acquiring first type information of an application program running in a current background of the mobile terminal.
And step 303, acquiring the current application scene information of the mobile terminal.
The application scenario information may include: at least one of time information, environment information, network connection information, and whether to charge.
And 304, determining at least one target application program corresponding to the current application scene information of the mobile terminal according to the corresponding relation between the application scene and the application program stored in advance, and taking the target application program as a target set.
And 305, judging whether the application program running in the background belongs to the target set or not according to the first type information, if so, executing step 306, and otherwise, executing step 308.
And step 306, controlling the application program running in the background to maintain running, and executing step 307.
Step 307, providing location information to the LBS application in any one or more of a network location mode, a base station location mode, and a bluetooth location mode.
And 308, controlling the application program running in the background to be closed when the application program running in the background does not belong to the target set, and executing the step 309.
Step 309, providing location information to the LBS application by GNSS positioning.
According to the positioning mode control method provided by the embodiment of the application, when the residual electric quantity of the mobile terminal is small, the working state (closing or maintaining running) of the application program running in the background of the mobile terminal can be reasonably controlled according to the scene information of the mobile terminal, so that the positioning mode of the LBS application is further controlled according to the working state of the application program running in the background, the electric quantity consumption of the mobile terminal can be reduced, and the endurance time of the mobile terminal is further prolonged.
Fig. 4 is a flowchart illustrating a positioning method control method according to an embodiment of the present application. As shown in fig. 4, the method includes:
step 401, when receiving a location request initiated by the LBS application, acquiring the current remaining power of the mobile terminal.
Step 402, when the remaining power is less than a preset power threshold, acquiring first type information of an application program running in a current background of the mobile terminal.
And step 403, acquiring second type information of the LBS application.
And step 404, determining the association degree between the application program running in the background and the LBS application according to the first type information and the second type information.
The association degree comprises a probability value of the application program running in the background when the LBS application initiates a positioning request.
Step 405, determining whether the association degree is greater than a preset association threshold, if so, executing step 406, otherwise, executing step 408.
And step 406, controlling the application program running in the background to maintain running, and executing step 407.
Step 407, providing location information to the LBS application through any one or more of a network location mode, a base station location mode, and a bluetooth location mode.
And step 408, controlling the application program running in the background to close, and executing step 409.
Step 409, providing location information to the LBS application by GNSS location.
According to the positioning mode control method provided by the embodiment of the application, the working state (closing or maintaining running) of the application program running in the background is controlled according to the relevance between the application program running in the background and the LBS application initiating the positioning request, the positioning mode of the LBS application is further reasonably determined, and the endurance time of the mobile terminal is further prolonged.
Fig. 5 is a schematic structural diagram of an apparatus for establishing location mode control according to an embodiment of the present disclosure, where the apparatus may be implemented by software and/or hardware, and is generally integrated on a mobile terminal, and may determine a location mode of an LBS application by executing a location mode control method. As shown in fig. 5, the apparatus includes:
a remaining power obtaining module 501, configured to obtain a current remaining power of the mobile terminal when receiving a location based service LBS application initiating a location request;
a first type information obtaining module 502, configured to obtain first type information of an application program that is currently running in a background of the mobile terminal when the remaining power is less than a preset power threshold;
a positioning mode determining module 503, configured to determine a positioning mode of the LBS application according to the first type information.
The positioning mode control device provided by the embodiment of the application acquires the current residual electric quantity of the mobile terminal when receiving the positioning request initiated by the LBS application based on the position service, acquires the first type information of the application program running in the current background of the mobile terminal when the residual electric quantity is less than the preset electric quantity threshold value, and then determines the positioning mode of the LBS application according to the first type information. When the residual electric quantity of the mobile terminal is less, the positioning mode of the LBS application is reasonably determined according to the application program running in the background, the electric quantity consumption can be effectively reduced, and the standby time of the mobile terminal is prolonged.
Optionally, the positioning method determining module includes:
the control unit is used for controlling the application program running in the background to be closed or to be kept running according to the first type information;
and the first determining unit is used for determining the positioning mode of the LBS application according to the control result of controlling the closing or maintaining operation of the application program running in the background.
Optionally, the method further includes:
an application scene information obtaining unit, configured to obtain current application scene information of the mobile terminal before the application program that controls the background to run according to the first type information is closed or keeps running;
the target application program determining unit is used for determining at least one target application program corresponding to the current application scene information of the mobile terminal according to the corresponding relation between the application scene and the application program stored in advance, and taking the target application program as a target set;
the control unit is used for:
judging whether the application program running in the background belongs to the target set or not according to the first type information;
when the application program running in the background belongs to the target set, controlling the application program running in the background to maintain running;
and when the application program running in the background does not belong to the target set, controlling the application program running in the background to be closed.
Optionally, the first determining unit is configured to:
when the application program running in the background is controlled to be closed according to the first type of information, providing positioning information for the LBS application in a Global Navigation Satellite System (GNSS) positioning mode;
and when the application program running in the background is controlled to keep running according to the first type information, providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode.
Optionally, the apparatus further comprises:
a second type information obtaining module, configured to obtain second type information of the LBS application before the determining of the location mode of the LBS application according to the first type information;
the positioning mode determining module comprises:
and the second determining unit is used for determining the positioning mode of the LBS application according to the first type information and the second type information.
Optionally, the second determining unit is configured to:
determining the association degree of the application program running in the background and the LBS application according to the first type information and the second type information, wherein the association degree comprises a probability value of the application program running in the background when the LBS application initiates a positioning request;
when the correlation degree is larger than a preset correlation threshold value, controlling the application program running in the background to maintain running;
and providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode.
Optionally, the second determining unit is further configured to:
when the correlation degree is smaller than a preset correlation threshold value, controlling the application program running in the background to be closed;
and providing positioning information to the LBS application in a GNSS positioning mode.
Embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are used for a position mode control method, the method including:
when a Location Based Service (LBS) application initiating a positioning request is received, acquiring the current residual capacity of the mobile terminal;
when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which is currently running in a background of the mobile terminal;
and determining the positioning mode of the LBS application according to the first type information.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDRRAM, SRAM, EDORAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application and containing computer-executable instructions is not limited to the positioning manner control operation described above, and may also perform related operations in the positioning manner control method provided in any embodiment of the present application.
The embodiment of the application provides a mobile terminal, and a positioning mode control device provided by the embodiment of the application can be integrated in the mobile terminal. Fig. 6 is a block diagram of a mobile terminal according to an embodiment of the present disclosure. As shown in fig. 6, the mobile terminal 600 may include: the positioning mode control system comprises a memory 601, a processor 602 and a computer program stored on the memory and executable by the processor, wherein the processor 602 implements the positioning mode control method according to the embodiment of the present application when executing the computer program.
According to the mobile terminal provided by the embodiment of the application, when the location request initiated by the LBS application based on the location service is received, the current residual electric quantity of the mobile terminal is obtained, when the residual electric quantity is smaller than the preset electric quantity threshold value, the first type information of the application program running in the current background of the mobile terminal is obtained, and then the location mode of the LBS application is determined according to the first type information. When the residual electric quantity of the mobile terminal is less, the positioning mode of the LBS application is reasonably determined according to the application program running in the background, the electric quantity consumption can be effectively reduced, and the standby time of the mobile terminal is prolonged.
Fig. 7 is a schematic structural diagram of another mobile terminal provided in an embodiment of the present application, and as shown in fig. 7, the mobile terminal may include: a housing (not shown), a memory 701, a Central Processing Unit (CPU) 702 (also called a processor, hereinafter referred to as CPU), a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU702 and the memory 701 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the mobile terminal; the memory 701 is used for storing executable program codes; the CPU702 executes a computer program corresponding to the executable program code by reading the executable program code stored in the memory 701 to implement the steps of:
when a Location Based Service (LBS) application initiating a positioning request is received, acquiring the current residual capacity of the mobile terminal;
when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which is currently running in a background of the mobile terminal;
and determining the positioning mode of the LBS application according to the first type information.
The mobile terminal further includes: peripheral interfaces 703, RF (Radio Frequency) circuitry 705, audio circuitry 706, speakers 711, power management chip 708, input/output (I/O) subsystems 709, other input/control devices 710, touch screen 712, other input/control devices 710, and external port 704, which communicate via one or more communication buses or signal lines 707.
It should be understood that the illustrated mobile terminal 700 is merely one example of a mobile terminal and that the mobile terminal 700 may have more or fewer components than shown, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail the mobile terminal for positioning mode control provided in this embodiment, and the mobile terminal is taken as an example of a mobile phone.
A memory 701, the memory 701 being accessible by the CPU702, the peripheral interface 703, and the like, the memory 701 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 703, said peripheral interface 703 may connect input and output peripherals of the device to the CPU702 and the memory 701.
An I/O subsystem 709, which I/O subsystem 709 may connect input and output peripherals on the device, such as a touch screen 712 and other input/control devices 710, to the peripheral interface 703. The I/O subsystem 709 may include a display controller 7091 and one or more input controllers 7092 for controlling other input/control devices 710. Where one or more input controllers 7092 receive electrical signals from or transmit electrical signals to other input/control devices 710, the other input/control devices 710 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 7092 may be connected to any one of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
A touch screen 712, the touch screen 712 being an input interface and an output interface between the user's mobile terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like.
The display controller 7091 in the I/O subsystem 709 receives electrical signals from the touch screen 712 or transmits electrical signals to the touch screen 712. The touch screen 712 detects a contact on the touch screen, and the display controller 7091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 712, i.e., implements a human-computer interaction, and the user interface object displayed on the touch screen 712 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 705 is mainly used to establish communication between the mobile phone and the wireless network (i.e., network side), and implement data reception and transmission between the mobile phone and the wireless network. Such as sending and receiving short messages, e-mails, etc. In particular, RF circuitry 705 receives and transmits RF signals, also referred to as electromagnetic signals, through which RF circuitry 705 converts electrical signals to or from electromagnetic signals and communicates with communication networks and other devices. RF circuitry 705 may include known circuitry for performing these functions including, but not limited to, an antenna system, an RF transceiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC (CODEC) chipset, a Subscriber Identity Module (SIM), and so forth.
The audio circuit 706 is mainly used to receive audio data from the peripheral interface 703, convert the audio data into an electric signal, and transmit the electric signal to the speaker 711.
The speaker 711 is used to convert the voice signal received by the handset from the wireless network through the RF circuit 705 into sound and play the sound to the user.
And a power management chip 708 for supplying power and managing power to the hardware connected to the CPU702, the I/O subsystem, and the peripheral interface.
The positioning method control device, the storage medium and the mobile terminal provided in the above embodiments may execute the corresponding positioning method control method provided in the embodiments of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details that are not described in detail in the above embodiments, reference may be made to a positioning method control method provided in any embodiment of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims (8)

1. A positioning mode control method is characterized by comprising the following steps:
when a Location Based Service (LBS) application initiating a positioning request is received, acquiring the current residual capacity of the mobile terminal;
when the residual electric quantity is smaller than a preset electric quantity threshold value, acquiring first type information of an application program which is currently running in a background of the mobile terminal;
determining a positioning mode of the LBS application according to the first type information, comprising:
acquiring current application scene information of the mobile terminal;
determining at least one target application program corresponding to the current application scene information of the mobile terminal according to a pre-stored corresponding relation between an application scene and the application programs, and taking the target application program as a target set;
controlling the application program running in the background to close or maintain running according to the first type information, and the method comprises the following steps:
judging whether the application program running in the background belongs to the target set or not according to the first type information;
when the application program running in the background belongs to the target set, controlling the application program running in the background to maintain running;
when the application program running in the background does not belong to the target set, controlling the application program running in the background to be closed;
and determining the positioning mode of the LBS application according to the control result of controlling the closing or the maintaining of the application program running in the background.
2. The method according to claim 1, wherein determining the location mode of the LBS application according to the control result of the application program controlling the background running to close or maintain running comprises:
when the application program running in the background is controlled to be closed according to the first type of information, providing positioning information for the LBS application in a Global Navigation Satellite System (GNSS) positioning mode;
and when the application program running in the background is controlled to keep running according to the first type information, providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode.
3. The method according to claim 1, further comprising, before said determining a positioning mode of said LBS application according to said first type information:
acquiring second type information of the LBS application;
the determining the location mode of the LBS application according to the first type information comprises:
and determining the positioning mode of the LBS application according to the first type information and the second type information.
4. The method according to claim 3, wherein the determining the location mode of the LBS application according to the first type information and the second type information comprises:
determining the association degree of the application program running in the background and the LBS application according to the first type information and the second type information, wherein the association degree comprises a probability value of the application program running in the background when the LBS application initiates a positioning request;
when the correlation degree is larger than a preset correlation threshold value, controlling the application program running in the background to maintain running;
and providing positioning information for the LBS application in any one or more of a network positioning mode, a base station positioning mode and a Bluetooth positioning mode.
5. The method of claim 4, further comprising:
when the correlation degree is smaller than a preset correlation threshold value, controlling the application program running in the background to be closed;
and providing positioning information to the LBS application in a GNSS positioning mode.
6. A positioning mode control device, comprising:
the system comprises a residual capacity acquisition module, a positioning module and a power management module, wherein the residual capacity acquisition module is used for acquiring the current residual capacity of the mobile terminal when receiving a positioning request initiated by a Location Based Service (LBS) application;
the first type information acquisition module is used for acquiring first type information of an application program currently running in a background of the mobile terminal when the residual electric quantity is smaller than a preset electric quantity threshold value;
a positioning mode determining module, configured to determine a positioning mode of the LBS application according to the first type information, including:
an application scene information obtaining unit, configured to obtain current application scene information of the mobile terminal before the application program that controls the background to run according to the first type information is closed or keeps running;
the target application program determining unit is used for determining at least one target application program corresponding to the current application scene information of the mobile terminal according to the corresponding relation between the application scene and the application program stored in advance, and taking the target application program as a target set;
a control unit for controlling the application program running in the background to close or maintain running according to the first type information,
a first determining unit, configured to determine a location mode of the LBS application according to a control result of closing or maintaining running of the application program that controls the background running;
the control unit is specifically configured to:
judging whether the application program running in the background belongs to the target set or not according to the first type information;
when the application program running in the background belongs to the target set, controlling the application program running in the background to maintain running;
and when the application program running in the background does not belong to the target set, controlling the application program running in the background to be closed.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the positioning mode control method according to any one of claims 1 to 5.
8. A mobile terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the positioning mode control method according to any of claims 1-5 when executing the computer program.
CN201711326718.XA 2017-12-13 2017-12-13 Positioning mode control method and device, storage medium and mobile terminal Active CN108076507B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711326718.XA CN108076507B (en) 2017-12-13 2017-12-13 Positioning mode control method and device, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711326718.XA CN108076507B (en) 2017-12-13 2017-12-13 Positioning mode control method and device, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108076507A CN108076507A (en) 2018-05-25
CN108076507B true CN108076507B (en) 2020-09-22

Family

ID=62158231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711326718.XA Active CN108076507B (en) 2017-12-13 2017-12-13 Positioning mode control method and device, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108076507B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109164477B (en) * 2018-08-29 2021-05-25 维沃移动通信有限公司 Application positioning method and mobile terminal
CN110572778A (en) * 2019-08-02 2019-12-13 深圳市科迈爱康科技有限公司 position determination method and device based on multi-network cooperation
CN110491387B (en) * 2019-08-23 2022-03-29 三星电子(中国)研发中心 Interactive service implementation method and system based on multiple terminals
CN110830658A (en) * 2019-11-29 2020-02-21 捷开通讯(深圳)有限公司 Mobile terminal control method and device, mobile terminal and storage medium
CN110855840B (en) * 2019-11-29 2022-02-11 合肥开元埃尔软件有限公司 Mobile phone safety switching system based on combination of network pushing and active scanning
CN111787491B (en) * 2020-06-29 2022-09-30 广东小天才科技有限公司 Auxiliary positioning, system, wearable device and storage medium
CN112000213B (en) * 2020-08-18 2022-06-03 深圳市云谷创新科技有限公司 Positioning method and device for improving cruising ability of terminal, terminal and readable storage medium
CN115460321B (en) * 2022-10-13 2024-03-29 重庆可兰达科技有限公司 Continuous accurate positioning method capable of saving iPhone electric quantity

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106717035A (en) * 2014-09-22 2017-05-24 高通股份有限公司 Low-power location information reporting

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106896894A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Terminal power management method and terminal
CN105682032B (en) * 2016-01-13 2018-04-06 广东欧珀移动通信有限公司 A kind of station-keeping mode control method, device and mobile terminal
WO2017156754A1 (en) * 2016-03-18 2017-09-21 华为技术有限公司 Terminal device and method for processing positioning information for terminal device
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
CN106973150B (en) * 2017-03-16 2019-12-03 Oppo广东移动通信有限公司 Positioning accuracy level adjustment method, device and mobile terminal

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106717035A (en) * 2014-09-22 2017-05-24 高通股份有限公司 Low-power location information reporting

Also Published As

Publication number Publication date
CN108076507A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108076507B (en) Positioning mode control method and device, storage medium and mobile terminal
CN109947498B (en) Application program preloading method and device, storage medium and mobile terminal
US10891142B2 (en) Method and device for preloading application, storage medium, and terminal device
EP3567477B1 (en) Method for preloading application, storage medium, and terminal
CN109947496B (en) Application program preloading method and device, storage medium and mobile terminal
CN108595228B (en) Application program prediction model establishing method and device, storage medium and mobile terminal
CN107783801B (en) Application program prediction model establishing and preloading method, device, medium and terminal
EP3502879B1 (en) Method for preloading application, storage medium, and terminal device
CN108111971B (en) Positioning method, positioning device, storage medium and mobile terminal
CN109947497B (en) Application program preloading method and device, storage medium and mobile terminal
CN108169775B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN107688638B (en) Recommendation method and device for application list, storage medium and mobile terminal
JP6955092B2 (en) Methods for reducing terminal power consumption, and terminals
CN110168483B (en) Shortcut menu for displaying different applications on different screens
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN108076429A (en) Localization method, device, storage medium and mobile terminal
CN108681474B (en) Application preloading method and device, storage medium and terminal
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal
CN108055644B (en) Positioning control method and device, storage medium and terminal equipment
CN108055635B (en) Position information acquisition method and device, storage medium and terminal
CN108064023B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN107766546B (en) Application recommendation method and device, storage medium and terminal equipment
CN108112061B (en) Positioning control method and device, storage medium and terminal equipment
CN108093373B (en) Positioning control method and device, storage medium and terminal equipment
CN108156650B (en) Control method and device of positioning module, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

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

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

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

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant