Android Google Maps Simple Usage — Initial Project with Map

Laurence Liu
2 min readNov 15, 2018

--

Create an App with Map is much easier than before

About five or six years ago, Android Studio still in the beta version. Most of Android developers chose to use Eclipse with plugin to build their App. Until the first stable build was released in December 2014. After this, creating an App with Google Map seems not so hard due to the fact that Google also update the user interface of GCP(Google Cloud Platform).

Create a project with Google Maps

First, choosing Google Map Activity when we start our project.

Don’t rush to compile the App, or we’ll get a blank screen. We have to set this App to GCP to get the key like below.

Note: google_map_api.xml located at app/res/values/google_maps_api.xml or we could choose to use command + shift + f to find it.

google_map_api.xml
Setting on GCP

We could run our App after we copy the key to google_map_api.xml. And we will get this.

It’s quite simple to generate an App with a blank Map. So I will write about how to set custom marker and draw route in next chapter.

--

--

Laurence Liu
Laurence Liu

No responses yet