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 ...

Get Xamarin Mobile Application Development for Android - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.