O'Reilly logo

Xamarin Mobile Application Development for Android by Mark Reynolds

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 7. Making POIApp Location Aware

One of the most interesting aspects for mobile development is interacting with device capabilities such as motion sensors, cameras, and location sensors. While these capabilities are new and fun to many developers, they can also bring a great deal of value to the users of our mobile apps. In this chapter, we will walk through adding location awareness to POIApp including 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 locations
  • Displaying a POI within the map app

Location services

While working with location services on the Android platform, you will primarily work with an instance ...

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