Quick start with the Google Maps Android API

Related tags

App hellomap-android
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...
ImmutablePendingIntent provides mutability safe methods and quick fix
ImmutablePendingIntent provides mutability safe methods and quick fix

ImmutablePendingIntent Overview ImmutablePendingIntent provides methods that create immutability-safe PendingIntent lint to make an error when using m

Google one tap sign in - Flutter Google One Tap Sign In (Android)
Google one tap sign in - Flutter Google One Tap Sign In (Android)

Google One Tap Sign In Google One Tap Sign In (Android) A Flutter Plugin for Google One Tap Sign In Getting Started To access Google Sign-In, you'll n

xCloud player for Google Chromecast with Google TV
xCloud player for Google Chromecast with Google TV

XCTV Player An awesome Microsoft xCloud player for Google Chromecast with Google

Xctvplayer - xCloud player for Google Chromecast with Google TV
Xctvplayer - xCloud player for Google Chromecast with Google TV

XCTV Player An awesome Microsoft xCloud player for Google Chromecast with Google

This application uses Google Play Services Vision library to scan barcodes. It uses Google's on device ML kit to scan for barcodes.
This application uses Google Play Services Vision library to scan barcodes. It uses Google's on device ML kit to scan for barcodes.

Barcode-Scanner This application showcases use of Google Play Services Vision library It uses Google's on device machine learning kit to scan for barc

This Android application demonstrates new splash screen API launched by Google last year.
This Android application demonstrates new splash screen API launched by Google last year.

This Android application demonstrates new splash screen API launched by Google last year.

How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API
How to integrate classic App Shortcuts with Google Assistant through the new Capabilities API

Assistant Shortcuts (App Actions) En este ejemplo, revisaremos el uso de los clásicos Shortcuts de Android repotenciados con Google Assistant, haciend

Auto T-Shirt Shop that uses Google Pay API.
Auto T-Shirt Shop that uses Google Pay API.

GooglePayApp Offer simpler and secure payments with Google Pay Google Pay lets your customers pay with the press of a button—using payment methods sav

AppGooglebooks - This app searches for books using the google books api
AppGooglebooks - This app searches for books using the google books api

AppGooglebooks Aplicativo para exibir informações de livros da API Google Books.

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
Android Package Inspector - dynamic analysis with api hooks, start unexported activities and more. (Xposed Module)

Inspeckage - Android Package Inspector Inspeckage is a tool developed to offer dynamic analysis of Android applications. By applying hooks to function

acpm 2.5k Jan 8, 2023
android-trinity is tiny proactive framework with much of the scaffolding code required to start a new Android Application.

android-trinity This is tiny framework with much of the scaffolding code (with some nice utilities and prepared source code) required to start a new A

Fernando Cejas 49 Nov 24, 2022
Start android project

android-skeleton Start android project Global configuration Use of catalog versions file libs.versions.toml Centralize common module configuration in

Fabien Boismoreau 9 Jun 12, 2022
Android Clean Architecture Kick Start project with MVVM, Coroutine, DI, Caching, Networking.

Android Clean Architecture Kick Start project with MVVM, Coroutine, DI, Caching, Networking Stacks: Clean Architecture MVVVM Local Caching (StoreX) Ne

Romman Sabbir 3 Jun 18, 2022
An android app will start when boot and exit after 1s. Develop for Redmi K40 to enable DC dimming automatically.

An android app will start when boot and exit after 1s. Develop for Redmi K40 to enable DC dimming automatically.

Ovear 4 May 13, 2022
⌨️ A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configuration

⌨️ A tool that gives you a massive head start when building Compose based apps. It saves you from time-consuming setup and configuration

theapache64 467 Dec 23, 2022
A simple textfield for adding quick notes without ads.

Simple Notes A simple textfield for adding quick notes. Need to take a quick note of something to buy, an address, or a startup idea? Then this is the

Simple Mobile Tools 670 Dec 31, 2022
Quick photo and video camera with a flash, customizable resolution and no ads.

Simple Camera A camera with flash, zoom and no ads. The camera is usable for both photo taking and video recording. You can switch between front and r

Simple Mobile Tools 644 Dec 26, 2022
A calculator for quick simple calculations with a nice user interface and no ads

Simple Calculator A calculator with the basic functions and a customizable widget. You can copy the result or formula to clipboard by long pressing it

Simple Mobile Tools 482 Dec 31, 2022
Easy and quick contact management with no ads, handles groups and favorites too.

Simple Contacts A simple app for creating or managing your contacts from any source. The contacts can be stored on your device only, but also synchron

Simple Mobile Tools 621 Dec 26, 2022