Book Image

Learning Android Google Maps

Book Image

Learning Android Google Maps

Overview of this book

This book helps you to overcome the most common problems faced by users and helps you create a successful map application without any hassle. The book starts with a brief description of how to set up an environment and obtain an API key to create your map application. This book will teach you about adding markers, overlays, and information windows to the map in detail. You will then dive deep into customizing various types of maps and working with location data and Google Street view. By the end of this book, you will be able to create succinct map applications in Android using Google maps efficiently.
Table of Contents (18 chapters)
Learning Android Google Maps
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Registering in the Google Developer Console


Registration is one of the most important steps in our process. Our application will not function without obtaining an API key from the Google Developer Console. Follow these steps to obtain the API key:

  1. Open the Google Developer Console from https://console.developers.google.com. Click on the Create Project button.

  2. A new dialog box will appear. Give your project a name and a unique project ID. Then, select Create:

  3. As soon as your project is created, you will be redirected to the project dashboard. On the left-hand side, under the APIs & auth section, select APIs.

  4. Then, scroll down and enable Google Maps Android API v2:

  5. Next, under the same APIs & auth section, select Credentials. Now, select Create new key under Public API access, and then select Android key as shown in the following dialog:

  6. In the next window, enter the SHA1 fingerprint we noted in our previous section followed by a semicolon and the package name of the Android application...