If you were traveling to a new or unfamiliar place then you had to bring a physical map along with you, or at the very least do some research beforehand and be prepared to ask for directions if you ended up getting lost. Maps on mobile devices mean that getting lost is rapidly becoming a thing of the past, as not only does your typical smartphone put a map of the entire world at your fingertips, but it can also track and display your current location, so you can always see exactly where you are on that map.
- Adding a map to your latest Android app project has the potential to greatly improve the user experience – whether you’re creating a Gallery app that lets the user see exactly where each photo was taken;
- The first change you need to make, is declaring Google Maps and Google Location APIs as project dependencies.
- Copy the URL inside this file, and paste it into your web browser. This will take you directly to the Google API Console.
“We’ll start by using Android Studio’s built-in Google Maps template to quickly generate an application that displays a map.”