O'Reilly logo

Xamarin Mobile Application Development for Android - Second Edition by Nilanchala Panigrahy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 9. Making POIApp Location Aware

One of the most interesting aspects of mobile development is interacting with device capabilities such as motion sensors, cameras, and location sensors. Such features are contextual for most applications and carry a great deal of value to the users. In this chapter, we will walk you through adding location awareness to POIApp. We will cover the following topics:

  • Setting application permissions
  • Obtaining the current longitude and latitude
  • Obtaining the address for a longitude and latitude
  • Calculating the distance between two geo points
  • Displaying a POI within the map app

Working with location services

Integrating the location service in the Android platform is more complicated than it looks.

You need to consider ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required