CN110855838A - Positioning service control method, positioning service control device, mobile terminal and storage medium - Google Patents

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

Info

Publication number
CN110855838A
CN110855838A CN201911157114.6A CN201911157114A CN110855838A CN 110855838 A CN110855838 A CN 110855838A CN 201911157114 A CN201911157114 A CN 201911157114A CN 110855838 A CN110855838 A CN 110855838A
Authority
CN
China
Prior art keywords
white list
target application
positioning
application program
application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911157114.6A
Other languages
Chinese (zh)
Inventor
欧阳佰利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realme Chongqing Mobile Communications Co Ltd
Original Assignee
Realme Chongqing Mobile Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realme Chongqing Mobile Communications Co Ltd filed Critical Realme Chongqing Mobile Communications Co Ltd
Priority to CN201911157114.6A priority Critical patent/CN110855838A/en
Publication of CN110855838A publication Critical patent/CN110855838A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72457User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to geographic location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • 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
    • 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 application discloses a positioning service control method, a positioning service control device, a mobile terminal and a storage medium, and relates to the technical field of mobile terminals. The method is applied to a mobile terminal, the mobile terminal comprises a display screen, state information of the display screen is detected, the state information comprises a screen lightening state and a screen turning state, an application white list corresponding to the state information of the display screen is determined based on the state information of the display screen, and when a target application program belongs to the application white list, positioning service of the target application program is controlled. According to the embodiment of the application, the application white list is determined according to the state information of the display screen, and the positioning service of the target application program is controlled according to the relation between the application white list and the target application program, so that the power consumption of the mobile terminal is reduced.

Description

Positioning service control method, positioning service control device, mobile terminal and storage medium
Technical Field
The present application relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for controlling a location service, a mobile terminal, and a storage medium.
Background
With the development of science and technology, mobile terminals are widely used and have more functions, and the mobile terminals become one of the necessary things in daily life of people. At present, a mobile terminal generally has a positioning function, but when the positioning function is turned on, the power consumption of the mobile terminal is increased, the service life of the mobile terminal is influenced, and the user experience is reduced.
Disclosure of Invention
In view of the above problems, the present application provides a positioning service control method, apparatus, mobile terminal and storage medium to solve the above problems.
In a first aspect, an embodiment of the present application provides a location service control method, which is applied to a mobile terminal, where the mobile terminal includes a display screen, and the method includes: detecting state information of the display screen, wherein the state information comprises a screen-on state and a screen-off state; determining an application white list corresponding to the state information of the display screen based on the state information of the display screen; and when the target application program belongs to the application white list, controlling the positioning service of the target application program.
In a second aspect, an embodiment of the present application provides a location service control apparatus, which is applied to a mobile terminal, where the mobile terminal includes a display screen, and the apparatus includes: the state information detection module is used for detecting state information of the display screen, wherein the state information comprises a screen-on state and a screen-off state; the white list determining module is used for determining an application white list corresponding to the state information of the display screen based on the state information of the display screen; and the positioning service control module is used for controlling the positioning service of the target application program when the target application program belongs to the application white list.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a display screen, a memory and a processor, where the display screen and the memory are coupled to the processor, and the memory stores instructions, and when the instructions are executed by the processor, the processor performs the above method.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be called by a processor to execute the above method.
The positioning service control method, the device, the mobile terminal and the storage medium provided by the embodiment of the application detect state information of a display screen, wherein the state information comprises a bright screen state and a screen displaying state, an application white list corresponding to the state information of the display screen is determined based on the state information of the display screen, and when a target application program belongs to the application white list, the positioning service of the target application program is controlled, so that the application white list is determined according to the state information of the display screen, and the positioning service of the target application program is controlled according to the relation between the application white list and the target application program, thereby reducing the power consumption of the mobile terminal.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a positioning service control method according to an embodiment of the present application;
fig. 2 is a flow chart illustrating a positioning service control method according to another embodiment of the present application;
fig. 3 is a flowchart illustrating a positioning service control method according to still another embodiment of the present application;
fig. 4 shows a flow chart of step S305 of the positioning service control method shown in fig. 3 of the present application;
fig. 5 shows a block diagram of a positioning service control device provided in an embodiment of the present application;
fig. 6 is a block diagram of a mobile terminal according to an embodiment of the present application for executing a location service control method according to an embodiment of the present application;
fig. 7 illustrates a storage unit for storing or carrying program codes for implementing a location service control method according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
With the development of location-based services, more and more applications can provide personalized services, advertisement push, navigation and other information to users according to the current position information of the mobile terminal, and even when the mobile terminal is in a standby state, that is, the user does not use the applications, the location-based services can also update the position information of the mobile terminal, so that the applications can push related information to the user. In order to reduce standby power consumption of the mobile terminal and extend the usage time of the mobile terminal, it is necessary to reduce and control unnecessary location updates of the application. However, if the application is configured not to use the location service, the application may not use the location function at all times, and if the application is configured to use the location service, the application may use the location function at all times, thereby causing an increase in power consumption of the mobile terminal.
In view of the above problems, the inventors have found and proposed, through long-term research, a positioning service control method, an apparatus, a mobile terminal, and a storage medium provided in the embodiments of the present application, which determine an application white list according to state information of a display screen, and control a positioning service of a target application program according to a relationship between the application white list and the target application program, thereby reducing power consumption of the mobile terminal. The specific positioning service control method is described in detail in the following embodiments.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating a positioning service control method according to an embodiment of the present application. The positioning service control method is used for determining the application white list according to the state information of the display screen when the positioning service provides the positioning data for the target application program, and controlling the positioning service according to the relation between the application white list and the target application program, so that the power consumption of the mobile terminal is reduced. In a specific embodiment, the location service control method is applied to the location service control apparatus 200 shown in fig. 5 and the mobile terminal 100 (fig. 6) configured with the location service control apparatus 200. The following will describe a specific process of this embodiment by taking a mobile terminal as an example, and it is understood that the mobile terminal applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, and the like, which is not limited herein. As will be described in detail with respect to the flow shown in fig. 1, where the mobile terminal includes a display screen, the method for controlling location services may specifically include the following steps:
step S101: and detecting the state information of the display screen, wherein the state information comprises a screen lightening state and a screen turning state.
In some embodiments, the mobile terminal is provided with a positioning function, and the positioning function can be turned on or off. The positioning function may be turned on or off based on a trigger operation of a user, or may be turned on or off based on a preset rule. In this embodiment, when the positioning function is turned on or off based on the triggering operation of the user, embodiments thereof may include: when the mobile terminal receives a touch operation acted on a target switch by a user, the mobile terminal can respond to the touch operation to turn on or turn off the positioning function, wherein the target switch is used for controlling the turning on or off of the positioning function; when the mobile terminal receives a first voice input indicating to start the positioning function, the positioning function is started in response to the first voice data; when the mobile terminal receives a second voice input indicating that the positioning function is closed, the positioning function is closed in response to the second voice data. When the positioning function is turned on or off based on the preset rule, embodiments thereof may include: the method comprises the steps of obtaining the current position of the mobile terminal, automatically starting a positioning function when the current position of the mobile terminal is within a specified range, and automatically closing the positioning function when the current position of the mobile terminal is not within the specified range; and acquiring the current time, automatically starting the positioning function when the current time is within the specified time range, and automatically closing the positioning function when the current time is not within the specified time range. Of course, in this embodiment, more ways of controlling the positioning function of the mobile terminal to be turned on or off may also be included, which are not described herein again.
In some embodiments, the state information of the display screen may be detected, where the state information of the display screen may include a bright screen state and a dim screen state, for example, in this embodiment, when the positioning service provides the positioning data to the application program, it may be detected whether the display screen is currently in the bright screen state or the dim screen state. As one mode, the screen BRIGHTNESS of the mobile terminal (settings. system. screen _ BRIGHTNESS) may be detected and obtained, and the obtained screen BRIGHTNESS may be compared with the preset BRIGHTNESS to determine whether the screen BRIGHTNESS is greater than the preset BRIGHTNESS, when the screen BRIGHTNESS is greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a bright screen state, and when the screen BRIGHTNESS is not greater than the preset BRIGHTNESS, the state information of the display screen may be considered as a dark screen state. Specifically, the mobile terminal may pre-store a preset brightness as a brightness value to be compared, where the preset brightness may be configured when the mobile terminal leaves a factory, and may be set according to a preference and a requirement of a user when the mobile terminal is used, or may be adjusted and set according to an attribute or an environment of the mobile terminal, for example, the preset brightness may be set according to a current environment brightness of an environment where the mobile terminal is located, and the larger the current environment brightness is, the larger the preset brightness value may be set, and the smaller the current environment brightness is, the smaller the preset brightness value may be set, and the like. Optionally, in this embodiment, the preset brightness value is 0, when the screen brightness is greater than 0, the state information of the display screen may be considered as a bright screen state, and when the screen state is not greater than 0, the state information of the display screen may be considered as a dark screen state. Of course, in this embodiment, other methods for detecting the state information of the display screen may also be included, which are not described herein again.
Step S102: and determining an application white list corresponding to the state information of the display screen based on the state information of the display screen.
In some embodiments, the mobile terminal may pre-configure a white list as an application white list, wherein the application white list includes one or more application programs. Specifically, as a manner, the mobile terminal may automatically create a white list, selectively add one or more applications to the white list to generate the white list, and use the generated white list as the application white list. Alternatively, the mobile terminal may automatically create a white list, the user may selectively add one or more applications to the white list to generate the white list, and the mobile terminal uses the generated white list as the application white list. As another way, the user may manually create a white list in the mobile terminal, and then selectively add one or more applications to the white list to generate the white list, and the mobile terminal uses the generated white list as the application white list. The number of the application white lists is multiple, for example, the number of the application white lists is two. In this embodiment, the plurality of application programs included in each two application white lists in the plurality of application white lists may be all the same, all the different, or partially the same.
In some embodiments, after the mobile terminal obtains the application white list, the mobile terminal may establish a corresponding relationship between the state information of the display screen and the application white list. For example, the application white list includes a first application white list and a second application white list, and the state information of the display screen includes a bright screen state and a message screen state, and then establishing the corresponding relationship between the state information of the display screen and the application white list may include: and establishing a bright screen state corresponding to the first application white list and a breath screen state corresponding to the second application white list.
Therefore, in the present embodiment, after the state information of the display screen is detected, the application white list corresponding to the state information of the display screen may be determined. Specifically, after the state information of the display screen is detected, state information consistent with the state information of the display screen may be acquired, and an application white list corresponding to the state information consistent with the state information of the display screen is searched for as the application white list corresponding to the state information of the display screen. For example, when the state information of the display screen is in a bright screen state, an application white list corresponding to the bright screen state, such as a first application white list, may be determined; when the state information of the display screen is in the breath screen state, an application white list corresponding to the breath screen state, such as a second application white list, may be determined.
Step S103: and when the target application program belongs to the application white list, controlling the positioning service of the target application program.
The mobile terminal can be provided with a plurality of application programs, and the mobile terminal can automatically configure the authority of the plurality of application programs for using the positioning function, and can also be configured by a user. In this embodiment, when the positioning function of the mobile terminal is turned on, the positioning service of the mobile terminal may be turned on, and the positioning module may provide the positioning data to an application program configured with an authority to use the positioning function among the plurality of application programs, so that the application program that acquires the positioning data pushes information to the user based on the positioning data. In some embodiments, the mobile terminal may be installed with a target application, and the target application is configured with a right to use the positioning function, and in a process that the positioning function of the mobile terminal is started and the target application is run, the positioning module of the mobile terminal may provide positioning data for the target application, where the target application may run on a foreground of the mobile terminal, may run on a background of the mobile terminal, or may switch between the foreground and the background of the mobile terminal, which is not limited herein.
In some embodiments, the positioning module may include one or more of a Global Positioning System (GPS), a mobile base station positioning module, and a wireless fidelity (WiFi) positioning module. When the mobile terminal is connected with the WiFi network, the WiFi positioning module can be adopted, the GPS positioning module is closed, and when the mobile terminal is started with the data network, the mobile base station positioning module can be adopted, so that the power consumption of the mobile terminal is reduced.
In some embodiments, after determining the application white list corresponding to the state information of the display screen, it may be determined whether the target application is in the application white list, and control a location server of the target application based on the determination result. For example, when the determination result indicates that the target application is in the application white list, a first control may be performed on the location service of the target application, and when the determination result indicates that the target application is not in the application white list, a second control may be performed on the location service of the target application, and the like, which is not limited herein.
In some embodiments, after determining the application white list corresponding to the state information of the display screen, one or more applications included in the application white list may be acquired, a target application may be matched with the one or more applications, a matching result may be obtained, and the positioning service may be controlled based on the matching result. Specifically, the target application program may be matched with one or more application programs to determine whether the plurality of application programs include an application program consistent with the target application program, and when the plurality of application programs include an application program consistent with the target application program, the target application program is represented in an application white list, and then the positioning module may be controlled to provide the positioning data to the target application program by using a processing mode of the application program in the application white list; when the plurality of application programs do not include the application program consistent with the target application program, the representation target application program is not in the application white list, and the positioning module can be controlled to provide the positioning data for the target application program by adopting a processing mode of the application program which is not in the application white list.
According to the positioning service control method provided by one embodiment of the application, state information of a display screen is detected, the state information comprises a screen-on state and a screen-off state, an application white list corresponding to the state information of the display screen is determined based on the state information of the display screen, when a target application program belongs to the application white list, positioning service of the target application program is controlled, the application white list is determined according to the state information of the display screen, the positioning service of the target application program is controlled according to the relation between the application white list and the target application program, and therefore power consumption of the mobile terminal is reduced.
Referring to fig. 2, fig. 2 is a flowchart illustrating a positioning service control method according to another embodiment of the present application. The method is applied to the mobile terminal, wherein the mobile terminal includes a display screen, and as will be described in detail with respect to the flow shown in fig. 2, the positioning service control method may specifically include the following steps:
step S201: and detecting the state information of the display screen, wherein the state information comprises a screen lightening state and a screen turning state.
For detailed description of step S201, please refer to step S101, which is not described herein again.
Step S202: and when the state information of the display screen is in a bright screen state, determining a first application white list corresponding to the bright screen state.
In some embodiments, when the detection result indicates that the state information of the display screen is in the bright screen state, an application white list corresponding to the state information of the display screen in the bright screen state may be determined as the first application white list based on a pre-established correspondence between the state information of the display screen and the application white list. Wherein, the first application white list comprises one or more first application programs. In this embodiment, the plurality of first applications may include: navigation applications, map applications, consumer applications, social applications, and the like, but are not limited thereto.
Step S203: and when the target application program belongs to the first application white list, controlling a positioning module to provide positioning data for the target application program.
In some embodiments, after determining the first application white list corresponding to the bright screen state, it may be determined whether the target application is in the first application white list, and control a location server of the target application based on the determination result.
In some embodiments, after determining the first application white list corresponding to the bright screen state, one or more first applications included in the first application white list may be acquired, and the target application is matched with the one or more first applications to obtain a first matching result. Specifically, the target application program may be matched with the one or more first application programs to determine whether the one or more first application programs include a first application program consistent with the target application program, and when the one or more first application programs include the first application program consistent with the target application program, the obtained first matching result represents that the target application program is in a first application white list; when the one or more first applications do not include a first application consistent with the target application, the obtained first matching result indicates that the target application is not in the first application white list.
In some embodiments, after obtaining the first matching result, the positioning module may be controlled to provide the positioning data to the target application based on the first matching result. That is to say, in this embodiment, when the state information of the display screen is in the bright screen state, no matter whether the target application program is in the first application white list, the positioning module may be controlled to provide the positioning data to the target application program, for example, when the target application program is a navigation application program, the positioning module may be controlled to provide the positioning data to the navigation application program; when the target application program is a social application program, the positioning module can be controlled to provide positioning data for the social application program.
In some embodiments, when the state information of the display screen is in a bright screen state and the first matching result indicates that the target application is in the first application white list, the positioning module may be controlled to always provide the positioning data to the target application. For example, when the target application is a navigation application and the first application white list includes the navigation application, the positioning module may be controlled to provide the positioning data to the navigation application at all times.
Step S204: and when the target application program does not belong to the first application white list, controlling the positioning module to provide positioning data with preset duration for the target application program and then stopping providing the positioning data for the target application program.
In some embodiments, when the state information of the display screen is in a bright screen state and the first matching result indicates that the target application program is not in the first application white list, the positioning module may be controlled to provide positioning data for a preset duration to the target application program and then stop providing the positioning data to the target application program, so as to reduce power consumption of the mobile terminal. For example, when the target application is a news application or a game application and the first application white list does not include the news application and the game application, the positioning module may be controlled to provide the positioning data for a preset duration to the news application or the game application, and then stop providing the positioning data to the news application or the game application. In this embodiment, the preset duration may be automatically set by the mobile terminal, or may be manually set by the user, which is not limited herein. In addition, in this embodiment, the time length of the preset time period may be 5s, 10s, 15s, and the like, and optionally, the time length of the preset time period is 5 s.
Step S205: and when the state information of the display screen is the screen-turning-on state, determining a second application white list corresponding to the screen-turning-on state.
In some embodiments, when the detection result represents that the state information of the display screen is the information screen state, the application white list corresponding to the state information of the display screen being the information screen state may be determined as the second application white list based on a pre-established correspondence between the state information of the display screen and the application white list. And the second application white list comprises one or more second application programs. In this embodiment, the plurality of second applications may include: navigation applications, map applications, and the like, but are not limited thereto.
Step S206: and when the target application program belongs to the second application white list, controlling a positioning module to provide positioning data for the target application program.
In some embodiments, after determining the second application white list corresponding to the breath screen state, it may be determined whether the target application is in the second application white list, and control a location server of the target application based on a result of the determination.
In some embodiments, after determining the second application white list corresponding to the breath screen state, one or more second applications included in the second application white list may be obtained, and the target application is matched with the one or more second applications to obtain a second matching result. Specifically, the target application program may be matched with one or more second application programs to determine whether the one or more second application programs include a second application program consistent with the target application program, and when the one or more second application programs include the second application program consistent with the target application program, the obtained second matching result represents that the target application program is in a second application white list; when the one or more second applications do not include a second application consistent with the target application, the obtained second matching result characterizes that the target application is not in the second application white list.
In some embodiments, when the state information of the display screen is a screen resting state and the second matching result indicates that the target application program is in the second application white list, the positioning module may be controlled to always provide the positioning data to the target application program. For example, when the target application is a navigation application and the second application white list includes the navigation application, the positioning module may be controlled to provide the positioning data to the navigation application at all times.
Step S207: and acquiring the maximum displacement distance of the mobile terminal within preset time.
In some embodiments, when the state information of the display screen is in a state of a message screen, the location information of the mobile terminal may be obtained in the process of providing the location data to the target application program through the location module. The target application program can be a navigation application program or a map application program, so that whether the position of the mobile terminal is changed or not can be determined in a manner of acquiring the position information of the mobile terminal, and it can be understood that when the position information of the mobile terminal is changed, the navigation application program or the map application program can be considered to need to use positioning data, and the positioning module can be continuously controlled to provide the positioning data for the target application program; when the position information of the mobile terminal is not changed, the navigation application program or the map application program is not required to use the positioning data, and the positioning module can be controlled to stop providing the positioning data for the target application program.
In this embodiment, the maximum displacement distance of the mobile terminal within the preset time may be obtained. In this embodiment, the preset time may be automatically set by the mobile terminal, or may be manually set by the user, which is not limited herein. In addition, in this embodiment, the time length of the preset time may be 20 minutes, 30 minutes, 40 minutes, and the like, and optionally, the time length of the preset time is 30 minutes.
Step S208: when the maximum displacement distance is less than a distance threshold, controlling the positioning module to stop providing positioning data to the target application.
In some embodiments, the electronic device is preset with a distance threshold, and the distance threshold is used as a judgment basis for the maximum displacement distance. Therefore, after the maximum displacement distance of the mobile terminal in the preset time is obtained, the maximum displacement distance can be compared with the distance threshold value to judge whether the maximum displacement distance is smaller than the distance threshold value, when the maximum displacement distance is smaller than the distance threshold value, the position information of the mobile terminal in the preset time is represented to be unchanged, the target application program can be considered not to use positioning data, and then the positioning module can be controlled to stop providing positioning data for the target application program. When the maximum displacement distance is not less than the distance threshold, the position information of the mobile terminal in the preset time is represented to be changed, the target application program can be considered to need to use positioning data, and the positioning module can be continuously controlled to provide the positioning data for the target application program.
Step S209: and when the target application program does not belong to the second application white list, controlling a positioning module to refuse to provide positioning data to the target application program.
In some embodiments, when the state information of the display screen is a screen off state and the second matching result indicates that the target application program is not in the second application white list, the positioning module may be controlled to refuse to provide the positioning data to the target application program, so as to reduce power consumption of the mobile terminal. For example, when the target application is a social-class application and the second application white list does not include the social-class application, the positioning module may be controlled to deny providing the positioning data to the social-class application.
In another embodiment of the present application, a positioning service control method detects state information of a display screen, where the state information includes a bright screen state and a bright screen state, when the state information of the display screen is the bright screen state, a first application white list corresponding to the bright screen state is determined, when a target application belongs to the first application white list, a positioning module is controlled to provide positioning data to the target application, and when the target application does not belong to the first application white list, the positioning module is controlled to provide the positioning data for a preset duration to the target application and then stops providing the positioning data to the target application. When the state information of the display screen is in a screen-off state, determining a second application white list corresponding to the screen-off state, when the target application program belongs to the second application white list, controlling the positioning module to provide positioning data for the target application program, acquiring the maximum displacement distance of the mobile terminal within a preset time, when the maximum displacement distance is smaller than a distance threshold, controlling the positioning module to stop providing the positioning data for the target application program, and when the target application program does not belong to the second application white list, controlling the positioning module to refuse to provide the positioning data for the target application program. Compared with the positioning service control method shown in fig. 1, in this embodiment, the positioning module is further controlled differently according to whether the display screen is in the bright screen state or the dark screen state, so as to improve the flexibility of the positioning service and reduce the power consumption of the mobile terminal.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a positioning service control method according to still another embodiment of the present application. The method is applied to the mobile terminal, wherein the mobile terminal includes a display screen, and as will be described in detail with respect to the flow shown in fig. 3, the positioning service control method may specifically include the following steps:
step S301: and detecting the state information of the display screen, wherein the state information comprises a screen lightening state and a screen turning state.
Step S302: and determining an application white list corresponding to the state information of the display screen based on the state information of the display screen.
Step S303: and when the target application program belongs to the application white list, controlling the positioning service of the target application program.
For detailed description of steps S301 to S303, refer to steps S101 to S103, which are not described herein again.
Step S304: and when the positioning module is controlled to provide positioning data for the target application program, acquiring the moving speed of the mobile terminal.
In some embodiments, when the state information of the display screen is in a bright screen state or a dim screen state, the mobile terminal controls the positioning module to provide the positioning data to the target application program, and then the moving speed of the mobile terminal can be acquired. The moving speed of the mobile terminal may be detected by a speed sensor built in the mobile terminal, for example, the moving speed of the mobile terminal may be detected by an acceleration sensor built in the mobile terminal.
Step S305: determining a location frequency of the location module based on the movement speed.
In some embodiments, after the moving speed of the mobile terminal is obtained, the positioning frequency of the positioning module of the mobile terminal may be determined based on the moving speed of the mobile terminal, so that the positioning module is dynamically adjusted according to the moving speed. Wherein the moving speed is positively correlated with the positioning frequency.
Referring to fig. 4, fig. 4 is a flowchart illustrating a step S305 of the positioning service control method illustrated in fig. 3 according to the present application. As will be explained in detail with respect to the flow shown in fig. 4, the method may specifically include the following steps:
step S3051: and when the fact that the moving speed is increased is obtained, increasing the positioning frequency of the positioning module.
In some embodiments, when the obtained moving speed of the mobile terminal increases, the positioning frequency of the positioning module may be increased accordingly.
Step S3052: and when the fact that the moving speed is reduced is obtained, reducing the positioning frequency of the positioning module.
In some embodiments, when the acquired moving speed of the mobile terminal is reduced, the positioning frequency of the positioning module may be correspondingly reduced.
In another embodiment of the present application, a method for controlling a location service includes detecting state information of a display screen, where the state information includes a bright screen state and a dark screen state, determining an application white list corresponding to the state information of the display screen based on the state information of the display screen, controlling a location service of a target application program when the target application program belongs to the application white list, obtaining a moving speed of a mobile terminal when a location module is controlled to provide location data to the target application program, and determining a location frequency of the location module based on the moving speed. Compared with the positioning service control method shown in fig. 1, in this embodiment, when the positioning service is provided to the target application, the positioning frequency of the positioning module is further determined according to the moving speed of the mobile terminal, so as to improve the flexibility and the rationality of the positioning of the mobile terminal.
Referring to fig. 5, fig. 5 is a block diagram illustrating a positioning service control apparatus 200 according to an embodiment of the present disclosure. The positioning service control device 200 is applied to the mobile terminal, which includes a display screen, and will be described in detail with respect to the flow shown in fig. 5, the positioning service control device 200 includes: a status information detection module 210, a white list determination module 220, and a location services control module 230, wherein:
the status information detecting module 210 is configured to detect status information of the display screen, where the status information includes a screen-on status and a screen-off status.
A white list determining module 220, configured to determine, based on the state information of the display screen, an application white list corresponding to the state information of the display screen.
Further, the white list determining module 220 includes: a first application white list determination sub-module, wherein:
and the first application white list determining sub-module is used for determining a first application white list corresponding to the screen-up state when the state information of the display screen is the screen-up state.
Further, the white list determining module 220 includes: a second preset report list determining submodule, wherein:
and the second application white list determining submodule is used for determining a second application white list corresponding to the screen-breathing state when the state information of the display screen is the screen-breathing state.
And a location service control module 230, configured to control a location service of the target application program when the target application program belongs to the application white list.
Further, the location service control module 230 includes: a first positioning module control submodule and a second positioning module control submodule, wherein:
and the first positioning module control sub-module is used for controlling the positioning module to provide positioning data for the target application program when the target application program belongs to the first application white list.
And the second positioning module control sub-module is used for controlling the positioning module to provide positioning data with preset duration for the target application program and then stopping providing the positioning data for the target application program when the target application program does not belong to the first application white list.
Further, the positioning module control module 230 includes: a second matching result obtaining sub-module, a positioning module providing sub-module and a positioning module rejecting sub-module, wherein:
and the positioning module provides a sub-module, which is used for controlling the positioning module to provide positioning data for the target application program when the target application program belongs to the second application white list. Further, the positioning module providing sub-modules includes: maximum displacement refuses to obtain unit and location module stop unit, wherein:
and the maximum displacement distance acquisition unit is used for acquiring the maximum displacement distance of the mobile terminal in preset time.
And the positioning module stopping unit is used for controlling the positioning module to stop providing the positioning data for the target application program when the maximum displacement distance is smaller than a distance threshold.
And the positioning module rejection submodule is used for controlling the positioning module to reject to provide the positioning data for the target application program when the target application program does not belong to the second application white list.
Further, the location service control apparatus 200 further includes: a moving speed acquisition module and a positioning frequency determination module, wherein:
and the moving speed acquisition module is used for acquiring the moving speed of the mobile terminal when the positioning module is controlled to provide the positioning data for the target application program.
A positioning frequency determination module for determining a positioning frequency of the positioning module based on the moving speed. Further, the positioning frequency determination module comprises: a positioning frequency increase sub-module and a positioning frequency decrease sub-module, wherein:
and the positioning frequency increasing submodule is used for increasing the positioning frequency of the positioning module when the fact that the moving speed is increased is obtained.
And the positioning frequency reduction submodule is used for reducing the positioning frequency of the positioning module when the obtained reduction of the moving speed is obtained.
Further, the application white list includes one or more applications, and the positioning service control apparatus 200 includes: an application matching module and an application white list determining module, wherein:
and the application program matching module is used for matching the target application program with one or more application programs in the application white list.
An application white list determination module to determine that the target application belongs to the application white list when the target application matches any of the one or more applications.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Referring to fig. 6, a block diagram of a mobile terminal 100 according to an embodiment of the present disclosure is shown. The mobile terminal 100 may be a smart phone, a tablet computer, an electronic book, or other mobile terminal capable of running an application. The mobile terminal 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a display 130, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by the one or more processors 110, the one or more programs configured to perform the methods as described in the aforementioned method embodiments.
Processor 110 may include one or more processing cores, among other things. The processor 110 interfaces with various components throughout the mobile terminal 100 using various interfaces and lines, and performs various functions of the mobile terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120 and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 110 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content to be displayed; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 110, but may be implemented by a communication chip.
The Memory 120 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 120 may be used to store instructions, programs, code sets, or instruction sets. The memory 120 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
The Display 130 is used for displaying information input by a user, information provided to the user, and various graphic user interfaces of the mobile terminal 100, which may be composed of graphics, text, icons, numbers, video, and any combination thereof, and in one example, the Display 130 may be a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), which is not limited herein.
Referring to fig. 7, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 300 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 300 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 300 includes a non-volatile computer-readable storage medium. The computer readable storage medium 300 has storage space for program code 310 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 310 may be compressed, for example, in a suitable form.
To sum up, the positioning service control method, the positioning service control device, the mobile terminal and the storage medium provided in the embodiments of the present application detect state information of a display screen, where the state information includes a bright screen state and a dark screen state, determine an application white list corresponding to the state information of the display screen based on the state information of the display screen, and control a positioning service of a target application program when the target application program belongs to the application white list, so as to determine the application white list according to the state information of the display screen, and control the positioning service of the target application program according to a relationship between the application white list and the target application program, thereby reducing power consumption of the mobile terminal.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (11)

1. A positioning service control method is applied to a mobile terminal, the mobile terminal comprises a display screen, and the method comprises the following steps:
detecting state information of the display screen, wherein the state information comprises a screen-on state and a screen-off state;
determining an application white list corresponding to the state information of the display screen based on the state information of the display screen;
and when the target application program belongs to the application white list, controlling the positioning service of the target application program.
2. The method of claim 1, wherein determining the application white list corresponding to the status information of the display screen based on the status information of the display screen comprises:
when the state information of the display screen is in a bright screen state, determining a first application white list corresponding to the bright screen state;
when the target application program belongs to the application white list, controlling the positioning service of the target application program, including:
and when the target application program belongs to the first application white list, controlling a positioning module to provide positioning data for the target application program.
3. The method of claim 2, further comprising;
and when the target application program does not belong to the first application white list, controlling the positioning module to provide positioning data with preset duration for the target application program and then stopping providing the positioning data for the target application program.
4. The method of claim 1, wherein determining the application white list corresponding to the status information of the display screen based on the status information of the display screen comprises:
when the state information of the display screen is a screen-turning-on state, determining a second application white list corresponding to the screen-turning-on state;
when the target application program belongs to the application white list, controlling the positioning service of the target application program, including:
when the target application program belongs to the second application white list, controlling a positioning module to provide positioning data for the target application program;
and when the target application program does not belong to the second application white list, controlling a positioning module to refuse to provide positioning data to the target application program.
5. The method of claim 4, wherein after controlling a positioning module to provide positioning data to the target application when the target application belongs to the second application white list, further comprising:
acquiring the maximum displacement distance of the mobile terminal within a preset time;
when the maximum displacement distance is less than a distance threshold, controlling the positioning module to stop providing positioning data to the target application.
6. The method according to any of claims 1-5, wherein after controlling the location service of the target application when the target application belongs to the application white list, further comprising:
when the positioning module is controlled to provide positioning data for the target application program, the moving speed of the mobile terminal is obtained;
determining a location frequency of the location module based on the movement speed.
7. The method of claim 6, wherein said determining a location frequency of said location module based on said speed of movement comprises:
when the fact that the moving speed is increased is obtained, increasing the positioning frequency of the positioning module; or
And when the fact that the moving speed is reduced is obtained, reducing the positioning frequency of the positioning module.
8. The method according to any one of claims 1-5, wherein the application white list includes one or more applications, and before controlling the location service of the target application when the target application belongs to the application white list, the method further comprises:
matching the target application program with one or more application programs in the application white list;
determining that the target application belongs to the application whitelist when the target application matches any of the one or more applications.
9. A positioning service control device, applied to a mobile terminal, wherein the mobile terminal comprises a display screen, the device comprises:
the state information detection module is used for detecting state information of the display screen, wherein the state information comprises a screen-on state and a screen-off state;
the white list determining module is used for determining an application white list corresponding to the state information of the display screen based on the state information of the display screen;
and the positioning service control module is used for controlling the positioning service of the target application program when the target application program belongs to the application white list.
10. A mobile terminal comprising a display, a memory, and a processor, the display and the memory coupled to the processor, the memory storing instructions that, when executed by the processor, the processor performs the method of any of claims 1-8.
11. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 8.
CN201911157114.6A 2019-11-22 2019-11-22 Positioning service control method, positioning service control device, mobile terminal and storage medium Pending CN110855838A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911157114.6A CN110855838A (en) 2019-11-22 2019-11-22 Positioning service control method, positioning service control device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911157114.6A CN110855838A (en) 2019-11-22 2019-11-22 Positioning service control method, positioning service control device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110855838A true CN110855838A (en) 2020-02-28

Family

ID=69603663

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911157114.6A Pending CN110855838A (en) 2019-11-22 2019-11-22 Positioning service control method, positioning service control device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110855838A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918386A (en) * 2020-07-03 2020-11-10 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN113010000A (en) * 2021-02-22 2021-06-22 北京小米移动软件有限公司 Power consumption optimization method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013197890A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Information processor, information processing method and information processing program
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN108055635A (en) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 Acquisition methods, device, storage medium and the terminal of location information
CN108156313A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013197890A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Information processor, information processing method and information processing program
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN108055635A (en) * 2017-12-13 2018-05-18 广东欧珀移动通信有限公司 Acquisition methods, device, storage medium and the terminal of location information
CN108156313A (en) * 2017-12-13 2018-06-12 广东欧珀移动通信有限公司 Position control method, device, storage medium and terminal device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111918386A (en) * 2020-07-03 2020-11-10 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN111918386B (en) * 2020-07-03 2023-09-29 Oppo广东移动通信有限公司 Positioning method, positioning device, storage medium and electronic equipment
CN113010000A (en) * 2021-02-22 2021-06-22 北京小米移动软件有限公司 Power consumption optimization method and device, electronic equipment and storage medium
CN113010000B (en) * 2021-02-22 2024-03-26 北京小米移动软件有限公司 Power consumption optimization method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9377839B2 (en) Dynamic battery management
CN107734616B (en) Application program closing method and device, storage medium and electronic equipment
CN110377141B (en) Application processing method and device, electronic equipment and storage medium
CN111124173B (en) Working state switching method and device of touch screen, mobile terminal and storage medium
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
KR20150011181A (en) Method and apparatus for contriolling display of electronic device
EP3242447A1 (en) Information recommendation management method, device and system
CN109272917B (en) Screen brightness adjusting method and device, storage medium and electronic equipment
CN111277991B (en) Operator name display method and device, mobile terminal and storage medium
CN102646037A (en) Menu display processing method and terminal device
CN110795172B (en) Foreground process control method and device, electronic equipment and storage medium
CN110855838A (en) Positioning service control method, positioning service control device, mobile terminal and storage medium
CN111813492A (en) Display method and device of fast application, electronic equipment and storage medium
CN110753153A (en) Terminal control method, terminal and computer storage medium
CN106793026B (en) Method and terminal for realizing event reporting processing
CN110618783B (en) Text broadcasting method, device and medium
US20140302833A1 (en) Method and device for forwarding an incoming call according to a remaining battery capacity
CN110830653B (en) Sensor control method, sensor control device, mobile terminal and storage medium
CN106686671B (en) Network connection processing method and terminal
CN107608744B (en) Application process management method and device and mobile terminal
CN106454953B (en) Flow control method, device and terminal
KR20140099589A (en) Method and apparatus for providing short-cut number in a user device
CN111752632A (en) Control method and device of mobile terminal, mobile terminal and storage medium
CN109511139B (en) WIFI control method and device, mobile device and computer-readable storage medium
US20200167060A1 (en) Method, device, and computer program for displaying an icon

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200228