








技术领域technical field
本发明实施例涉及移动终端技术领域,尤其涉及一种移动终端的服务切换方法、装置及移动终端。The embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a service switching method and device for a mobile terminal, and a mobile terminal.
背景技术Background technique
随着信息技术的发展,移动终端(如手机、平板电脑等等)的使用也越来越普遍,移动终端成为了人们生活的必需品。目前,越来越多移动终端上的APP(Application,应用)需要获取用户当前的位置信息,如天气、百度外卖、大众点评等LBS(Location BasedService,基于位置服务)应用,以为用户提供更好的服务。With the development of information technology, the use of mobile terminals (such as mobile phones, tablet computers, etc.) is becoming more and more common, and mobile terminals have become necessities of people's lives. At present, more and more APPs (Applications) on mobile terminals need to obtain the current location information of users, such as LBS (Location Based Service) applications such as weather, Baidu Takeout, and Dianping, to provide users with better information. Serve.
目前绝大多数LBS应用均采用SDK(Software Development Kit,软件开发工具包)的方式获取位置信息,每个LBS应用内部均内置一个SDK,当LBS应用在需要位置信息时,发起定位请求,并通过内置的SDK从百度、高德或腾讯等定位服务器获取用户当前的位置信息。At present, most LBS applications use the SDK (Software Development Kit, software development kit) to obtain location information. Each LBS application has a built-in SDK. When the LBS application needs location information, it initiates a positioning request and passes The built-in SDK obtains the user's current location information from positioning servers such as Baidu, AutoNavi or Tencent.
每个LBS应用通过内部的SDK访问定位服务器,获取用户位置信息,浪费了移动终端系统和定位服务器的资源,资源的利用率较低。Each LBS application accesses the location server through the internal SDK to obtain user location information, which wastes the resources of the mobile terminal system and the location server, and the resource utilization rate is low.
发明内容SUMMARY OF THE INVENTION
本发明实施例提供一种移动终端的服务切换方法、装置及移动终端,可以节省移动终端和定位服务器的资源,提高资源的利用率。Embodiments of the present invention provide a service switching method, device and mobile terminal for a mobile terminal, which can save the resources of the mobile terminal and the positioning server and improve the utilization rate of the resources.
第一方面,本发明实施例提供了一种移动终端的服务切换方法,包括:In a first aspect, an embodiment of the present invention provides a service switching method for a mobile terminal, including:
获取移动终端中各LBS应用列表对应的LBS应用频率值;Obtain the LBS application frequency value corresponding to each LBS application list in the mobile terminal;
根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足所述预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;According to the LBS application frequency value corresponding to each LBS application list, it is judged whether the preset network positioning provider NLP switching condition is satisfied, and when the preset NLP switching condition is satisfied, the LBS application frequency value corresponding to each LBS application list is selected according to the preset rule. Select a target LBS application frequency value;
将所述移动终端的NLP所绑定的网络定位服务切换到所述目标LBS应用频率值所对应LBS应用列表对应的网络定位服务;switching the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value;
其中,所述LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,所述LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新;以及,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。Wherein, the LBS application frequency value represents the frequency at which the LBS application in the corresponding LBS application list initiates the positioning request, and the LBS application frequency value is updated when the LBS application in the corresponding LBS application list initiates the positioning request; and, each LBS application The lists respectively correspond to one type of network location service, and the types of network location services corresponding to different LBS application lists are different.
第二方面,本发明实施例提供了一种移动终端的服务切换装置,包括:In a second aspect, an embodiment of the present invention provides a service switching device for a mobile terminal, including:
LBS应用频率值获取模块,用于获取移动终端中各LBS应用列表对应的LBS应用频率值;The LBS application frequency value acquisition module is used to acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal;
切换条件判断模块,用于根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足所述预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;The switching condition judgment module is used to judge whether the preset network positioning provider NLP switching condition is satisfied according to the LBS application frequency value corresponding to each LBS application list, and when the preset NLP switching condition is satisfied, according to the preset rules from each LBS application Select a target LBS application frequency value from the LBS application frequency values corresponding to the list;
网络定位服务切换模块,用于将所述移动终端的NLP所绑定的网络定位服务切换到所述目标LBS应用频率值所对应LBS应用列表对应的网络定位服务;a network location service switching module, configured to switch the network location service bound by the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value;
其中,所述LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,所述LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新;以及,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。Wherein, the LBS application frequency value represents the frequency at which the LBS application in the corresponding LBS application list initiates the positioning request, and the LBS application frequency value is updated when the LBS application in the corresponding LBS application list initiates the positioning request; and, each LBS application The lists respectively correspond to one type of network location service, and the types of network location services corresponding to different LBS application lists are different.
第三方面,本发明实施例提供了一种移动终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:In a third aspect, an embodiment of the present invention provides a mobile terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor, where the processor implements the following steps when executing the computer program:
获取移动终端中各LBS应用列表对应的LBS应用频率值;Obtain the LBS application frequency value corresponding to each LBS application list in the mobile terminal;
根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足所述预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;According to the LBS application frequency value corresponding to each LBS application list, it is judged whether the preset network positioning provider NLP switching condition is satisfied, and when the preset NLP switching condition is satisfied, the LBS application frequency value corresponding to each LBS application list is selected according to the preset rule. Select a target LBS application frequency value;
将所述移动终端的NLP所绑定的网络定位服务切换到所述目标LBS应用频率值所对应LBS应用列表对应的网络定位服务;switching the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value;
其中,所述LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,所述LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新;以及,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。Wherein, the LBS application frequency value represents the frequency at which the LBS application in the corresponding LBS application list initiates the positioning request, and the LBS application frequency value is updated when the LBS application in the corresponding LBS application list initiates the positioning request; and, each LBS application The lists respectively correspond to one type of network location service, and the types of network location services corresponding to different LBS application lists are different.
本发明实施例中提供的移动终端的服务切换方法,获取移动终端中各LBS应用列表对应的LBS应用频率值;根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。通过采用上述技术方案,可以实现移动终端的NLP所绑定的网络定位服务的动态切换,使移动终端中多类LBS应用均有机会可以通过网络定位服务的方式获取位置信息,能够更大程度节省移动终端和定位服务器的资源,提高资源的利用率。In the service switching method for a mobile terminal provided in the embodiment of the present invention, the LBS application frequency value corresponding to each LBS application list in the mobile terminal is obtained; according to the LBS application frequency value corresponding to each LBS application list, it is judged whether the preset network positioning provider NLP is satisfied. Switching conditions, when the preset NLP switching conditions are met, select a target LBS application frequency value from the LBS application frequency values corresponding to each LBS application list according to the preset rules; switch the network location service bound to the NLP of the mobile terminal to The network location service corresponding to the LBS application list corresponding to the target LBS application frequency value. By adopting the above technical solution, the dynamic switching of the network location service bound to the NLP of the mobile terminal can be realized, so that various types of LBS applications in the mobile terminal have the opportunity to obtain location information through the network location service, which can save a greater degree of savings. resources of mobile terminals and positioning servers to improve resource utilization.
附图说明Description of drawings
图1a为本实施例提供的通过SDK访问定位服务器获取位置信息的过程示意图;1a is a schematic diagram of a process for obtaining location information by accessing a positioning server through SDK provided by the present embodiment;
图1b为本发明实施例提供的一种移动终端的服务切换方法的流程示意图;FIG. 1b is a schematic flowchart of a service switching method for a mobile terminal according to an embodiment of the present invention;
图2为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图;2 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图;3 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention;
图4为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图;4 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图;5 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention;
图6为本发明实施例提供的又一种移动终端的服务切换方法的流程示意图;FIG. 6 is a schematic flowchart of still another service switching method for a mobile terminal provided by an embodiment of the present invention;
图7为本发明实施例提供的一种移动终端的服务切换装置的结构框图;7 is a structural block diagram of a service switching device for a mobile terminal according to an embodiment of the present invention;
图8为本发明实施例提供的一种移动终端的结构示意图。FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
具体实施方式Detailed ways
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solutions of the present invention are further described below with reference to the accompanying drawings and through specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, the drawings only show some but not all structures related to the present invention.
在更加详细地讨论示例性实施例之前应当提到的是,一些示例性实施例被描述成作为流程图描绘的处理或方法。虽然流程图将各步骤描述成顺序的处理,但是其中的许多步骤可以被并行地、并发地或者同时实施。此外,各步骤的顺序可以被重新安排。当其操作完成时所述处理可以被终止,但是还可以具有未包括在附图中的附加步骤。所述处理可以对应于方法、函数、规程、子例程、子程序等等。Before discussing the exemplary embodiments in greater detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowchart depicts the steps as a sequential process, many of the steps may be performed in parallel, concurrently, or concurrently. Furthermore, the order of the steps can be rearranged. The process may be terminated when its operation is complete, but may also have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, subroutines, and the like.
LBS应用发起定位请求时通过内部的SDK访问定位服务器,获取用户位置信息。图1a为本实施例提供的通过SDK访问定位服务器获取位置信息的过程示意图。如图1a所示,当用户打开移动终端中某LBS应用,并需要通过LBS应用获取当前位置信息时,用户向移动终端中的LBS应用发起定位请求,LBS应用接受定位请求,并将该定位请求发送给LBS应用中的SDK,其中SDK可以为高德SDK,如高德地图的软件开发工具包,也可以为百度SDK,如百度地图的软件开发工具包,还可以为腾讯SDK,如微信的软件开发工具包,本实施例对此并不做限定。SDK接收到LBS应用发起的定位请求时,扫描网络连接信息以获取移动终端连接的基站信息或WIFI热点信息,并将基站信息或WIFI热点信息与定位请求打包发送给定位服务器。定位服务器根据移动终端当前连接的基站信息或WIFI热点信息计算出移动终端当前的位置信息,并将该位置信息通过SDK发送移动终端,移动终端最终将位置信息反馈给用户。通过SDK访问定位服务器获取位置信息的技术方案浪费了移动终端系统和定位服务器的资源,资源的利用率较低。并且SDK直接访问定位服务器的方式需要时间较长,不能快速响应用户的请求。When the LBS application initiates a positioning request, it accesses the positioning server through the internal SDK to obtain user location information. FIG. 1a is a schematic diagram of a process of obtaining location information by accessing a location server through an SDK according to this embodiment. As shown in Figure 1a, when a user opens an LBS application in the mobile terminal and needs to obtain the current location information through the LBS application, the user initiates a positioning request to the LBS application in the mobile terminal, and the LBS application accepts the positioning request and sends the positioning request Send to the SDK in the LBS application, where the SDK can be the AutoNavi SDK, such as the software development kit of AutoNavi Maps, or the Baidu SDK, such as the software development kit of Baidu Maps, or the Tencent SDK, such as WeChat's A software development kit, which is not limited in this embodiment. When the SDK receives the positioning request initiated by the LBS application, it scans the network connection information to obtain the base station information or WIFI hotspot information connected to the mobile terminal, and packages the base station information or WIFI hotspot information and the positioning request to the positioning server. The positioning server calculates the current location information of the mobile terminal according to the base station information or WIFI hotspot information currently connected to the mobile terminal, and sends the location information to the mobile terminal through the SDK, and the mobile terminal finally feeds back the location information to the user. The technical solution of accessing the positioning server through the SDK to obtain the position information wastes the resources of the mobile terminal system and the positioning server, and the utilization rate of the resources is low. Moreover, the way that the SDK directly accesses the location server takes a long time and cannot respond quickly to the user's request.
为了解决这个问题,提出了如下技术方案:当LBS应用通过SDK发起定位请求时,判断所述SDK对应的网络定位服务类型是否与移动终端的NLP所绑定的网络定位服务类型相同,若相同,则通过调用NLP所绑定的网络定位服务获取位置信息,否则通过SDK与定位服务器通信获取位置信息。由于移动终端的NLP只绑定一种网络定位服务,所以只能使SDK对应的网络定位服务类型与移动终端的NLP绑定的网络定位服务类型相同的一类LBS应用快速获取位置信息,无法使其他类型的LBS应用可以通过网络定位服务获取位置信息,从而无法达到节省移动终端和定位服务器的资源,提高资源利用率的目的。基于以上原因,本发明实施例提供以下移动终端的服务切换方法。In order to solve this problem, the following technical solution is proposed: when the LBS application initiates a positioning request through the SDK, it is judged whether the network positioning service type corresponding to the SDK is the same as the network positioning service type bound to the NLP of the mobile terminal. Then, the location information is obtained by calling the network location service bound to NLP, otherwise, the location information is obtained by communicating with the location server through the SDK. Since the NLP of the mobile terminal is only bound to one type of network location service, only one type of LBS application whose type of network location service corresponding to the SDK is the same as the type of network location service bound to the NLP of the mobile terminal can quickly obtain the location information. Other types of LBS applications can obtain location information through network location services, thus failing to save resources of mobile terminals and location servers and improve resource utilization. Based on the above reasons, the embodiments of the present invention provide the following service switching method for a mobile terminal.
图1b为本发明实施例提供的一种移动终端的服务切换方法的流程示意图,该方法可以由移动终端的服务切换装置执行,其中该装置可由软件和/或硬件实现,一般可集成在移动终端中。如图1b所示,该方法包括:FIG. 1b is a schematic flowchart of a service switching method of a mobile terminal according to an embodiment of the present invention. The method can be executed by a service switching device of the mobile terminal, wherein the device can be implemented by software and/or hardware, and can generally be integrated in the mobile terminal. middle. As shown in Figure 1b, the method includes:
步骤101、获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 101: Obtain the LBS application frequency value corresponding to each LBS application list in the mobile terminal.
在本实施例中,移动终端中可以包含至少两个LBS应用列表。示例性的,某移动终端中包含有三类LBS应用列表,如阿里系LBS应用列表、百度系LBS应用列表及腾讯系LBS应用列表。其中,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。例如,阿里系LBS应用列表对应高德网络定位服务,百度系LBS应用列表对应百度网络定位服务,腾讯系LBS应用对应腾讯网络定位服务。当然,移动终端中还可以包含其他LBS应用列表,如搜狗系LBS应用列表,谷歌系LBS应用列表。本实施例对移动终端中LBS应用列表的种类及数量不做限定。In this embodiment, the mobile terminal may contain at least two LBS application lists. Exemplarily, a mobile terminal includes three types of LBS application lists, such as an Ali-based LBS application list, a Baidu-based LBS application list, and a Tencent-based LBS application list. Wherein, each LBS application list corresponds to one type of network location service, and different LBS application lists correspond to different types of network location services. For example, the Alibaba-based LBS application list corresponds to the AutoNavi network positioning service, the Baidu-based LBS application list corresponds to the Baidu network positioning service, and the Tencent-based LBS application corresponds to the Tencent network positioning service. Of course, the mobile terminal may also include other LBS application lists, such as a Sogou-based LBS application list and a Google-based LBS application list. This embodiment does not limit the type and quantity of the LBS application list in the mobile terminal.
示例性的,可以将内部所配置的SDK对应同一类型的网络定位服务的LBS应用归入同一LBS应用列表中,LBS应用列表对应的网络定位服务类型是该LBS应用列表中的LBS应用的SDK对应的网络定位服务类型。Exemplarily, the LBS applications whose internally configured SDKs correspond to the same type of network location service can be classified into the same LBS application list, and the network location service type corresponding to the LBS application list is the SDK corresponding to the LBS application in the LBS application list. type of network location service.
每个LBS应用列表分别对应一LBS应用频率值,LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新。示例性的,百度系LBS应用列表中的某一个LBS应用发起定位请求时,将百度系LBS应用列表对应的LBS应用频率值更新加1。若百度系LBS应用列表中的N个LBS应用同时发起定位请求时,将百度系LBS应用列表对应的LBS应用频率值更新加N。其中,当某LBS应用发起定位请求时,需要进一步判断该LBS应用对应的LBS应用列表,即判断该LBS应用存在于哪一个LBS应用列表中。示例性的,可以将发起定位请求的LBS应用的包名与移动终端中的各个LBS应用列表一一进行比对,当移动终端中的某个LBS应用列表中包含发起定位请求的LBS应用的包名时,则判定发起定位请求的LBS应用存在于该LBS应用列表中,此时,更新该LBS应用列表对应的LBS应用频率值。再示例性的,可以将发起定位请求的LBS应用通过SDK访问的定位服务器的IP地址与LBS应用列表对应的网络定位服务的定位服务器的IP地址进行比较,以判断发起定位请求的LBS应用与LBS应用列表的。Each LBS application list corresponds to an LBS application frequency value. The LBS application frequency value indicates the frequency of the LBS application in the corresponding LBS application list initiating the positioning request. The LBS application frequency value is set when the LBS application in the corresponding LBS application list initiates the positioning request. renew. Exemplarily, when a certain LBS application in the Baidu-based LBS application list initiates a positioning request, the LBS application frequency value corresponding to the Baidu-based LBS application list is updated and incremented by 1. If N LBS applications in the Baidu series LBS application list initiate a positioning request at the same time, update the LBS application frequency value corresponding to the Baidu series LBS application list by adding N. Wherein, when an LBS application initiates a positioning request, it is necessary to further determine the LBS application list corresponding to the LBS application, that is, determine which LBS application list the LBS application exists in. Exemplarily, the package name of the LBS application that initiates the location request can be compared with each LBS application list in the mobile terminal one by one. When a certain LBS application list in the mobile terminal contains the package of the LBS application that initiates the location request When the name is specified, it is determined that the LBS application that initiates the positioning request exists in the LBS application list, and at this time, the LBS application frequency value corresponding to the LBS application list is updated. In another example, the IP address of the location server accessed by the LBS application that initiates the location request through the SDK can be compared with the IP address of the location server of the network location service corresponding to the LBS application list, to determine the LBS application that initiates the location request and the LBS application. application list.
可选的,按照预定周期或者在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间,获取移动终端中各LBS应用列表对应的LBS应用频率值,也即按照预定周期或者在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间,执行一次步骤101-步骤103的流程。比如,每隔10分钟或者在将任一LBS应用列表对应的LBS应用频率值进行更新之后10分钟时,执行一次步骤101-步骤103的流程。Optionally, obtain the LBS application frequency value corresponding to each LBS application list in the mobile terminal according to a predetermined period or a set time after updating the LBS application frequency value corresponding to any LBS application list, that is, according to the predetermined period or At the set time after the LBS application frequency value corresponding to any LBS application list is updated, the process of
步骤102、根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值。Step 102: Determine whether the preset network positioning provider NLP switching condition is satisfied according to the LBS application frequency value corresponding to each LBS application list, and when the preset NLP switching condition is satisfied, select the LBS application frequency corresponding to each LBS application list according to the preset rule Select a target LBS application frequency value from Value.
可选的,判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Optionally, it is judged whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal, and if so, it is determined that the preset NLP switching condition is satisfied, and the maximum LBS application frequency value is selected as the target LBS application frequency. value.
可选的,判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值以及最大LBS应用频率值的占比是否大于第一预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Optionally, it is judged whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal and whether the ratio of the maximum LBS application frequency value is greater than a first preset threshold, and if so, it is determined that the preset value is satisfied. NLP switching conditions, and select the maximum LBS application frequency value as the target LBS application frequency value.
可选的,判断移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值是否大于第二预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Optionally, determine whether the difference between the two largest LBS application frequency values in the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than a second preset threshold, and if so, determine that the preset NLP switching condition is satisfied, and Select the maximum LBS application frequency value as the target LBS application frequency value.
步骤103、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 103: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
在本实施例中,每个移动终端中均包含有一个NLP,NLP由NLP统一接口和至少一个网络定位服务两部分组成,当包含有多个网络定位服务时,仅使其中一个网络定位服务处于运行状态,其他的网络定位服务处于停止状态。NLP统一接口和处于运行状态的网络定位服务分别运行在两个不同进程中。其中,当LBS应用通过NLP发起定位请求时,通过NLP统一接口将位置信息返回LBS应用,NLP统一接口是提供给应用通过系统的途径获取位置信息的接口。网络定位服务是指网络定位方案商提供的获取移动终端位置信息的解决方案,针对处于运行状态的网络定位服务,创建有一个存储空间,该存储空间用于存放用于NLP统一接口与网络定位服务交互的接口变量,每个接口变量包含多个API(ApplicationProgramming Interface,应用程序编程接口)。当不同的网络定位服务处于运行状态时,其对应的存储空间中存放的接口变量也不同。当NLP统一接口通过远程调用的方法调用处于运行状态的网络定位服务的进程时,从处于运行状态的网络定位服务的存储空间中获取其对应的接口变量。具体的,当LBS应用通过NLP发起定位请求时,NLP统一接口通过远程调用的方法调用处于运行状态的网络定位服务,并从处于运行状态的网络定位服务的存储空间中获取其对应的接口变量,再调用接口变量中的多个API,使API向定位服务器发起定位请求。NLP统一接口通过接口变量接收到定位服务器反馈定位结果,并将该定位结果最终反馈给LBS应用。示例性的,百度提供的网络定位服务通过访问百度的定位服务器获取移动终端的位置信息,并将该位置信息存放在存储空间中。当各LBS应用列表对应的LBS应用频率值满足预设网络定位提供者NLP切换条件时,将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。具体的,当各LBS应用列表对应的LBS应用频率值满足预设网络定位提供者NLP切换条件时,使当前移动终端的NLP所绑定的网络定位服务停止运行,即使当前处于运行状态的网络定位服务停止运行,同时使目标LBS应用频率值所对应LBS应用列表对应的网络定位服务处于运行状态。当然,由于网络定位服务类型的切换,其用于NLP统一接口与网络定位服务交互的接口变量也会相应改变。示例性的,移动终端的NLP所绑定的网络定位服务是百度NLP提供的网络定位服务,而目标LBS应用频率值所对应LBS应用列表对应的网络定位服务是腾讯NLP提供的网络定位服务,当各LBS应用列表对应的LBS应用频率值满足预设网络定位提供者NLP切换条件时,将移动终端的NLP所绑定的百度提供的网络定位服务切换为腾讯提供的网络定位服务。In this embodiment, each mobile terminal includes an NLP, and the NLP is composed of an NLP unified interface and at least one network location service. When multiple network location services are included, only one of the network location services is in the Running state, other network location services are in stop state. The NLP unified interface and the running network location service run in two different processes. Wherein, when the LBS application initiates a positioning request through NLP, the location information is returned to the LBS application through the NLP unified interface, which is an interface provided for the application to obtain the location information through the system. The network location service refers to the solution provided by the network location solution provider to obtain the location information of the mobile terminal. For the network location service in the running state, a storage space is created, and the storage space is used to store the unified interface for NLP and the network location service. Interactive interface variables, each interface variable contains multiple APIs (ApplicationProgramming Interface, application programming interface). When different network location services are running, the interface variables stored in their corresponding storage spaces are also different. When the NLP unified interface invokes the process of the network location service in the running state through the method of remote calling, the corresponding interface variable is obtained from the storage space of the network location service in the running state. Specifically, when the LBS application initiates a positioning request through NLP, the NLP unified interface invokes the running network positioning service through the method of remote calling, and obtains its corresponding interface variable from the storage space of the running network positioning service, Then call multiple APIs in the interface variable, so that the API initiates a positioning request to the positioning server. The NLP unified interface receives the positioning result fed back by the positioning server through the interface variable, and finally feeds the positioning result back to the LBS application. Exemplarily, the network location service provided by Baidu obtains the location information of the mobile terminal by accessing the location server of Baidu, and stores the location information in the storage space. When the LBS application frequency value corresponding to each LBS application list satisfies the preset network positioning provider NLP switching condition, switch the network positioning service bound to the NLP of the mobile terminal to the network corresponding to the LBS application list corresponding to the target LBS application frequency value positioning service. Specifically, when the LBS application frequency value corresponding to each LBS application list satisfies the preset network positioning provider NLP switching condition, the network positioning service bound to the NLP of the current mobile terminal is stopped from running, even if the network positioning service currently in the running state The service stops running, and at the same time, the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value is in the running state. Of course, due to the switching of the network location service type, the interface variables used for the interaction between the NLP unified interface and the network location service will also change accordingly. Exemplarily, the network location service bound to the NLP of the mobile terminal is the network location service provided by Baidu NLP, and the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value is the network location service provided by Tencent NLP. When the LBS application frequency value corresponding to each LBS application list satisfies the preset network positioning provider NLP switching conditions, the network positioning service provided by Baidu bound to the NLP of the mobile terminal is switched to the network positioning service provided by Tencent.
在本实施例中,可以预先为移动终端创建多种网络定位服务,NLP初始与一种网络定位服务相绑定,与NLP相绑定的网络定位服务处于运行状态。在将移动终端的NLP所绑定的网络定位服务切换到另一种网络定位服务时,所切换到的另一种网络定位服务处于运行状态。其中,多种网络定位服务分别对应的类型组成的集合中,包含移动终端中各LBS应用的SDK所对应的网络定位服务类型,即创建的多种网络定位服务包含移动终端中的每个LBS应用的SDK所对应的网络定位服务,以使移动终端中各LBS应用均有机会可以通过网络定位服务的方式获取位置信息。In this embodiment, multiple network location services may be created for the mobile terminal in advance, the NLP is initially bound to one network location service, and the network location service bound to the NLP is in a running state. When the network location service bound by the NLP of the mobile terminal is switched to another network location service, the switched network location service is in a running state. The set of types corresponding to various network location services includes the network location service types corresponding to the SDK of each LBS application in the mobile terminal, that is, the created various network location services include each LBS application in the mobile terminal. The network location service corresponding to the SDK, so that each LBS application in the mobile terminal has the opportunity to obtain location information through the network location service.
本发明实施例提供的移动终端的服务切换方法,获取移动终端中各LBS应用列表对应的LBS应用频率值;根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。通过采用上述技术方案,根据获取的LBS应用频率值,切换移动终端的NLP所绑定的网络定位服务,可以实现移动终端的NLP所绑定的网络定位服务的动态切换,使移动终端中多类LBS应用均有机会可以通过网络定位服务的方式获取位置信息,从而能够更大程度节省移动终端和定位服务器的资源,提高资源的利用率。In the service switching method for a mobile terminal provided by the embodiment of the present invention, the LBS application frequency value corresponding to each LBS application list in the mobile terminal is obtained; according to the LBS application frequency value corresponding to each LBS application list, it is judged whether the preset network positioning provider NLP switching is satisfied When the preset NLP switching conditions are met, select a target LBS application frequency value from the LBS application frequency values corresponding to each LBS application list according to the preset rules; switch the network location service bound to the NLP of the mobile terminal to the target The network location service corresponding to the LBS application list corresponding to the LBS application frequency value. By adopting the above technical solution, according to the obtained LBS application frequency value, the network location service bound to the NLP of the mobile terminal can be switched, so that the dynamic switching of the network location service bound by the NLP of the mobile terminal can be realized, so that there are many types of mobile terminals in the mobile terminal. All LBS applications have the opportunity to obtain location information by means of network location services, thereby saving resources of mobile terminals and location servers to a greater extent and improving resource utilization.
图2为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图,本实施例的方法包括如下步骤:FIG. 2 is a schematic flowchart of another method for switching services of a mobile terminal according to an embodiment of the present invention. The method in this embodiment includes the following steps:
步骤201、在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 201: Acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated.
在本实施例中,当LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新。示例性的,百度系LBS应用列表中的某一个LBS应用发起定位请求时,将百度系LBS应用列表对应的LBS应用频率值更新加1。若百度系LBS应用列表中的N个LBS应用同时发起定位请求时,将百度系LBS应用列表对应的LBS应用频率值更新加N。再示例性的,当5个LBS应用同时发起定位请求,其中,2个LBS应用属于百度系LBS应用列表,1个LBS应用属于腾讯系LBS应用列表,2个LBS应用属于阿里系LBS应用列表,则其分别对应的LBS应用频率值均一一被更新。为了避免当多个LBS应用同时发起定位请求时,获取移动终端中各LBS应用列表对应的LBS应用频率值易发生混乱,从而使得后续网络定位服务切换易出错的情况发生,在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。其中,设定时间和预定周期均可以根据用户需要做适应性调整。In this embodiment, the LBS application frequency value is updated when the LBS application in the corresponding LBS application list initiates a positioning request. Exemplarily, when a certain LBS application in the Baidu-based LBS application list initiates a positioning request, the LBS application frequency value corresponding to the Baidu-based LBS application list is updated and incremented by 1. If N LBS applications in the Baidu series LBS application list initiate a positioning request at the same time, update the LBS application frequency value corresponding to the Baidu series LBS application list by adding N. In another example, when five LBS applications initiate a positioning request at the same time, two LBS applications belong to the Baidu LBS application list, one LBS application belongs to the Tencent series LBS application list, and two LBS applications belong to the Alibaba series LBS application list. Then their corresponding LBS application frequency values are updated uniformly one by one. In order to avoid the confusion of the LBS application frequency values corresponding to the LBS application lists in the mobile terminal when multiple LBS applications initiate location requests at the same time, which makes the subsequent network location service switching prone to errors, when using any LBS application The LBS application frequency value corresponding to each LBS application list in the mobile terminal is acquired at a set time or according to a predetermined period after the LBS application frequency value corresponding to the list is updated. Wherein, both the set time and the predetermined period can be adaptively adjusted according to user needs.
步骤202、根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值。Step 202: Determine whether the preset network positioning provider NLP switching condition is satisfied according to the LBS application frequency value corresponding to each LBS application list, and when the preset NLP switching condition is satisfied, select the LBS application frequency corresponding to each LBS application list according to the preset rule Select a target LBS application frequency value from Value.
步骤203、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 203: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
本实施例提供的移动终端的服务切换方法,通过在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值,能够避免当多个LBS应用同时发起定位请求时,获取移动终端中各LBS应用列表对应的LBS应用频率值易发生混乱,从而使得后续网络定位服务切换易出错的情况发生。The service switching method for a mobile terminal provided in this embodiment acquires the LBS application corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated The frequency value can avoid confusion of the LBS application frequency value corresponding to each LBS application list in the mobile terminal when multiple LBS applications initiate positioning requests at the same time, which makes subsequent network positioning service switching prone to errors.
图3为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图,本实施例的方法包括如下步骤:FIG. 3 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention. The method in this embodiment includes the following steps:
步骤301、在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 301: Acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated.
步骤302、判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Step 302: Determine whether there is a maximum LBS application frequency value in the LBS application frequency value corresponding to each LBS application list in the mobile terminal, and if so, determine that the preset NLP switching condition is satisfied, and select the maximum LBS application frequency value as the target LBS application frequency value. .
在本实施例中,获取移动终端中各LBS应用列表对应的LBS应用频率值后,判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值。当各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值时,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。当各LBS应用列表对应的LBS应用频率值中不存在最大LBS应用频率值时,则确定不满足预设NLP切换条件。示例性的,移动终端中包含有阿里系LBS应用列表、百度系LBS应用列表及腾讯系LBS应用列表三类LBS应用列表,且该三类LBS应用列表对应的LBS应用频率分别为ALiTimer、BaiduTimer、TencentTimer。当ALiTimer、BaiduTimer、TencentTimer大小均不相等时,则判断各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值。当ALiTimer、BaiduTimer、TencentTimer三者大小均相等时,则判断各LBS应用列表对应的LBS应用频率值中不存在最大LBS应用频率值。当ALiTimer、BaiduTimer、TencentTimer中,任意两个相等且大于第三个时,如ALiTimer<BaiduTimer=TencentTimer,需进一步判断移动终端的NLP所绑定的网络定位服是否为最小的LBS应用频率值所对应LBS应用列表对应的网络定位服务,若是,则选取两个最大LBS应用频率值中任意一个作为目标LBS应用频率值,否则可以视为不存在最大LBS应用频率值,无需选取目标LBS应用频率值。In this embodiment, after acquiring the LBS application frequency values corresponding to each LBS application list in the mobile terminal, it is determined whether there is a maximum LBS application frequency value among the LBS application frequency values corresponding to each LBS application list in the mobile terminal. When the maximum LBS application frequency value exists in the LBS application frequency value corresponding to each LBS application list, it is determined that the preset NLP switching condition is satisfied, and the maximum LBS application frequency value is selected as the target LBS application frequency value. When the maximum LBS application frequency value does not exist in the LBS application frequency value corresponding to each LBS application list, it is determined that the preset NLP switching condition is not satisfied. Exemplarily, the mobile terminal includes three types of LBS application lists: Ali-based LBS application list, Baidu-based LBS application list and Tencent-based LBS application list, and the LBS application frequencies corresponding to the three types of LBS application lists are ALiTimer, BaiduTimer, TencentTimer. When the sizes of ALiTimer, BaiduTimer, and TencentTimer are not equal, it is determined that the maximum LBS application frequency value exists in the LBS application frequency values corresponding to each LBS application list. When ALiTimer, BaiduTimer, and TencentTimer are all equal in size, it is determined that the maximum LBS application frequency value does not exist in the LBS application frequency value corresponding to each LBS application list. When any two of ALiTimer, BaiduTimer, and TencentTimer are equal to and greater than the third, such as ALiTimer<BaiduTimer=TencentTimer, it is necessary to further determine whether the network location service bound to the NLP of the mobile terminal corresponds to the minimum LBS application frequency value. The network location service corresponding to the LBS application list, if yes, select any one of the two maximum LBS application frequency values as the target LBS application frequency value, otherwise it can be considered that there is no maximum LBS application frequency value, and there is no need to select the target LBS application frequency value.
步骤303、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 303: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
本实施例提供的移动终端的服务切换方法,通过判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,可以实现移动终端的NLP所绑定的网络定位服务的动态切换,能够使尽可能多的LBS应用可以通过网络定位服务的方式获取位置信息,以实现更大程度的节省移动终端和定位服务器的资源,提高资源的利用率。The service switching method for a mobile terminal provided in this embodiment determines whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal. The LBS application frequency value is used as the target LBS application frequency value, which can realize the dynamic switching of the network location service bound to the NLP of the mobile terminal, and enable as many LBS applications as possible to obtain location information through the network location service, so as to achieve more The resources of the mobile terminal and the positioning server are saved to a great extent, and the utilization rate of the resources is improved.
图4为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图,本实施例的方法包括如下步骤:FIG. 4 is a schematic flowchart of another method for switching services of a mobile terminal according to an embodiment of the present invention. The method in this embodiment includes the following steps:
步骤401、在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 401: Acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated.
步骤402、判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值以及最大LBS应用频率值的占比是否大于第一预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Step 402: Determine whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal and whether the ratio of the maximum LBS application frequency value is greater than a first preset threshold, and if so, determine that the preset NLP is satisfied. Switch conditions, and select the maximum LBS application frequency value as the target LBS application frequency value.
在本实施例中,获取移动终端中各LBS应用列表对应的LBS应用频率值后,判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值。当各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值时,进一步判断最大LBS应用频率值的占比是否大于第一预设阈值。其中,最大LBS应用频率值的占比为最大LBS应用频率值与各LBS应用频率值之和的比值。其中,第一预设阈值的大小可以根据需要做适应性调整。当移动终端中各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值且最大LBS应用频率值的占比大于第一预设阈值时,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,否则不满足预设NLP切换条件。In this embodiment, after acquiring the LBS application frequency values corresponding to each LBS application list in the mobile terminal, it is determined whether there is a maximum LBS application frequency value among the LBS application frequency values corresponding to each LBS application list in the mobile terminal. When the maximum LBS application frequency value exists in the LBS application frequency value corresponding to each LBS application list, it is further determined whether the proportion of the maximum LBS application frequency value is greater than the first preset threshold. The proportion of the maximum LBS application frequency value is the ratio of the maximum LBS application frequency value to the sum of the LBS application frequency values. The size of the first preset threshold may be adaptively adjusted as required. When the LBS application frequency value corresponding to each LBS application list in the mobile terminal has the maximum LBS application frequency value and the proportion of the maximum LBS application frequency value is greater than the first preset threshold, it is determined that the preset NLP switching condition is satisfied, and the maximum LBS application frequency value is selected. The LBS application frequency value is used as the target LBS application frequency value, otherwise the preset NLP switching condition is not satisfied.
可选的,当各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值时,直接进一步判断最大LBS应用频率值是否大于第三预设阈值。其中,第三预设阈值的大小可以根据需要做适应性调整。当移动终端中各LBS应用列表对应的LBS应用频率值中存在最大LBS应用频率值且最大LBS应用频率值大于第三预设阈值时,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,否则不满足预设NLP切换条件。Optionally, when the maximum LBS application frequency value exists in the LBS application frequency value corresponding to each LBS application list, it is directly further judged whether the maximum LBS application frequency value is greater than the third preset threshold. The size of the third preset threshold may be adaptively adjusted as required. When the maximum LBS application frequency value exists in the LBS application frequency value corresponding to each LBS application list in the mobile terminal and the maximum LBS application frequency value is greater than the third preset threshold, it is determined that the preset NLP switching condition is satisfied, and the maximum LBS application frequency is selected. The value is used as the target LBS application frequency value, otherwise the preset NLP switching conditions are not satisfied.
步骤403、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 403: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
本实施例提供的移动终端的服务切换方法,通过判断移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值以及最大LBS应用频率值的占比是否大于第一预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,可以实现移动终端的NLP所绑定的网络定位服务的动态切换,能够在使尽可能多的LBS应用可以通过网络定位服务的方式获取位置信息的同时,可以有效减少移动终端的NLP所绑定的网络定位服务的切换频率,同时实现更大程度的节省移动终端和定位服务器的资源,提高资源的利用率。The service switching method for a mobile terminal provided in this embodiment is determined by judging whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal and whether the proportion of the maximum LBS application frequency value is greater than the first preset value. Threshold, if yes, it is determined that the preset NLP switching conditions are met, and the maximum LBS application frequency value is selected as the target LBS application frequency value, which can realize the dynamic switching of the network location service bound by the NLP of the mobile terminal, and can use as many as possible. The LBS application can obtain location information through the network location service, and at the same time, it can effectively reduce the switching frequency of the network location service bound to the NLP of the mobile terminal. resource utilization.
图5为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图,本实施例的方法包括如下步骤:FIG. 5 is a schematic flowchart of another service switching method for a mobile terminal according to an embodiment of the present invention. The method in this embodiment includes the following steps:
步骤501、在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 501: Acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated.
步骤502、判断移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值是否大于第二预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Step 502: Determine whether the difference between the two largest LBS application frequency values in the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than a second preset threshold, if so, determine that the preset NLP switching condition is satisfied, and select The maximum LBS application frequency value is used as the target LBS application frequency value.
在本实施例中,获取移动终端中各LBS应用列表对应的LBS应用频率值后,判断移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值是否大于第二预设阈值。其中,第二预设阈值为大于零的正整数,且第二预设阈值的大小可以根据需要做适应性调整。当移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值大于第二预设阈值时,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,否则不满足预设NLP切换条件。In this embodiment, after acquiring the LBS application frequency values corresponding to each LBS application list in the mobile terminal, it is determined whether the difference between the two largest LBS application frequency values among the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than the second preset threshold. The second preset threshold is a positive integer greater than zero, and the size of the second preset threshold can be adaptively adjusted as required. When the difference between the two largest LBS application frequency values among the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than the second preset threshold, it is determined that the preset NLP switching condition is satisfied, and the largest LBS application frequency value is selected The frequency value is applied as the target LBS, otherwise the preset NLP switching condition is not satisfied.
步骤503、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 503: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
本实施例提供的移动终端的服务切换方法,通过判断移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值是否大于第二预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值,可以实现移动终端的NLP所绑定的网络定位服务的动态切换,能够在使尽可能多的LBS应用可以通过网络定位服务的方式获取位置信息的同时,进一步有效减少了移动终端的NLP所绑定的网络定位服务的切换频率,同时实现更大程度的节省移动终端和定位服务器的资源,提高资源的利用率。The service switching method for a mobile terminal provided in this embodiment determines whether the difference between the two largest LBS application frequency values in the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than a second preset threshold, and if so, then It is determined that the preset NLP switching conditions are met, and the maximum LBS application frequency value is selected as the target LBS application frequency value, which can realize the dynamic switching of the network location service bound to the NLP of the mobile terminal, and enable as many LBS applications as possible to pass through. While obtaining location information by means of network location services, it further effectively reduces the switching frequency of network location services bound to the NLP of the mobile terminal, and at the same time saves resources of the mobile terminal and the location server to a greater extent and improves the utilization of resources. .
图6为本发明实施例提供的另一种移动终端的服务切换方法的流程示意图,本实施例的方法包括如下步骤:FIG. 6 is a schematic flowchart of another service switching method for a mobile terminal provided by an embodiment of the present invention. The method in this embodiment includes the following steps:
步骤601、在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间或者按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。Step 601: Acquire the LBS application frequency value corresponding to each LBS application list in the mobile terminal at a set time or according to a predetermined period after the LBS application frequency value corresponding to any LBS application list is updated.
步骤602、根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值。Step 602: Determine whether the preset network positioning provider NLP switching condition is satisfied according to the LBS application frequency value corresponding to each LBS application list, and when the preset NLP switching condition is satisfied, select the LBS application frequency corresponding to each LBS application list according to the preset rule Select a target LBS application frequency value from Value.
步骤603、将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。Step 603: Switch the network location service bound to the NLP of the mobile terminal to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value.
步骤604、对于接收到的LBS应用通过SDK发起的定位请求,若该LBS应用所属的LBS应用列表对应的网络定位服务与NLP所绑定的切换后的网络定位服务的类型相同,则通过调用NLP所绑定的切换后的网络定位服务访问定位服务器,以获取移动终端的位置信息。Step 604: For the received positioning request initiated by the LBS application through the SDK, if the network positioning service corresponding to the LBS application list to which the LBS application belongs is of the same type as the switched network positioning service bound by the NLP, then call the NLP by calling the NLP. The bound network location service after the handover accesses the location server to obtain the location information of the mobile terminal.
在本实施例中,当接收到LBS应用发起定位请求时,确定与发起定位请求的LBS应用对应的LBS应用列表,并将与发起定位请求的LBS应用对应的LBS应用列表所对应的LBS应用频率值进行更新。在发起定位请求的LBS应用所对应的LBS应用列表对应的LBS应用频率值进行更新之后的设定时间,获取移动终端中各LBS应用列表对应的LBS应用频率值。当各LBS应用列表对应的LBS应用频率值满足预设网络定位提供者NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值。进一步的,将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务。判断发起定位请求的LBS应用所属的LBS应用列表对应的网络定位服务与NLP所绑定的切换后的网络定位服务的类型是否相同,若相同,则通过调用NLP所绑定的切换后的网络定位服务访问定位服务器,以获取移动终端的位置信息。若不同,则通过发起定位请求的LBS应用内部的SDK访问定位服务器,以获取移动终端的位置信息。In this embodiment, when a positioning request initiated by an LBS application is received, the LBS application list corresponding to the LBS application that initiates the positioning request is determined, and the LBS application frequency corresponding to the LBS application list corresponding to the LBS application that initiates the positioning request is determined. value is updated. At a set time after the LBS application frequency value corresponding to the LBS application list corresponding to the LBS application initiating the positioning request is updated, the LBS application frequency value corresponding to each LBS application list in the mobile terminal is acquired. When the LBS application frequency value corresponding to each LBS application list satisfies the preset network positioning provider NLP switching condition, a target LBS application frequency value is selected from the LBS application frequency value corresponding to each LBS application list according to a preset rule. Further, the network location service bound to the NLP of the mobile terminal is switched to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value. Determine whether the type of the network location service corresponding to the LBS application list to which the LBS application that initiates the location request belongs is the same as the type of the switched network location service bound by the NLP. The service accesses the location server to obtain the location information of the mobile terminal. If not, access the positioning server through the SDK inside the LBS application that initiates the positioning request to obtain the location information of the mobile terminal.
当接收到LBS应用发起定位请求时,确定与发起定位请求的LBS应用对应的LBS应用列表,并将与发起定位请求的LBS应用对应的LBS应用列表所对应的LBS应用频率值进行更新。按照预定周期,获取移动终端中各LBS应用列表对应的LBS应用频率值。当接收到LBS应用发起定位请求的时间点与按照预设周期获取移动终端中各LBS应用列表对应的LBS应用频率值的时间点不重合时,即LBS应用发起定位请求的时间点不是获取移动终端中各LBS应用列表对应的LBS应用频率值的预设周期时间节点,则无需再次进一步判断网络定位服务是否满足切换条件,直接判断发起定位请求的LBS应用所属的LBS应用列表对应的网络定位服务与之前NLP所绑定的切换后的网络定位服务的类型是否相同,若相同,则通过调用当前NLP所绑定的网络定位服务访问定位服务器,以获取移动终端的位置信息。若不同,则通过发起定位请求的LBS应用内部的SDK访问定位服务器,以获取移动终端的位置信息。示例性的,获取移动终端中各LBS应用列表对应的LBS应用频率值的预设周期为15分钟,即每15分钟获取一次移动终端中各LBS应用列表对应的LBS应用频率值。且设定按照预设周期获取移动终端中各LBS应用发起定位请求的起始时间为上午7:00整。则可以理解的是,在7:00、7:15、7:30…等时间点均进行一次移动终端中各LBS应用列表对应的LBS应用频率值的获取。若某LBS应用在上午7:10发起定位请求,则直接判断发起定位请求的LBS应用所属的LBS应用列表对应的网络定位服务与之前NLP所绑定的切换后的网络定位服务的类型是否相同,若相同,则通过调用当前NLP所绑定的网络定位服务访问定位服务器,以获取移动终端的位置信息。若不同,则通过发起定位请求的LBS应用内部的SDK访问定位服务器,以获取移动终端的位置信息。When receiving the location request initiated by the LBS application, determine the LBS application list corresponding to the LBS application initiating the location request, and update the LBS application frequency value corresponding to the LBS application list corresponding to the LBS application initiating the location request. According to a predetermined period, the LBS application frequency value corresponding to each LBS application list in the mobile terminal is acquired. When the time point at which the LBS application initiates the positioning request is not coincident with the time point at which the LBS application frequency value corresponding to each LBS application list in the mobile terminal is obtained according to the preset period, that is, the time point at which the LBS application initiates the positioning request is not the time at which the mobile terminal is obtained The preset cycle time node of the LBS application frequency value corresponding to each LBS application list in the LBS application list, then there is no need to further determine whether the network location service meets the switching conditions, and directly determine the network location service corresponding to the LBS application list to which the LBS application that initiates the location request belongs. Whether the types of the switched network location services bound by the previous NLP are the same, if they are the same, access the location server by calling the network location service bound by the current NLP to obtain the location information of the mobile terminal. If not, access the positioning server through the SDK inside the LBS application that initiates the positioning request to obtain the location information of the mobile terminal. Exemplarily, the preset period for acquiring the LBS application frequency value corresponding to each LBS application list in the mobile terminal is 15 minutes, that is, the LBS application frequency value corresponding to each LBS application list in the mobile terminal is acquired every 15 minutes. And it is set that the starting time for obtaining the positioning request initiated by each LBS application in the mobile terminal according to the preset period is exactly 7:00 in the morning. It can be understood that the acquisition of the LBS application frequency value corresponding to each LBS application list in the mobile terminal is performed once at time points such as 7:00, 7:15, 7:30, etc. If an LBS application initiates a location request at 7:10 am, it is directly determined whether the network location service corresponding to the LBS application list to which the LBS application that initiated the location request belongs is of the same type as the switched network location service bound by the previous NLP. If they are the same, access the location server by calling the network location service bound to the current NLP to obtain the location information of the mobile terminal. If not, access the positioning server through the SDK inside the LBS application that initiates the positioning request to obtain the location information of the mobile terminal.
本实施例提供的移动终端的服务切换方法,通过对于接收到的LBS应用发起的定位请求,若该LBS应用所属的LBS应用列表对应的网络定位服务与NLP所绑定的切换后的网络定位服务的类型相同,则通过调用NLP所绑定的切换后的网络定位服务访问定位服务器,以获取移动终端的位置信息,能够使尽可能多的LBS应用可以通过网络定位服务的方式获取位置信息,实现更大程度的节省移动终端和定位服务器的资源,提高资源的利用率。In the service switching method for a mobile terminal provided by this embodiment, through the received positioning request initiated by the LBS application, if the network positioning service corresponding to the LBS application list to which the LBS application belongs and the switched network positioning service bound to the NLP If the type of the mobile terminal is the same, the location server can be accessed by calling the switched network location service bound by NLP to obtain the location information of the mobile terminal, so that as many LBS applications as possible can obtain location information through the network location service. The resources of the mobile terminal and the positioning server can be saved to a greater extent, and the utilization rate of the resources can be improved.
图7为本发明实施例提供的移动终端的服务切换装置的结构框图,该装置可由软件和/或硬件实现,一般集成在移动终端中,可通过执行移动终端的服务切换方法来对移动终端的网络定位服务进行切换。如图7所示,该装置包括:LBS应用频率值获取模块701、切换条件判断模块702和网络定位服务切换模块703。7 is a structural block diagram of a service switching device for a mobile terminal provided by an embodiment of the present invention. The device can be implemented by software and/or hardware, and is generally integrated in a mobile terminal. Network Location Services to switch. As shown in FIG. 7 , the apparatus includes: an LBS application frequency
其中,LBS应用频率值获取模块701,用于获取移动终端中各LBS应用列表对应的LBS应用频率值;切换条件判断模块702,用于根据各LBS应用列表对应的LBS应用频率值判断是否满足预设网络定位提供者NLP切换条件,在满足所述预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;网络定位服务切换模块703,用于将所述移动终端的NLP所绑定的网络定位服务切换到所述目标LBS应用频率值所对应LBS应用列表对应的网络定位服务;其中,所述LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,所述LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新;以及,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。Wherein, the LBS application frequency
本实施例提供的一种移动终端的服务切换装置,根据获取的LBS应用频率值,切换移动终端的NLP所绑定的网络定位服务,不仅可以使LBS应用发起定位请求时,当所属的LBS应用列表对应的网络定位服务与NLP所绑定的切换后的网络定位服务的类型相同时,直接通过调用NLP所绑定的切换后的网络定位服务访问定位服务器,不仅可以实现移动终端的NLP所绑定的网络定位服务的动态切换,使移动终端中多类LBS应用均有机会可以通过网络定位服务的方式获取位置信息,能够更大程度节省移动终端和定位服务器的资源,提高资源的利用率。The service switching device for a mobile terminal provided in this embodiment switches the network location service bound to the NLP of the mobile terminal according to the acquired LBS application frequency value, which not only enables the LBS application to initiate a location request, but also enables the LBS application to which it belongs when the LBS application initiates a location request. When the network location service corresponding to the list is of the same type as the switched network location service bound by the NLP, directly accessing the location server by calling the switched network location service bound by the NLP can not only realize the NLP binding of the mobile terminal. The dynamic switching of the fixed network location service enables multiple types of LBS applications in the mobile terminal to obtain location information through the network location service, which can save the resources of the mobile terminal and the location server to a greater extent and improve the utilization of resources.
在上述实施例的基础上,所述LBS应用频率值获取模块用于:On the basis of the above embodiment, the LBS application frequency value acquisition module is used for:
按照预定周期或者在将任一LBS应用列表对应的LBS应用频率值进行更新之后的设定时间,获取移动终端中各LBS应用列表对应的LBS应用频率值。The LBS application frequency value corresponding to each LBS application list in the mobile terminal is acquired according to a predetermined period or a set time after the LBS application frequency value corresponding to any LBS application list is updated.
在上述实施例的基础上,所述切换条件判断模块用于:On the basis of the above embodiment, the switching condition judgment module is used for:
判断所述移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。It is judged whether there is a maximum LBS application frequency value in the LBS application frequency value corresponding to each LBS application list in the mobile terminal, and if so, it is determined that the preset NLP switching condition is satisfied, and the maximum LBS application frequency value is selected as the target LBS application frequency value.
在上述实施例的基础上,所述切换条件判断模块用于:On the basis of the above embodiment, the switching condition judgment module is used for:
判断所述移动终端中各LBS应用列表对应的LBS应用频率值中是否存在最大LBS应用频率值以及最大LBS应用频率值的占比是否大于第一预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Judging whether there is a maximum LBS application frequency value in the LBS application frequency values corresponding to each LBS application list in the mobile terminal and whether the ratio of the maximum LBS application frequency value is greater than a first preset threshold, and if so, it is determined to meet the preset NLP switching conditions, and select the maximum LBS application frequency value as the target LBS application frequency value.
在上述实施例的基础上,所述切换条件判断模块用于:On the basis of the above embodiment, the switching condition judgment module is used for:
判断所述移动终端中各LBS应用列表对应的LBS应用频率值中最大的两个LBS应用频率值的差值是否大于第二预设阈值,若是,则确定满足预设NLP切换条件,并选取最大LBS应用频率值作为目标LBS应用频率值。Determine whether the difference between the two largest LBS application frequency values in the LBS application frequency values corresponding to each LBS application list in the mobile terminal is greater than the second preset threshold, if so, determine that the preset NLP switching condition is satisfied, and select the largest The LBS application frequency value is used as the target LBS application frequency value.
在上述实施例的基础上,还包括:On the basis of the above embodiment, it also includes:
定位服务器访问模块,用于对于接收到的LBS应用通过SDK发起的定位请求,若该LBS应用所属的LBS应用列表对应的网络定位服务与NLP所绑定的切换后的网络定位服务的类型相同,则通过调用NLP所绑定的切换后的网络定位服务访问定位服务器,以获取所述移动终端的位置信息。The positioning server access module is used for the received positioning request initiated by the LBS application through the SDK, if the network positioning service corresponding to the LBS application list to which the LBS application belongs is of the same type as the switched network positioning service bound by the NLP, Then, the location information of the mobile terminal is obtained by accessing the location server by invoking the switched network location service bound by the NLP.
本发明实施例提供了一种移动终端,该移动终端中可集成本发明实施例提供的移动终端的服务切换装置。该移动终端包括存储器,处理器及存储在存储器上并可在处理器运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:获取移动终端中各LBS应用列表对应的LBS应用频率值;根据各LBS应用列表对应的LBS应用频率值判断是否满足预设NLP切换条件,在满足所述预设NLP切换条件时,按照预设规则从各LBS应用列表对应的LBS应用频率值中选取一个目标LBS应用频率值;将移动终端的NLP所绑定的网络定位服务切换到目标LBS应用频率值所对应LBS应用列表对应的网络定位服务;其中,LBS应用频率值表示对应LBS应用列表中的LBS应用发起定位请求的频率,LBS应用频率值在对应LBS应用列表中的LBS应用发起定位请求时被更新;以及,各LBS应用列表分别对应一种类型的网络定位服务,并且不同LBS应用列表所对应的网络定位服务的类型不同。An embodiment of the present invention provides a mobile terminal, in which the mobile terminal service switching apparatus provided by the embodiment of the present invention can be integrated. The mobile terminal includes a memory, a processor, and a computer program stored on the memory and executed by the processor. When the processor executes the computer program, the processor implements the following steps: acquiring the LBS application frequency corresponding to each LBS application list in the mobile terminal determine whether the preset NLP switching condition is satisfied according to the LBS application frequency value corresponding to each LBS application list, and when the preset NLP switching condition is satisfied, select from the LBS application frequency value corresponding to each LBS application list according to the preset rule A target LBS application frequency value; the network location service bound by the NLP of the mobile terminal is switched to the network location service corresponding to the LBS application list corresponding to the target LBS application frequency value; wherein, the LBS application frequency value indicates the corresponding LBS application list. The frequency at which the LBS application initiates the location request, the LBS application frequency value is updated when the LBS application in the corresponding LBS application list initiates the location request; and, each LBS application list corresponds to one type of network location service, and different LBS application lists are The corresponding types of network location services are different.
图8为本发明实施例提供的一种移动终端的结构示意图。如图8所示,该移动终端可以包括:壳体(图中未示出)、存储器801、中央处理器(Central Processing Unit,CPU)802(又称处理器,以下简称CPU)、电路板(图中未示出)和电源电路(图中未示出)。所述电路板安置在所述壳体围成的空间内部;所述CPU802和所述存储器801设置在所述电路板上;所述电源电路,用于为所述移动终端的各个电路或器件供电;所述存储器801,用于存储可执行程序代码;所述CPU802通过读取所述存储器801中存储的可执行程序代码来运行与所述可执行程序代码对应的程序。FIG. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention. As shown in FIG. 8 , the mobile terminal may include: a casing (not shown in the figure), a
所述移动终端还包括:外设接口803、RF(Radio Frequency,射频)电路805、音频电路806、扬声器811、电源管理芯片808、输入/输出(I/O)子系统805、触摸屏812、其他输入/控制设备810以及外部端口804,这些部件通过一个或多个通信总线或信号线807来通信。The mobile terminal further includes: a
应该理解的是,图示移动终端800仅仅是移动终端的一个范例,并且移动终端800可以具有比图中所示出的更多的或者更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the illustrated
下面就本实施例提供的用于切换网络定位服务的移动终端进行详细的描述,该移动终端以手机为例。The following will describe in detail the mobile terminal provided in this embodiment for switching network location services, and the mobile terminal is a mobile phone as an example.
存储器801,所述存储器801可以被CPU802、外设接口803等访问,所述存储器801可以包括高速随机存取存储器,还可以包括非易失性存储器,例如一个或多个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
外设接口803,所述外设接口803可以将设备的输入和输出外设连接到CPU802和存储器801。A
I/O子系统809,所述I/O子系统809可以将设备上的输入输出外设,例如触摸屏812和其他输入/控制设备810,连接到外设接口803。I/O子系统809可以包括显示控制器8091和用于控制其他输入/控制设备810的一个或多个输入控制器8092。其中,一个或多个输入控制器8092从其他输入/控制设备810接收电信号或者向其他输入/控制设备810发送电信号,其他输入/控制设备810可以包括物理按钮(按压按钮、摇臂按钮等)、拨号盘、滑动开关、操纵杆、点击滚轮。值得说明的是,输入控制器8092可以与以下任一个连接:键盘、红外端口、USB接口以及诸如鼠标的指示设备。I/
触摸屏812,所述触摸屏812是用户终端与用户之间的输入接口和输出接口,将可视输出显示给用户,可视输出可以包括图形、文本、图标、视频等。The
I/O子系统809中的显示控制器8091从触摸屏812接收电信号或者向触摸屏812发送电信号。触摸屏812检测触摸屏上的接触,显示控制器8091将检测到的接触转换为与显示在触摸屏812上的用户界面对象的交互,即实现人机交互,显示在触摸屏812上的用户界面对象可以是运行游戏的图标、联网到相应网络的图标等。值得说明的是,设备还可以包括光鼠,光鼠是不显示可视输出的触摸敏感表面,或者是由触摸屏形成的触摸敏感表面的延伸。
RF电路805,主要用于建立手机与无线网络(即网络侧)的通信,实现手机与无线网络的数据接收和发送。例如收发短信息、电子邮件等。具体地,RF电路805接收并发送RF信号,RF信号也称为电磁信号,RF电路805将电信号转换为电磁信号或将电磁信号转换为电信号,并且通过该电磁信号与通信网络以及其他设备进行通信。RF电路805可以包括用于执行这些功能的已知电路,其包括但不限于天线系统、RF收发机、一个或多个放大器、调谐器、一个或多个振荡器、数字信号处理器、CODEC(COder-DECoder,编译码器)芯片组、用户标识模块(Subscriber Identity Module,SIM)等等。The
音频电路806,主要用于从外设接口803接收音频数据,将该音频数据转换为电信号,并且将该电信号发送给扬声器811。The
扬声器811,用于将手机通过RF电路805从无线网络接收的语音信号,还原为声音并向用户播放该声音。The
电源管理芯片808,用于为CPU802、I/O子系统及外设接口所连接的硬件进行供电及电源管理。The
上述实施例中提供的移动终端的服务切换装置及移动终端可执行本发明任意实施例所提供的移动终端的服务切换方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本发明任意实施例所提供的移动终端的服务切换方法。The mobile terminal service switching apparatus and mobile terminal provided in the above embodiments can execute the mobile terminal service switching method provided by any embodiment of the present invention, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in the foregoing embodiments, reference may be made to the service switching method for a mobile terminal provided by any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention. The scope is determined by the scope of the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710224409.5ACN106851582B (en) | 2017-04-07 | 2017-04-07 | Service switching method and device of mobile terminal and mobile terminal |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710224409.5ACN106851582B (en) | 2017-04-07 | 2017-04-07 | Service switching method and device of mobile terminal and mobile terminal |
| Publication Number | Publication Date |
|---|---|
| CN106851582A CN106851582A (en) | 2017-06-13 |
| CN106851582Btrue CN106851582B (en) | 2020-06-05 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710224409.5AExpired - Fee RelatedCN106851582B (en) | 2017-04-07 | 2017-04-07 | Service switching method and device of mobile terminal and mobile terminal |
| Country | Link |
|---|---|
| CN (1) | CN106851582B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114629951A (en)* | 2022-03-22 | 2022-06-14 | 康键信息技术(深圳)有限公司 | Address service switching method, apparatus, computer equipment and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9210529B2 (en)* | 2010-04-07 | 2015-12-08 | Apple Inc. | Location-based application program management |
| CN105682031A (en)* | 2016-01-13 | 2016-06-15 | 广东欧珀移动通信有限公司 | A method and device for automatically switching network location services |
| CN105704662A (en)* | 2016-01-13 | 2016-06-22 | 广东欧珀移动通信有限公司 | A method and device for adaptive network positioning |
| CN105792122A (en)* | 2014-12-24 | 2016-07-20 | 深圳市腾讯计算机系统有限公司 | Business positioning method and device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9210529B2 (en)* | 2010-04-07 | 2015-12-08 | Apple Inc. | Location-based application program management |
| CN105792122A (en)* | 2014-12-24 | 2016-07-20 | 深圳市腾讯计算机系统有限公司 | Business positioning method and device |
| CN105682031A (en)* | 2016-01-13 | 2016-06-15 | 广东欧珀移动通信有限公司 | A method and device for automatically switching network location services |
| CN105704662A (en)* | 2016-01-13 | 2016-06-22 | 广东欧珀移动通信有限公司 | A method and device for adaptive network positioning |
| Publication number | Publication date |
|---|---|
| CN106851582A (en) | 2017-06-13 |
| Publication | Publication Date | Title |
|---|---|---|
| CN107835033B (en) | Antenna tuning switch control method and device, terminal equipment and storage medium | |
| CN106851583A (en) | Method and device for acquiring location information of mobile terminal and mobile terminal | |
| CN109982423A (en) | Antenna power method of adjustment, device, storage medium and intelligent terminal | |
| CN107861773A (en) | Management and control method, device, storage medium and mobile terminal for association activation | |
| CN107844342B (en) | Application program keep alive management and control method, device and storage medium and mobile terminal | |
| CN109543400B (en) | Method and equipment for dynamically managing kernel nodes | |
| CN104978176A (en) | Application program interface calling method and device | |
| CN106710535B (en) | Screen backlight adjusting method and device and mobile terminal | |
| CN108829320A (en) | Interaction method, device, storage medium, mobile terminal and interaction system | |
| CN106776385A (en) | A kind of transmission method, device and terminal of log log information | |
| CN107831886B (en) | Control method and device for associated starting application, storage medium and intelligent terminal | |
| CN108093451B (en) | Random access control method, device, storage medium and mobile terminal | |
| CN108681474A (en) | Using preloading method, apparatus, storage medium and terminal | |
| CN107862203A (en) | Control method, device, storage medium and the terminal of application program | |
| CN108933968A (en) | A kind of conversion method of message format, device, storage medium and android terminal | |
| CN107040892B (en) | Position information acquisition method and device of mobile terminal and mobile terminal | |
| CN106953852B (en) | Registration method, device and terminal device for broadcast receiver | |
| CN111314900B (en) | Wireless connection method, wireless connection device and mobile terminal | |
| CN106851593B (en) | A kind of broadcast transmission method, apparatus and terminal | |
| CN106648738B (en) | A separate application management method, device and terminal | |
| CN106936994B (en) | A kind of control method of broadcast recipients, device and mobile terminal | |
| CN106851582B (en) | Service switching method and device of mobile terminal and mobile terminal | |
| CN106791090B (en) | Mobile terminal restart control method and device and mobile terminal | |
| US20140344423A1 (en) | Method, apparatus and system for switching function mode | |
| CN106101361A (en) | The display packing of cell phone address book, device and mobile phone |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| CB02 | Change of applicant information | ||
| CB02 | Change of applicant information | Address after:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before:Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before:GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. | |
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20200605 |