[go: up one dir, main page]

CN105960004A - Mobile terminal positioning function control method, and mobile terminal - Google Patents

Mobile terminal positioning function control method, and mobile terminal Download PDF

Info

Publication number
CN105960004A
CN105960004A CN201610505811.6A CN201610505811A CN105960004A CN 105960004 A CN105960004 A CN 105960004A CN 201610505811 A CN201610505811 A CN 201610505811A CN 105960004 A CN105960004 A CN 105960004A
Authority
CN
China
Prior art keywords
mobile terminal
positioning function
positioning
call
screen
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610505811.6A
Other languages
Chinese (zh)
Other versions
CN105960004B (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.)
Xuanjing Shenzhen Trading Co ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201610505811.6A priority Critical patent/CN105960004B/en
Publication of CN105960004A publication Critical patent/CN105960004A/en
Application granted granted Critical
Publication of CN105960004B publication Critical patent/CN105960004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. Transmission Power Control [TPC] 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

本发明实施例公开了一种移动终端定位功能控制方法及移动终端,其中的方法包括:检测移动终端是否存在应用程序发起定位请求,以调用定位功能;在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。本发明实施例还公开了相应的移动终端。本发明实施例提供的技术方案能够减小移动终端的系统开销、延长续航时间并保证用户数据安全。

The embodiment of the present invention discloses a mobile terminal positioning function control method and the mobile terminal, wherein the method includes: detecting whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function; When calling the positioning function, detect the current screen state of the mobile terminal, wherein the screen state includes a bright screen state and an off screen state; if the current screen state of the mobile terminal is an off screen state, then close the The positioning function of the mobile terminal. The embodiment of the invention also discloses a corresponding mobile terminal. The technical solution provided by the embodiment of the present invention can reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

Description

一种移动终端定位功能控制方法及移动终端A mobile terminal positioning function control method and mobile terminal

技术领域technical field

本发明涉及通信领域,具体涉及一种移动终端定位功能控制方法及移动终端。The invention relates to the communication field, in particular to a mobile terminal positioning function control method and a mobile terminal.

背景技术Background technique

目前,移动终端上具有定位功能的应用越来越多,如百度地图、滴滴打车、大众点评、QQ、微信等,这些应用可以实现实时定位、导航等功能,从而给用户的日常生活和工作带来极大的便利。At present, there are more and more applications with positioning functions on mobile terminals, such as Baidu Maps, Didi Taxi, Dianping, QQ, WeChat, etc. Bring great convenience.

现有技术中,当用户在使用这些提供位置服务功能的第三方应用时,为了提高定位的精确度,应用会提示用户在移动终端系统中开启定位功能;然而,当用户选择退出应用时,应用却不会主动提示用户关闭GPS功能,这样,会导致无论是否使用该应用,GPS定位服务一直在后台运行,从而会长期占用系统内存,增加系统内存开销,大大增加了移动终端的耗电量,同时也会对用户的隐私安全造成一定威胁。In the prior art, when a user is using these third-party applications that provide location service functions, in order to improve the accuracy of positioning, the application will prompt the user to enable the positioning function in the mobile terminal system; however, when the user chooses to exit the application, the application will But it will not actively prompt the user to turn off the GPS function. In this way, whether the application is used or not, the GPS positioning service will always run in the background, which will occupy the system memory for a long time, increase the system memory overhead, and greatly increase the power consumption of the mobile terminal. At the same time, it will also pose a certain threat to the privacy and security of users.

发明内容Contents of the invention

本发明实施例提供了一种移动终端定位功能控制方法及移动终端,以期避免GPS定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题。Embodiments of the present invention provide a positioning function control method of a mobile terminal and a mobile terminal, in order to avoid the problems of increased system memory overhead, large power consumption, and leakage of user privacy caused by GPS positioning services running in the background all the time.

本发明实施例第一方面提供一种移动终端定位功能控制方法,包括:The first aspect of the embodiments of the present invention provides a method for controlling a positioning function of a mobile terminal, including:

检测移动终端是否存在应用程序发起定位请求,以调用定位功能;Detect whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function;

在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;When it is detected that an application program initiates a positioning request to call the positioning function, the current screen state of the mobile terminal is detected, wherein the screen state includes a bright screen state and an off screen state;

若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。If the current screen state of the mobile terminal is an off-screen state, the positioning function of the mobile terminal is turned off.

结合第一方面,在一些可能的实现方式中,监测所述移动终端的熄屏事件;With reference to the first aspect, in some possible implementation manners, a screen-off event of the mobile terminal is monitored;

在检测到所述移动终端的熄屏事件时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;When detecting the screen-off event of the mobile terminal, detecting whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

若检测到不存在应用程序发起定位请求,以调用所述定位功能,则关闭所述定位功能。If it is detected that no application initiates a positioning request to call the positioning function, the positioning function is turned off.

结合第一方面,在一些可能的实现方式中,所述检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,所述方法还包括:With reference to the first aspect, in some possible implementation manners, after detecting whether there is an application in the mobile terminal that initiates a positioning request to call the positioning function, the method further includes:

若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;If it is detected that there is a positioning request initiated by an application program, to call the positioning function, and detect whether the positioning request initiated by the application program has been executed;

若执行完毕,则关闭所述定位功能。If the execution is completed, the positioning function is turned off.

结合第一方面,在一些可能的实现方式中,所述关闭所述定位功能之后,所述方法还包括:With reference to the first aspect, in some possible implementation manners, after the positioning function is turned off, the method further includes:

监测所述移动终端的亮屏事件;Monitor the bright screen event of the mobile terminal;

在监测到所述亮屏事件时,打开所述移动终端的所述定位功能。When the screen brightening event is detected, the positioning function of the mobile terminal is turned on.

结合第一方面,在一些可能的实现方式中,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。With reference to the first aspect, in some possible implementation manners, the positioning function includes at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.

结合第一方面,在一些可能的实现方式中,所述监测移动终端的熄屏事件,包括:With reference to the first aspect, in some possible implementation manners, the monitoring of the screen-off event of the mobile terminal includes:

检测是否接收到熄屏操作;若检测到熄屏操作,则为监测到所述移动终端的熄屏事件;Detecting whether a screen-off operation is received; if the screen-off operation is detected, it is the monitoring of the screen-off event of the mobile terminal;

或者,检测在预设时间段内是否接收到针对所述移动终端的触控操作,若在预设时间段内没有接收到针对所述移动终端的触控操作,则为监测到所述移动终端的熄屏事件。Alternatively, it is detected whether a touch operation for the mobile terminal is received within a preset time period, and if no touch operation for the mobile terminal is received within a preset time period, the mobile terminal is detected screen off event.

本发明实施例第二方面提供一种移动终端,包括:A second aspect of the embodiments of the present invention provides a mobile terminal, including:

检测单元,用于检测移动终端是否存在应用程序发起定位请求,以调用定位功能;The detection unit is used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

所述检测单元,还用于在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;The detection unit is further configured to detect the current screen state of the mobile terminal when it is detected that an application program initiates a positioning request to call the positioning function, wherein the screen state includes a bright screen state and an off screen state ;

控制单元,用于若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。The control unit is configured to turn off the positioning function of the mobile terminal if the current screen state of the mobile terminal is an off-screen state.

结合第二方面,在一些可能的实现方式中,监测单元,用于监测所述移动终端的熄屏事件;With reference to the second aspect, in some possible implementation manners, the monitoring unit is configured to monitor the screen-off event of the mobile terminal;

所述检测单元,在所述监测单元检测到所述移动终端的熄屏事件时,还用于检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;The detection unit, when the monitoring unit detects the screen-off event of the mobile terminal, is also used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

所述控制单元,在所述检测单元检测到不存在应用程序发起定位请求,以调用所述定位功能时,还用于关闭所述定位功能。The control unit is further configured to close the positioning function when the detection unit detects that there is no application program to initiate a positioning request to call the positioning function.

结合第二方面,在一些可能的实现方式中,所述检测单元,在检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,还用于若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;With reference to the second aspect, in some possible implementation manners, the detection unit, after detecting whether there is an application-initiated positioning request in the mobile terminal to call the positioning function, is further configured to detect that there is an application-initiated positioning request. A positioning request, to call the positioning function, and detect whether the positioning request initiated by the application program is completed;

所述控制单元,还用于在所述检测单元检测到所述应用程序发起的定位请求执行完毕时,关闭所述定位功能。The control unit is further configured to close the positioning function when the detection unit detects that the execution of the positioning request initiated by the application program is completed.

结合第二方面,在一些可能的实现方式中,所述监测单元,还用于在所述控制单元关闭所述定位功能之后,监测所述移动终端的亮屏事件;With reference to the second aspect, in some possible implementation manners, the monitoring unit is further configured to monitor a screen brightening event of the mobile terminal after the control unit disables the positioning function;

所述控制单元,在所述监测单元监测到所述亮屏事件时,还用于打开所述移动终端的所述定位功能。The control unit is further configured to enable the positioning function of the mobile terminal when the monitoring unit detects the screen brightening event.

结合第二方面,在一些可能的实现方式中,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。With reference to the second aspect, in some possible implementation manners, the positioning function includes at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.

可以看出,本发明实施例技术方案中,移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能,在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能,从而能够避免定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题,进而有利于减小移动终端的系统开销、延长续航时间并实现保证用户数据安全。It can be seen that, in the technical solution of the embodiment of the present invention, the mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function. Describe the current screen state of the mobile terminal. If the current screen state of the mobile terminal is the off-screen state, then turn off the positioning function of the mobile terminal, so as to avoid the increase of system memory overhead and consumption caused by the positioning service running in the background all the time. The problem of large power consumption and leakage of user privacy is beneficial to reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明第一实施例提供的一种移动终端定位功能控制方法的流程示意图;FIG. 1 is a schematic flowchart of a method for controlling a positioning function of a mobile terminal provided in a first embodiment of the present invention;

图2是本发明第二实施例提供的一种移动终端定位功能控制方法的流程示意图;FIG. 2 is a schematic flowchart of a method for controlling a positioning function of a mobile terminal provided by a second embodiment of the present invention;

图3是本发明第三实施例提供的一种移动终端的结构示意图;FIG. 3 is a schematic structural diagram of a mobile terminal provided by a third embodiment of the present invention;

图4是本发明第四实施例提供的一种移动终端的结构示意图。Fig. 4 is a schematic structural diagram of a mobile terminal provided by a fourth embodiment of the present invention.

具体实施方式detailed description

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", "third", "fourth" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally further includes For other steps or units inherent in these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The occurrences of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is understood explicitly and implicitly by those skilled in the art that the embodiments described herein can be combined with other embodiments.

请参阅图1,图1是本发明第一实施例提供的一种移动终端定位功能控制方法的流程示意图,如图1所示,本发明实施例中的移动终端定位功能控制方法包括以下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for controlling a positioning function of a mobile terminal provided in the first embodiment of the present invention. As shown in FIG. 1, the method for controlling the positioning function of a mobile terminal in the embodiment of the present invention includes the following steps:

S101、移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能。S101. The mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request, so as to invoke a positioning function.

其中,定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。Wherein, the positioning function includes at least one of the following functions: GPS positioning function, network positioning function and base station positioning function.

具体地,全球卫星定位系统(Global Positioning System),简称GPS。简单地说,这个系统是由覆盖全球的24颗卫星组成,它可以保证在任意时刻,地球上任意一点都可以同时观测到4颗卫星,以保证卫星可以采集到该观测点的经纬度和高度,以便实现导航、定位、授时等功能。基站定位服务又叫做移动位置服务Location Based Service,简称LBS,它是通过电信移动运营商的网络(如GSM网)获取移动终端用户的位置信息(经纬度坐标),在电子地图平台的支持下,为用户提供相应服务的一种增值业务,例如目前中国移动动感地带提供的动感位置查询服务等。网络定位是指移动终端不论用什么方式上网,无线、有线、光纤、拨号,移动终端总是有IP地址/MAC地址,接入端也有IP地址、MAC地址,而且,IP地址是按段分配的,一个地区某个接入网关的分配出去的IP地址,总在同一个段中,所以,获取了移动终端的IP地址,就大致获取了移动终端的位置。同时,移动终端上网的时候,服务器会搜集IP地址、MAC地址、实际位置的信息。在将来移动终端中的应用程序发起定位请求时,服务器会拿这些搜集的数据进行比对,找到尽可能准确的地址。Specifically, the Global Positioning System (Global Positioning System), referred to as GPS. Simply put, this system is composed of 24 satellites covering the whole world. It can ensure that at any time, any point on the earth can observe 4 satellites at the same time, so as to ensure that the satellite can collect the latitude, longitude and altitude of the observation point. In order to realize navigation, positioning, timing and other functions. The base station positioning service is also called the mobile location service Location Based Service, or LBS for short. It obtains the location information (latitude and longitude coordinates) of the mobile terminal user through the network of the telecom mobile operator (such as the GSM network). With the support of the electronic map platform, it provides A value-added service for users to provide corresponding services, such as the dynamic location query service currently provided by China Mobile M-Zone. Network positioning means that no matter what method the mobile terminal uses to access the Internet, wireless, cable, optical fiber, or dial-up, the mobile terminal always has an IP address/MAC address, and the access terminal also has an IP address and MAC address. Moreover, IP addresses are allocated by segment , the IP address assigned by a certain access gateway in a region is always in the same segment, so, after obtaining the IP address of the mobile terminal, the location of the mobile terminal is roughly obtained. At the same time, when the mobile terminal surfs the Internet, the server will collect the information of IP address, MAC address, and actual location. When an application program in a mobile terminal initiates a positioning request in the future, the server will compare the collected data to find an address as accurate as possible.

S102、移动终端在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态。S102. The mobile terminal detects a current screen state of the mobile terminal when detecting that an application program initiates a positioning request to invoke the positioning function, wherein the screen state includes a screen on state and a screen off state.

具体地,移动终端在检测到存在应用程序发起定位请求,以调用所述定位功能时,且查看移动终端的定位功能为开启状态时,检测所述移动终端当前的屏幕状态。其中查看移动终端的定位功能是否为开启状态这一执行动作可以在所述检测移动终端是否存在应用程序发起定位请求,以调用定位功能这一步骤之前、之后或同时进行,本发明实施例不作限制。Specifically, when the mobile terminal detects that an application initiates a positioning request to call the positioning function, and checks that the positioning function of the mobile terminal is enabled, it detects the current screen state of the mobile terminal. The execution action of checking whether the positioning function of the mobile terminal is enabled can be performed before, after or simultaneously with the step of detecting whether there is an application in the mobile terminal to initiate a positioning request to call the positioning function, which is not limited by the embodiment of the present invention .

其中,若所述移动终端当前的屏幕状态为灭屏状态,则执行步骤S103;其中,若所述移动终端当前的屏幕状态为亮屏状态,则执行步骤S104;Wherein, if the current screen state of the mobile terminal is an off-screen state, then perform step S103; wherein, if the current screen state of the mobile terminal is a bright screen state, then perform step S104;

S103、若所述移动终端当前的屏幕状态为灭屏状态,移动终端则关闭所述移动终端的定位功能。S103. If the current screen state of the mobile terminal is an off-screen state, the mobile terminal turns off the positioning function of the mobile terminal.

S104、若所述移动终端当前的屏幕状态为亮屏状态,移动终端则维持所述移动终端的定位功能为开启状态。S104. If the current screen state of the mobile terminal is a bright screen state, the mobile terminal maintains the positioning function of the mobile terminal in an on state.

可以看出,本发明实施例技术方案中,移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能,在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能,从而能够避免定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题,进而有利于减小移动终端的系统开销、延长续航时间并实现保证用户数据安全。It can be seen that, in the technical solution of the embodiment of the present invention, the mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function. Describe the current screen state of the mobile terminal. If the current screen state of the mobile terminal is the off-screen state, then turn off the positioning function of the mobile terminal, so as to avoid the increase of system memory overhead and consumption caused by the positioning service running in the background all the time. The problem of large power consumption and leakage of user privacy is beneficial to reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

可选的,在本发明一些实施例中,所述移动终端还可以执行以下操作:Optionally, in some embodiments of the present invention, the mobile terminal may also perform the following operations:

监测所述移动终端的熄屏事件;Monitor the screen-off event of the mobile terminal;

在检测到所述移动终端的熄屏事件时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;When detecting the screen-off event of the mobile terminal, detecting whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

若检测到不存在应用程序发起定位请求,以调用所述定位功能,则关闭所述定位功能。If it is detected that no application initiates a positioning request to call the positioning function, the positioning function is turned off.

可选的,在本发明一些实施例中,所述移动终端在检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,还可以执行以下操作:Optionally, in some embodiments of the present invention, after the mobile terminal detects whether there is an application on the mobile terminal to initiate a positioning request to invoke the positioning function, the following operations may also be performed:

若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;If it is detected that there is a positioning request initiated by an application program, to call the positioning function, and detect whether the positioning request initiated by the application program has been executed;

若执行完毕,则关闭所述定位功能。If the execution is completed, the positioning function is turned off.

可选的,在本发明一些实施例中,所述移动终端在关闭所述定位功能之后,,还可以执行以下操作:Optionally, in some embodiments of the present invention, after the positioning function is turned off, the mobile terminal may also perform the following operations:

监测所述移动终端的亮屏事件;Monitor the bright screen event of the mobile terminal;

在监测到所述亮屏事件时,打开所述移动终端的所述定位功能。When the screen brightening event is detected, the positioning function of the mobile terminal is turned on.

可选的,在本发明一些实施例中,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。Optionally, in some embodiments of the present invention, the positioning function includes at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.

请参阅图2,图2是本发明第二实施例提供的一种移动终端定位功能控制方法的流程示意图,如图2所示,本发明实施例中的移动终端定位功能控制方法包括以下步骤:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of a method for controlling the positioning function of a mobile terminal provided in the second embodiment of the present invention. As shown in FIG. 2, the method for controlling the positioning function of the mobile terminal in the embodiment of the present invention includes the following steps:

S201、移动终端监测所述移动终端的熄屏事件。S201. The mobile terminal monitors a screen-off event of the mobile terminal.

其中,所述可以是任何具有通讯和存储功能的设备,包括但不限于移动电话、移动电脑、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、媒体播放器、智能手表、智能眼镜、智能手环等。Wherein, the device may be any device with communication and storage functions, including but not limited to mobile phones, mobile computers, tablet computers, personal digital assistants (Personal Digital Assistant, PDA), media players, smart watches, smart glasses, smart bracelet etc.

其中,所述监测移动终端的熄屏事件的具体实现方式可以是:Wherein, the specific implementation manner of monitoring the screen-off event of the mobile terminal may be:

检测是否接收到熄屏操作;若检测到熄屏操作,则为监测到所述移动终端的熄屏事件;Detecting whether a screen-off operation is received; if the screen-off operation is detected, it is the monitoring of the screen-off event of the mobile terminal;

或者,检测在预设时间段内是否接收到针对所述移动终端的触控操作,若在预设时间段内没有接收到针对所述移动终端的触控操作,则为监测到所述移动终端的熄屏事件。Alternatively, it is detected whether a touch operation for the mobile terminal is received within a preset time period, and if no touch operation for the mobile terminal is received within a preset time period, the mobile terminal is detected screen off event.

具体地,移动终端可以检测是否接收到熄屏操作,上述熄屏可以是用户触发熄屏按键,若检测到熄屏操作,则为监测到所述移动终端的熄屏事件,其中,移动终端的熄屏按键可以是专门的负责显示屏亮屏、熄屏的按键,也可以是移动终端中的任一按键;或者,移动终端可以检测在预设时间段内是否接收到针对所述移动终端的触控操作,若在预设时间段内没有接收到针对所述移动终端的触控操作,则为监测到所述移动终端的熄屏事件,举例来说,若移动终端可以检测30s内是否接收到针对所述移动终端的触控操作,若在30s内没有接收到针对所述移动终端的触控操作,移动终端可以将当前的状态看作为没有被使用的状态,此时可以理解为监测到所述移动终端的熄屏事件。Specifically, the mobile terminal can detect whether a screen-off operation has been received. The above-mentioned screen-off can be triggered by the user. If the screen-off operation is detected, it means that the screen-off event of the mobile terminal has been monitored. The screen-off button can be a special button responsible for turning on and off the screen, or any button in the mobile terminal; Touch operation, if the touch operation for the mobile terminal is not received within the preset time period, it means that the screen-off event of the mobile terminal has been monitored, for example, if the mobile terminal can detect whether the mobile terminal receives Upon receiving a touch operation on the mobile terminal, if no touch operation on the mobile terminal is received within 30s, the mobile terminal can regard the current state as an unused state, which can be understood as monitoring the A screen-off event of the mobile terminal.

S202、移动终端在监测到所述熄屏事件,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能。S202. After detecting the screen-off event, the mobile terminal detects whether there is an application in the mobile terminal that initiates a positioning request, so as to invoke the positioning function.

具体地,移动终端在监测到所述熄屏事件、且查看到所述移动终端的定位功能开启时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能。Specifically, when the mobile terminal monitors the screen-off event and sees that the positioning function of the mobile terminal is enabled, it detects whether there is an application in the mobile terminal that initiates a positioning request, so as to invoke the positioning function.

具体地,移动终端可以在检测到所述移动终端的定位功能开启时,监测移动终端的熄屏事件,在监测到所述熄屏事件时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;或者移动终端可以监测移动终端的熄屏事件,在监测到所述熄屏事件时,检测所述移动终端的定位功能是否开启时,在检测到所述移动终端的定位功能开启时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能。Specifically, the mobile terminal may monitor the screen-off event of the mobile terminal when detecting that the positioning function of the mobile terminal is enabled, and detect whether there is an application program in the mobile terminal to initiate a positioning request when the screen-off event is detected, To call the positioning function; or the mobile terminal can monitor the screen-off event of the mobile terminal, and when the screen-off event is detected, when detecting whether the positioning function of the mobile terminal is turned on, when the positioning function of the mobile terminal is detected When the function is enabled, it is detected whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function.

当应用程序需要检测地理位置时,就会向移动终端的定位模块发起定位请求来调用定位功能。其中,当检测到移动终端有应用程序发起定位请求时,系统也可以统计所有调用定位功能的应用程序作为发起定位的请求者,以便于后续所述应用程序发起的定位请求是否执行完毕。When the application program needs to detect the geographic location, it will initiate a positioning request to the positioning module of the mobile terminal to call the positioning function. Wherein, when it is detected that the mobile terminal has an application that initiates a positioning request, the system may also count all applications that invoke the positioning function as requesters for initiating positioning, so as to determine whether the subsequent positioning requests initiated by the application are completed.

其中,移动终端若检测所述移动终端不存在应用程序发起定位请求,以调用所述定位功能,则执行步骤S203后执行步骤S206至S207;移动终端若检测所述移动终端存在应用程序发起定位请求,以调用所述定位功能,则执行步骤S204至S205后执行步骤S206至S207。Wherein, if the mobile terminal detects that the mobile terminal does not have an application to initiate a positioning request to call the positioning function, then perform steps S206 to S207 after performing step S203; if the mobile terminal detects that there is an application in the mobile terminal to initiate a positioning request , to call the positioning function, then execute steps S204 to S205 and then execute steps S206 to S207.

S203、移动终端若检测到不存在应用程序发起定位请求,以调用所述定位功能,则关闭所述移动终端的定位功能。S203. If the mobile terminal detects that no application initiates a positioning request to call the positioning function, close the positioning function of the mobile terminal.

S204、移动终端若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;S204. If the mobile terminal detects that there is a positioning request initiated by an application, it invokes the positioning function, and detects whether the execution of the positioning request initiated by the application is completed;

S205、若执行完毕,移动终端则关闭所述定位功能。S205. If the execution is completed, the mobile terminal closes the positioning function.

S206、移动终端监测所述移动终端的亮屏事件。S206. The mobile terminal monitors a screen brightening event of the mobile terminal.

其中,移动终端可以通过检测是否接收到用户的亮屏操作,即检测用户是否触发亮屏按键,若检测到用户触发亮屏按键,则为监测到所述移动终端的亮屏事件。其中,移动终端的亮屏按键可以是专门的负责显示屏亮屏、熄屏的按键,也可以是移动终端中的任一按键。Wherein, the mobile terminal can detect whether the user's screen brightening operation is received, that is, detect whether the user triggers the bright screen button, and if it is detected that the user triggers the screen brightening button, it is a screen brightening event of the mobile terminal. Wherein, the screen-on button of the mobile terminal may be a special button responsible for turning on and off the display screen, or any button in the mobile terminal.

S207、移动终端在监测到所述亮屏事件时,打开所述移动终端的所述定位功能。S207. When the mobile terminal detects the screen brightening event, enable the positioning function of the mobile terminal.

可以看出,本发明实施例技术方案中,移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能,在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能,从而能够避免定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题,进而有利于减小移动终端的系统开销、延长续航时间并实现保证用户数据安全。It can be seen that, in the technical solution of the embodiment of the present invention, the mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function. Describe the current screen state of the mobile terminal. If the current screen state of the mobile terminal is the off-screen state, then turn off the positioning function of the mobile terminal, so as to avoid the increase of system memory overhead and consumption caused by the positioning service running in the background all the time. The problem of large power consumption and leakage of user privacy is beneficial to reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例一至二实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一和实施例二。The following is the embodiment of the device of the present invention, which is used to execute the method realized by the method embodiment 1 to 2 of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown, and the specific technical details are not disclosed. , please refer to Embodiment 1 and Embodiment 2 of the present invention.

请参阅图3,图3是本发明第三实施例提供的一种移动终端的结构示意图,如图3所示,本发明实施例中的移动终端包括以下单元:Please refer to FIG. 3. FIG. 3 is a schematic structural diagram of a mobile terminal provided by a third embodiment of the present invention. As shown in FIG. 3, the mobile terminal in the embodiment of the present invention includes the following units:

检测单元301,用于检测移动终端是否存在应用程序发起定位请求,以调用定位功能;The detection unit 301 is used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

所述检测单元301,还用于在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;The detection unit 301 is further configured to detect the current screen state of the mobile terminal when it is detected that an application program initiates a positioning request to call the positioning function, wherein the screen state includes a bright screen state and an off screen state state;

控制单元302,用于若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。The control unit 302 is configured to turn off the positioning function of the mobile terminal if the current screen state of the mobile terminal is an off-screen state.

可选的,本发明一些实施例中,所述移动终端还可以进一步包括:Optionally, in some embodiments of the present invention, the mobile terminal may further include:

监测单元303,用于监测所述移动终端的熄屏事件;A monitoring unit 303, configured to monitor a screen-off event of the mobile terminal;

所述检测单元301,在所述监测单元303检测到所述移动终端的熄屏事件时,还用于检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;The detection unit 301, when the monitoring unit 303 detects the screen-off event of the mobile terminal, is also used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function;

所述控制单元302,在所述检测单元检测到不存在应用程序发起定位请求,以调用所述定位功能时,还用于关闭所述定位功能。The control unit 302 is further configured to close the positioning function when the detection unit detects that there is no application program that initiates a positioning request to call the positioning function.

可选的,本发明一些实施例中,所述检测单元301,在检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,还用于若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;Optionally, in some embodiments of the present invention, the detection unit 301, after detecting whether there is an application that initiates a positioning request in the mobile terminal to call the positioning function, is further configured to detect that there is an application that initiates a positioning request. request to call the positioning function, and detect whether the positioning request initiated by the application program has been executed;

所述控制单元302,还用于在所述检测单元检测到所述应用程序发起的定位请求执行完毕时,关闭所述定位功能。The control unit 302 is further configured to close the positioning function when the detection unit detects that the execution of the positioning request initiated by the application program is completed.

可选的,本发明一些实施例中,所述监测单元303,还用于在所述控制单元302关闭所述定位功能之后,监测所述移动终端的亮屏事件;Optionally, in some embodiments of the present invention, the monitoring unit 303 is further configured to monitor the screen brightening event of the mobile terminal after the control unit 302 disables the positioning function;

所述控制单元302,在所述监测单元监测到所述亮屏事件时,还用于打开所述移动终端的所述定位功能。The control unit 302 is further configured to enable the positioning function of the mobile terminal when the monitoring unit detects the screen brightening event.

可选的,本发明一些实施例中,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。Optionally, in some embodiments of the present invention, the positioning function includes at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.

具体的,上述各个单元的具体实现可参考图1与图2对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation of each of the above units, reference may be made to the description of relevant steps in the embodiments corresponding to FIG. 1 and FIG. 2 , and details are not repeated here.

可以看出,本发明实施例技术方案中,移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能,在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能,从而能够避免定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题,进而有利于减小移动终端的系统开销、延长续航时间并实现保证用户数据安全。It can be seen that, in the technical solution of the embodiment of the present invention, the mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function. Describe the current screen state of the mobile terminal. If the current screen state of the mobile terminal is the off-screen state, then turn off the positioning function of the mobile terminal, so as to avoid the increase of system memory overhead and consumption caused by the positioning service running in the background all the time. The problem of large power consumption and leakage of user privacy is beneficial to reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

请参考图4,图4是本发明第四实施例提供的一种移动终端的结构示意图。如图4所示,本发明实施例中的移动终端包括:至少一个处理器401,例如CPU,至少一个接收器403,至少一个存储器404,至少一个发送器405,至少一个通信总线402。其中,通信总线402用于实现这些组件之间的连接通信。其中,本发明实施例中装置的接收器403和发送器405可以是有线发送端口,也可以为无线设备,例如包括天线装置,用于与其他节点设备进行信令或数据的通信。存储器404可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器404可选的还可以是至少一个位于远离前述处理器401的存储装置。存储器404中存储一组程序代码,且所述处理器401可通过通信总线402,调用存储器404中存储的代码以执行相关的功能。Please refer to FIG. 4 , which is a schematic structural diagram of a mobile terminal provided by a fourth embodiment of the present invention. As shown in FIG. 4 , the mobile terminal in the embodiment of the present invention includes: at least one processor 401 , such as CPU, at least one receiver 403 , at least one memory 404 , at least one transmitter 405 , and at least one communication bus 402 . Wherein, the communication bus 402 is used to realize connection and communication between these components. Wherein, the receiver 403 and the transmitter 405 of the device in the embodiment of the present invention may be a wired sending port, or may be a wireless device, such as including an antenna device, for signaling or data communication with other node devices. The memory 404 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory 404 may also be at least one storage device located away from the aforementioned processor 401 . A set of program codes are stored in the memory 404 , and the processor 401 can call the codes stored in the memory 404 through the communication bus 402 to execute related functions.

所述处理器401,用于检测移动终端是否存在应用程序发起定位请求,以调用定位功能;在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。The processor 401 is configured to detect whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function; when it is detected that there is an application program initiating a positioning request to call the positioning function, detect the current screen of the mobile terminal state, wherein the screen state includes a screen-on state and a screen-off state; if the current screen state of the mobile terminal is the screen-off state, the positioning function of the mobile terminal is turned off.

可选的,在本发明一些实施例中,所述处理器401,还可以用于监测所述移动终端的熄屏事件;在检测到所述移动终端的熄屏事件时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;若检测到不存在应用程序发起定位请求,以调用所述定位功能,则关闭所述定位功能。Optionally, in some embodiments of the present invention, the processor 401 may also be configured to monitor a screen-off event of the mobile terminal; when a screen-off event of the mobile terminal is detected, detect the mobile terminal Whether there is an application that initiates a positioning request to call the positioning function; if it is detected that there is no application that initiates a positioning request to call the positioning function, the positioning function is turned off.

可选的,在本发明一些实施例中,所述处理器401,在用于检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,还用于若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;若执行完毕,则关闭所述定位功能。Optionally, in some embodiments of the present invention, after the processor 401 is used to detect whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function, it is also used to The program initiates a positioning request to call the positioning function, and detects whether the positioning request initiated by the application program is completed; if the execution is completed, the positioning function is turned off.

可选的,在本发明一些实施例中,所述处理器401,在用于关闭所述定位功能之后,还可以用于监测所述移动终端的亮屏事件;在监测到所述亮屏事件时,打开所述移动终端的所述定位功能。Optionally, in some embodiments of the present invention, after the processor 401 is used to close the positioning function, it can also be used to monitor the bright screen event of the mobile terminal; , the positioning function of the mobile terminal is turned on.

可选的,在本发明一些实施例中,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。Optionally, in some embodiments of the present invention, the positioning function includes at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.

具体的,上述各个单元的具体实现可参考图1与图2对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation of each of the above units, reference may be made to the description of relevant steps in the embodiments corresponding to FIG. 1 and FIG. 2 , and details are not repeated here.

可以看出,本发明实施例技术方案中,移动终端检测移动终端是否存在应用程序发起定位请求,以调用定位功能,在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能,从而能够避免定位服务一直在后台运行所造成的系统内存开销增加、耗电量大以及用户隐私泄露的问题,进而有利于减小移动终端的系统开销、延长续航时间并实现保证用户数据安全。It can be seen that, in the technical solution of the embodiment of the present invention, the mobile terminal detects whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function. Describe the current screen state of the mobile terminal. If the current screen state of the mobile terminal is the off-screen state, then turn off the positioning function of the mobile terminal, so as to avoid the increase of system memory overhead and consumption caused by the positioning service running in the background all the time. The problem of large power consumption and leakage of user privacy is beneficial to reduce the system overhead of the mobile terminal, prolong the battery life and ensure the security of user data.

本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种服务进程的监控方法的部分或全部步骤。An embodiment of the present invention also provides a computer storage medium, wherein the computer storage medium can store a program, and when the program is executed, some or all steps of any method for monitoring a service process described in the above method embodiments are included.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和单元并不一定是本发明所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited by the described action sequence. Because of the present invention, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and units involved are not necessarily required by the present invention.

本发明实施例的方法的步骤顺序可以根据实际需要进行调整、合并或删减。本发明实施例的终端的单元可以根据实际需要进行整合、进一步划分或删减。The sequence of steps in the method of the embodiment of the present invention may be adjusted, combined or deleted according to actual needs. The units of the terminal in the embodiment of the present invention may be integrated, further divided or deleted according to actual needs.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例是示意性的,例如所述单元的划分,为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are schematic. For example, the division of the units is a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into Another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes. .

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(英文:Read-Only Memory,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Flash disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access device (English: Random Access Memory, abbreviated: RAM), magnetic disk or optical disk, etc.

以上对本发明实施例所提供的一种移动终端定位功能控制方法及移动终端进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The method for controlling the positioning function of a mobile terminal and the mobile terminal provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification It should not be construed as a limitation of the invention.

Claims (10)

1.一种移动终端定位功能控制方法,其特征在于,包括:1. A mobile terminal positioning function control method, characterized in that, comprising: 检测移动终端是否存在应用程序发起定位请求,以调用定位功能;Detect whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function; 在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;When it is detected that an application program initiates a positioning request to call the positioning function, the current screen state of the mobile terminal is detected, wherein the screen state includes a bright screen state and an off screen state; 若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。If the current screen state of the mobile terminal is an off-screen state, the positioning function of the mobile terminal is turned off. 2.如权利要求1所述的方法,其特征在于,所述方法还包括:2. The method of claim 1, further comprising: 监测所述移动终端的熄屏事件;Monitor the screen-off event of the mobile terminal; 在检测到所述移动终端的熄屏事件时,检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;When detecting the screen-off event of the mobile terminal, detecting whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function; 若检测到不存在应用程序发起定位请求,以调用所述定位功能,则关闭所述定位功能。If it is detected that no application initiates a positioning request to call the positioning function, the positioning function is turned off. 3.如权利要求2所述的方法,其特征在于,所述检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,所述方法还包括:3. The method according to claim 2, wherein after detecting whether there is an application program in the mobile terminal to initiate a positioning request to call the positioning function, the method further comprises: 若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;If it is detected that there is a positioning request initiated by an application program, to call the positioning function, and detect whether the positioning request initiated by the application program has been executed; 若执行完毕,则关闭所述定位功能。If the execution is completed, the positioning function is turned off. 4.如权利要求2或3所述的方法,其特征在于,所述关闭所述定位功能之后,所述方法还包括:4. The method according to claim 2 or 3, wherein after the positioning function is turned off, the method further comprises: 监测所述移动终端的亮屏事件;Monitor the bright screen event of the mobile terminal; 在监测到所述亮屏事件时,打开所述移动终端的所述定位功能。When the screen brightening event is detected, the positioning function of the mobile terminal is turned on. 5.如权利要求4所述的方法,其特征在于,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。5. The method according to claim 4, wherein the positioning function comprises at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function. 6.一种移动终端,其特征在于,包括:6. A mobile terminal, characterized in that, comprising: 检测单元,用于检测移动终端是否存在应用程序发起定位请求,以调用定位功能;The detection unit is used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function; 所述检测单元,还用于在检测到存在应用程序发起定位请求,以调用所述定位功能时,检测所述移动终端当前的屏幕状态,其中,所述屏幕状态包括亮屏状态和灭屏状态;The detection unit is further configured to detect the current screen state of the mobile terminal when it is detected that an application program initiates a positioning request to call the positioning function, wherein the screen state includes a bright screen state and an off screen state ; 控制单元,用于若所述移动终端当前的屏幕状态为灭屏状态,则关闭所述移动终端的定位功能。The control unit is configured to turn off the positioning function of the mobile terminal if the current screen state of the mobile terminal is an off-screen state. 7.如权利要求6所述的移动终端,其特征在于,所述移动终端还包括:7. The mobile terminal according to claim 6, further comprising: 监测单元,用于监测所述移动终端的熄屏事件;A monitoring unit, configured to monitor a screen-off event of the mobile terminal; 所述检测单元,在所述监测单元检测到所述移动终端的熄屏事件时,还用于检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能;The detection unit, when the monitoring unit detects the screen-off event of the mobile terminal, is also used to detect whether there is an application program in the mobile terminal to initiate a positioning request, so as to call the positioning function; 所述控制单元,在所述检测单元检测到不存在应用程序发起定位请求,以调用所述定位功能时,还用于关闭所述定位功能。The control unit is further configured to close the positioning function when the detection unit detects that there is no application program to initiate a positioning request to call the positioning function. 8.如权利要求7所述的移动终端,其特征在于,8. The mobile terminal according to claim 7, wherein: 所述检测单元,在检测所述移动终端是否存在应用程序发起定位请求,以调用所述定位功能之后,还用于若检测到存在应用程序发起定位请求,以调用所述定位功能,检测所述应用程序发起的定位请求是否执行完毕;The detection unit, after detecting whether there is an application program initiating a positioning request in the mobile terminal to call the positioning function, is further configured to call the positioning function if it detects that there is an application program initiating a positioning request, and detect the Whether the positioning request initiated by the application has been executed; 所述控制单元,还用于在所述检测单元检测到所述应用程序发起的定位请求执行完毕时,关闭所述定位功能。The control unit is further configured to close the positioning function when the detection unit detects that the execution of the positioning request initiated by the application program is completed. 9.如权利要求7或8所述的移动终端,其特征在于,9. The mobile terminal according to claim 7 or 8, wherein: 所述监测单元,还用于在所述控制单元关闭所述定位功能之后,监测所述移动终端的亮屏事件;The monitoring unit is further configured to monitor the screen brightening event of the mobile terminal after the control unit closes the positioning function; 所述控制单元,在所述监测单元监测到所述亮屏事件时,还用于打开所述移动终端的所述定位功能。The control unit is further configured to enable the positioning function of the mobile terminal when the monitoring unit detects the screen brightening event. 10.如权利要求9所述的移动终端,其特征在于,所述定位功能包括以下至少一种功能:GPS定位功能、网络定位功能和基站定位功能。10. The mobile terminal according to claim 9, wherein the positioning function comprises at least one of the following functions: a GPS positioning function, a network positioning function, and a base station positioning function.
CN201610505811.6A 2016-06-30 2016-06-30 Mobile terminal positioning function control method and mobile terminal Active CN105960004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610505811.6A CN105960004B (en) 2016-06-30 2016-06-30 Mobile terminal positioning function control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610505811.6A CN105960004B (en) 2016-06-30 2016-06-30 Mobile terminal positioning function control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN105960004A true CN105960004A (en) 2016-09-21
CN105960004B CN105960004B (en) 2020-04-07

Family

ID=56902742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610505811.6A Active CN105960004B (en) 2016-06-30 2016-06-30 Mobile terminal positioning function control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN105960004B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231563A (en) * 2016-09-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of reduce the method for power consumption, device and terminal
CN106851801A (en) * 2017-01-23 2017-06-13 北京奇虎科技有限公司 The optimization method of alignment system performance, device and mobile terminal
CN106878945A (en) * 2017-01-23 2017-06-20 北京奇虎科技有限公司 Method, device and mobile terminal for optimizing performance of positioning system
CN106888432A (en) * 2017-01-23 2017-06-23 北京奇虎科技有限公司 The optimization method of alignment system performance, device and mobile terminal
CN107040979A (en) * 2017-03-23 2017-08-11 北京珠穆朗玛移动通信有限公司 The control method and mobile terminal of functional module
CN107148074A (en) * 2017-06-06 2017-09-08 深圳天珑无线科技有限公司 A kind of location processing method and its electronic equipment
CN107317923A (en) * 2017-06-19 2017-11-03 深圳传音通讯有限公司 Control method, device and the terminal of GPS running statuses
CN107423618A (en) * 2017-07-12 2017-12-01 惠州Tcl移动通信有限公司 Application program satellite fix request control method, storage device and mobile terminal
CN107786746A (en) * 2017-10-27 2018-03-09 北京小米移动软件有限公司 Control method, device and system, the storage medium of traffic application
WO2018059236A1 (en) * 2016-09-30 2018-04-05 中兴通讯股份有限公司 Positioning processing method and terminal of global positioning system
WO2018103374A1 (en) * 2016-12-05 2018-06-14 中兴通讯股份有限公司 Control method and device
CN116546132A (en) * 2023-07-06 2023-08-04 荣耀终端有限公司 Network identification method, device, mobile terminal and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012735A (en) * 2009-09-07 2011-04-13 三竹资讯股份有限公司 Power Management Method for Mobile Devices
CN103491262A (en) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 Intelligent power saving mode switching system of mobile terminal
CN104780269A (en) * 2015-03-24 2015-07-15 广东欧珀移动通信有限公司 A method and device for adjusting the performance of a mobile terminal based on power
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105550204A (en) * 2015-12-01 2016-05-04 小米科技有限责任公司 Method and device for controlling position locating module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102012735A (en) * 2009-09-07 2011-04-13 三竹资讯股份有限公司 Power Management Method for Mobile Devices
CN103491262A (en) * 2013-09-24 2014-01-01 广州市久邦数码科技有限公司 Intelligent power saving mode switching system of mobile terminal
CN104780269A (en) * 2015-03-24 2015-07-15 广东欧珀移动通信有限公司 A method and device for adjusting the performance of a mobile terminal based on power
CN104793995A (en) * 2015-04-27 2015-07-22 广东欧珀移动通信有限公司 Method and device for controlling GPS invocation
CN105550204A (en) * 2015-12-01 2016-05-04 小米科技有限责任公司 Method and device for controlling position locating module

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231563A (en) * 2016-09-29 2016-12-14 宇龙计算机通信科技(深圳)有限公司 A kind of reduce the method for power consumption, device and terminal
WO2018059236A1 (en) * 2016-09-30 2018-04-05 中兴通讯股份有限公司 Positioning processing method and terminal of global positioning system
CN108170484A (en) * 2016-12-05 2018-06-15 中兴通讯股份有限公司 A kind of control method and device
WO2018103374A1 (en) * 2016-12-05 2018-06-14 中兴通讯股份有限公司 Control method and device
CN106851801A (en) * 2017-01-23 2017-06-13 北京奇虎科技有限公司 The optimization method of alignment system performance, device and mobile terminal
CN106878945A (en) * 2017-01-23 2017-06-20 北京奇虎科技有限公司 Method, device and mobile terminal for optimizing performance of positioning system
CN106888432A (en) * 2017-01-23 2017-06-23 北京奇虎科技有限公司 The optimization method of alignment system performance, device and mobile terminal
CN106878945B (en) * 2017-01-23 2019-11-26 北京安云世纪科技有限公司 Optimization method, device and the mobile terminal of positioning system performance
CN106851801B (en) * 2017-01-23 2019-11-26 北京安云世纪科技有限公司 Optimization method, device and the mobile terminal of positioning system performance
CN107040979A (en) * 2017-03-23 2017-08-11 北京珠穆朗玛移动通信有限公司 The control method and mobile terminal of functional module
CN107040979B (en) * 2017-03-23 2020-05-19 北京珠穆朗玛移动通信有限公司 Control method of functional module and mobile terminal
CN107148074A (en) * 2017-06-06 2017-09-08 深圳天珑无线科技有限公司 A kind of location processing method and its electronic equipment
CN107317923A (en) * 2017-06-19 2017-11-03 深圳传音通讯有限公司 Control method, device and the terminal of GPS running statuses
CN107423618A (en) * 2017-07-12 2017-12-01 惠州Tcl移动通信有限公司 Application program satellite fix request control method, storage device and mobile terminal
CN107786746A (en) * 2017-10-27 2018-03-09 北京小米移动软件有限公司 Control method, device and system, the storage medium of traffic application
CN107786746B (en) * 2017-10-27 2020-10-30 北京小米移动软件有限公司 Control method, device and system for traffic application and storage medium
CN116546132A (en) * 2023-07-06 2023-08-04 荣耀终端有限公司 Network identification method, device, mobile terminal and computer readable storage medium
CN116546132B (en) * 2023-07-06 2023-11-03 荣耀终端有限公司 Network identification method, device, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN105960004B (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN105960004A (en) Mobile terminal positioning function control method, and mobile terminal
US11910192B2 (en) Device identifier access method and apparatus
US20200096950A1 (en) Method and device for sending communication message
CN107995357A (en) Resource allocation method and device
CN108076507B (en) Positioning mode control method, device, storage medium and mobile terminal
US11394871B2 (en) Photo taking control method and system based on mobile terminal, and storage medium
CN106534288B (en) A data transmission method and mobile terminal
CN106648455A (en) Data migration method and mobile terminal
JP2020537211A (en) Application management method and terminal
US10298590B2 (en) Application-based service providing method, apparatus, and system
CN108072885A (en) Collocation method, device, storage medium and the terminal of locating module
US20140282057A1 (en) System for applying applications of different operating systems in one electronic device and method thereof
CN106569916A (en) Data backup method and mobile terminal
CN106961710A (en) A kind of method for network access and terminal
CN106993327A (en) Network positioning method, device and computer equipment
CN106572163B (en) Data migration method and terminal
CN110234068A (en) A kind of localization method and terminal device
CN106792583B (en) Multimedia message sending method, terminal and computer readable storage medium
CN107508931A (en) Wireless network communication method, device, storage medium and computer equipment
CN107332996A (en) Screen lock control method, device, computer storage medium and mobile terminal
CN106535229B (en) WiFi signal receiving sensitivity testing method and mobile terminal
TWI668595B (en) Electronic device and system and method for searching the same
CN103561119B (en) Obtain method, device and the equipment of Media Access Control address
CN106572166B (en) Data transmission method, backup server and mobile terminal
CN107172299A (en) Information processing method, device, computer equipment, and computer-readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20250814

Address after: 518000 Guangdong Province Shenzhen City Futian District Futian Street Fu'an Community Mintian Road 178 Huarong Building 3104 P38

Patentee after: Xuanjing (Shenzhen) Trading Co.,Ltd.

Country or region after: China

Address before: 518057, Nanshan District hi tech Industrial Park (North Zone), Guangdong, Shenzhen Province, No. 2, Mengxi Road

Patentee before: YULONG COMPUTER TELECOMMUNICATION SCIENTIFIC (SHENZHEN) Co.,Ltd.

Country or region before: China