[go: up one dir, main page]

0% found this document useful (0 votes)
112 views2 pages

Location Apis: Key Developer Features

The location APIs in Android make it easy to build location-aware applications without needing to focus on the underlying location technology details. The APIs include a fused location provider that intelligently manages location sources to provide the best and most power-efficient location for applications. The geofencing and activity recognition APIs allow applications to set up geographic boundaries and detect user activities with optimized battery usage.

Uploaded by

diti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
112 views2 pages

Location Apis: Key Developer Features

The location APIs in Android make it easy to build location-aware applications without needing to focus on the underlying location technology details. The APIs include a fused location provider that intelligently manages location sources to provide the best and most power-efficient location for applications. The geofencing and activity recognition APIs allow applications to set up geographic boundaries and detect user activities with optimized battery usage.

Uploaded by

diti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

Location APIs

The location APIs make it easy for you to build location-aware applications, without needing to focus on the details of the underlying location technology. They also let you minimize power consumption by using all of the capabilities of the device hardware. To get started, first set up the oogle Play services !"#. $ou can learn how to use the APIs in the training class %aking $our App &ocation Aware, and details are available in the &ocation API reference.

Key Developer Features


Fused location provider The 'used &ocation Provider intelligently manages the underlying location technology and gives you the best location according to your needs.

Simple APIs( &ets you specify high-level needs like )high accuracy) or )low power), instead of having to worry about location providers. Immediately available( ives your apps immediate access to the best, most recent location. Power-efficiency( %inimizes your app*s use of power. +ased on all incoming location re,uests and available sensors, fused location provider chooses the most efficient way to meet those needs. Versatility( %eets a wide range of needs, from foreground uses that need highly accurate location to background uses that need periodic location updates with negligible power impact.

Geofencing APIs

&ets your app setup geographic boundaries around specific locations and then receive notifications when the user enters or leaves those areas.

Simple but powerful APIs( Allows batch addition and removal of geofences. Ability to manage multiple geofences at the same time. Ability to filter alerts for both entry and e-it or entry only or e-it only. Optimized for battery( Ad.usts location updates based on user/s pro-imity to the geofence and user/s modality 0still, walking, driving, and so on1.

Activity recognition 2ith apps becoming increasingly conte-tual, understanding what the user is doing is critical to surfacing the right content. The Activity recognition API makes it easy to check the user/s current activity3still, walking, cycling, and in-vehicle3with very efficient use of the battery.

Optimized for battery( 4ses low-power sensors to recognize the user*s current physical activity. Enhances other services with context( reat for adding movement awareness to location awareness. Apps can ad.ust the amount of location awareness they provide, based on the current user movement. 'or e-ample, a navigation app can re,uest more fre,uent updates when the user is driving. eatures for advanced applications( 'or advanced applications that want to do their own post-processing, this API also makes available confidence values for each of the activities. It also includes two activities that indicate unreliable measurements( unknown and tilt.

5-cept as noted, this content is licensed under 6reative 6ommons Attribution 7.8. 'or details and restrictions, see the 6ontent &icense. About Android 9 &egal 9 !upport

You might also like