Implement Google Maps In Your Android App

Introduction

Android is one of the most popular operating systems for mobile. Google maps is used to find out the shortest path between the source and destination. I will show you how to implement google maps in your android application using android studio. Android is the kernel based operating system. It allows the user to modify the GUI components and source code.

Requirements

Steps should be followed

Carefully follow my steps to implement google maps in your android application using android studio.

Step 1

Open the android studio start the new project.

Android

Step 2

Put the application name and company domain. If u wish to use c++ for coding the project , mark the Include c++ support then click next.

Android

Step 3

Select the android minimum SDK. After you chose the minimum SDK it will show approximate percentage of people who use that sdk then click next.

Android

Step 4

Choose the basic activity then click next.

Android

Step 5

Put the activity name and layout name. Android studio basically takes the java class name as what you provide for the activity name and click finish.

Android

Step 6

Go to the google developer console and sign in through your Gmail id. Create a new project and put your app name as project name.

Link: https://console.developers.google.com

Android

Step 7

Notification bar indicates the project creation and click the project.

Android

Step 8

Click the API manager part and go to credentials.

Android

Step 9

Create credentials and click the API key option.

Android

Step 10

API key generated after restricting the API key for your app through the app package name and SHA-1 value. Put your app package name and SHA-1 value and click save.

Android

Step 11

Enable the google map android API and click enable option.

Android

Step 12

Paste your API key into the google_map_api.xml file.

Android

Step 13

AndroidManifest.xml was automatically updated after you pasted your API key.

Android

Step 14

Click the make project option and run it.

Android

Deliverables

Here google maps in your android application is successfully created and executed.

Android

Don’t forgot to like and follow me. If you have any doubts just commend below.

Up Next
    Ebook Download
    View all
    Learn
    View all