Quick start with the Google Maps Android API

Overview

Please note: This repository is not currently maintained, and is kept for historical purpose only. You can find an up to date tutorial here: https://github.com/googlemaps/android-samples/tree/master/tutorials/MapWithMarker


A fast way to get started with the Google Maps Android API v2. Analytics

Current version of library dependencies:

  • Google Play Services Maps 8.4.0

TOC

Requirements

Java Development Kit (JDK) Download

Android SDK Download

Android Studio

Download Android Studio

Download Android Studio (http://developer.android.com/sdk/index.html)

Open the project

  1. On the welcome screen, select "Open an existing Android Studio project" or if you have a project open, choose "File->Open...""
  2. Navigate to the checked out project
  3. Press "Ok"

Add your API key

  1. Navigate to google_maps_api.xml
  2. Replace "your_api_key" with an API key generated using [these instructions] (https://developers.google.com/maps/documentation/android/start#the_google_maps_api_key)

Run the app

  1. Ensure your phone is in plugged in, developer mode enabled and screen unlocked
  2. Press the green arrow, or choose Run>Run

Troubleshooting

I see a grey map

Follow the instructions under "Add your API key" and try again. The logcat output will also provide useful information if there is a configuration issue with the package name, signing certificate or API key.

Bitdeli Badge

You might also like...
A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar
A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar

#Android-LollipopShowcase This is a simple showcase to show off Android's all new Material Design and some other cool new stuff which is (new) in Andr

A sample project which can be used as a base in order to develop Media Library applications for Android TV.  Follow the series of blogs starting at http://www.malmstein.com/blog/2014/10/21/building-applications-for-android-tv/ in order to keep up to date with the process A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar
A simple app to showcase Androids Material Design and some of the cool new cool stuff in Android Lollipop. RecyclerView, CardView, ActionBarDrawerToggle, DrawerLayout, Animations, Android Compat Design, Toolbar

#Android-LollipopShowcase This is a simple showcase to show off Android's all new Material Design and some other cool new stuff which is (new) in Andr

simple android grocery app using kotlin and android studio
simple android grocery app using kotlin and android studio

Project Idea The idea of this project is to make a grocery android app that users can use to order the groceries they want. It doesn't contain any bac

Beetlebug is an open source insecure Android application with CTF challenges built for Android Penetration Testers and Bug Bounty hunters.
Beetlebug is an open source insecure Android application with CTF challenges built for Android Penetration Testers and Bug Bounty hunters.

Beetlebug Beetlebug is a beginner-friendly Capture the Flag Android application that aims to inspire interest in Mobile Application Security. It is ge

Do's and Don'ts for Android development, by Futurice developers
Do's and Don'ts for Android development, by Futurice developers

Best practices in Android development Avoid reinventing the wheel by following these guidelines. Lessons learned from Android developers in Futurice.

Learning RxJava for Android by example

Learning RxJava for Android by example This is a repository with real-world useful examples of using RxJava with Android. It usually will be in a cons

A sample Android app which showcases advanced usage of Dagger among other open source libraries.
A sample Android app which showcases advanced usage of Dagger among other open source libraries.

U+2020 A sample Android app which showcases advanced usage of Dagger among other open source libraries. Watch the corresponding talk or view the slide

Proguard configurations for common Android libraries

android-proguard-snippets Example Proguard configurations for common Android libraries. This project assumes that your ProGuard configuration is based

Comments
  • Updated project to better support Android Studio

    Updated project to better support Android Studio

    • Migrated to Android Studio project structure
    • Updated Google Play Services dependency to google-play-services-maps:8.4.0
    • Removed reference to support library
    • Removed references to Eclipse from README
    opened by ankurkotwal 3
  • Map is crashed when zooming in/out at special location

    Map is crashed when zooming in/out at special location

    I got this Stackoverflow logcat when trying to zoom in/out after searching this special location "Tokyo Station JR Express Bus Terminal". the logcat:

    07-20 19:06:11.376 10013-11234/my package:  E/AndroidRuntime: FATAL EXCEPTION: ibs
                                                                                  Process:my package, PID: 10013
    

    Device information: Model: P024 Android version: 5.0.2 Map: google-maps-sdk-m4b.arr

    opened by huunam118 0
  • Android studio instructions in README

    Android studio instructions in README

    I see the README includes instructions for getting this project started and working in both Eclipse and IntelliJ. I was wondering if instructions could be added for getting the project working in Android Studio as I have not been able to get it working. Thanks!

    opened by PatMyron 0
Owner
Google Archive
Where old projects go to retire. All projects here are completely frozen, though feel free to fork and continue using them on your own.
Google Archive
Google Play game services - Android samples

Google Play game services - Android Samples Copyright (C) 2014 Google Inc. Contents These are the Android samples for Google Play game services. Colle

Google Play Game Services 952 Dec 27, 2022
Android samples for Google Workspace APIs

Google Workspace Android Samples A collection of samples that demonstrate how to call Google Workspace APIs from Android. Products Drive Deprecation A

Google Workspace 617 Jan 8, 2023
This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...

Android L preview example Description This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shad

Saul Molinero 165 Nov 10, 2022
This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shadows etc...

Android L preview example Description This project is focused on the sample using the API's new preview version of Android-L, use of transitions, shad

Saul Molinero 165 Nov 10, 2022
Viacheslav Veselov 0 Jul 8, 2022
👨‍💻 A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Open Sky API. ✈️ 🌍

A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Open Sky API.

Ismail Oguzhan Ay 13 Dec 4, 2022
A demonstration modern Android development project with Jetpack(Compose, Room, Flow, ViewModel, Navigation), Hilt and based on MVVM by using Github API.

A demonstration modern Android development project with Jetpack(Compose, Room, ViewModel, Navigation), Hilt and based on MVVM by using Github API.

Murat 2 Apr 11, 2022
Movies App with Movies API

MoviesApp-Android ?? Movies app with MoviesApp API. Here i demonstrate the use of Modern Android development tools - (Kotlin, Architecture Components,

Arvind Meshram 17 Dec 12, 2022
A Demo App which demonstrate the capabilities for BeVigil OSINT demo API

BeVigil-OSINT-Demo A Demo App which demonstrate the capabilities for BeVigil OSINT demo API Functionalities Firebase Authentication

Daniel Dominic 0 May 17, 2022
Quality-Tools-for-Android 7.5 0.0 L5 Java This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android platform.

Quality Tools for Android This is an Android sample app + tests that will be used to work on various project to increase the quality of the Android pl

Stéphane Nicolas 1.3k Dec 27, 2022