Device location application programming interface
First Claim
1. A computer-implemented method to provide location information of a mobile device, the method comprising:
- obtaining device location from a primary location module of the mobile device, wherein the primary location module provides the device location information to subsequent application virtual machines when the device location information from the primary source contains valid values for the device location of the mobile device;
determining, by the mobile device, that a battery state for the mobile device is low; and
when the battery state for the mobile device is low, retrieving predetermined values for a second device location from a secondary location module of the mobile device having a preferred power consumption set to low, wherein a single location request collects the device location and the predetermined values from both the primary and secondary location modules without spawning configuration retrieval threads.
6 Assignments
0 Petitions
Accused Products
Abstract
Media, methods and interfaces are provided for interfacing a mobile device and an application virtual machine to provide location information of the mobile device from a secondary source. When location information supplied by a first source to the application virtual machine contains invalid values for device location, a secondary source is utilized to provide the location information. No new processing thread is spawned for collection of back-up source configurations. Thus, interfaces initiate the first and second location determination methods in a single request. The power consumed by the mobile device to retrieve the device location information from a secondary source is reduced by the absence of additional configuration collection threads. Interfaces include a primary location component, a verification component, a backup location component, and a location update component.
9 Citations
19 Claims
-
1. A computer-implemented method to provide location information of a mobile device, the method comprising:
-
obtaining device location from a primary location module of the mobile device, wherein the primary location module provides the device location information to subsequent application virtual machines when the device location information from the primary source contains valid values for the device location of the mobile device; determining, by the mobile device, that a battery state for the mobile device is low; and when the battery state for the mobile device is low, retrieving predetermined values for a second device location from a secondary location module of the mobile device having a preferred power consumption set to low, wherein a single location request collects the device location and the predetermined values from both the primary and secondary location modules without spawning configuration retrieval threads. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A mobile device for providing location information, the mobile device comprising:
-
a primary location module for obtaining device location, wherein the primary location module provides the device location information to subsequent application virtual machines when the device location information from the primary source contains valid values for the device location of the mobile device; and a secondary location module having application programming interfaces with predetermined values that are made available upon determining that the device location obtained from the primary location module is erroneous, wherein a single location request collects the device location and the predetermined values from both the primary and secondary location modules such that vertical or horizontal accuracy requirements for the secondary location module are turned off. - View Dependent Claims (8, 9, 10, 11)
-
-
12. One or more non-transitory computer-storage media having computer-executable instructions stored thereon, that when executed by a computing device having a primary location module and a secondary location module, perform a method of providing location for the computing device, the method comprising:
-
obtaining device location from a primary location module of the computing device, wherein the primary location module provides the device location information to subsequent application virtual machines when the device location information from the primary source contains valid values for the device location of the computing device; determining, by the computing device, that a battery state for the computing device is low or that the device location obtained from the primary location module is erroneous; and when the battery state for the computing device is low or that the device location obtained from the primary location module is erroneous, retrieving predetermined values for a second device location from a secondary location module of the computing device, wherein a single location request collects device location and the predetermined values from both the primary and secondary location modules. - View Dependent Claims (13, 14, 15, 16, 17, 18, 19)
-
Specification