Download - [Android] using google maps v2 api

Transcript
Page 1: [Android] using google maps v2 api

Using Google Maps V2 API Android

By : Wahyu Aditya NugrahaPT.BUZOO INDONESIA

Page 2: [Android] using google maps v2 api

Google Maps V1 for Android deprecated since3rd December 2012.

IT’S TIME TO UPGRADE!

Page 3: [Android] using google maps v2 api

Download Google Play Services SDK Import Google Play Services to Eclipse Generating Google Maps API Key START DEVELOPING

3 Steps to start Upgrading

Page 4: [Android] using google maps v2 api

Google made new Maps V2 API as a part of Google Play Services SDK.

So before we start developing maps we need to download google play services from SDK manager.

Download Google Play Services

Page 5: [Android] using google maps v2 api

Open Eclipse ⇒ Windows ⇒ Android SDK Manager

Check whether you have already downloaded Google Play Services or not under Extras section. If not select play services and install the package.

Download Google Play Services

Page 6: [Android] using google maps v2 api

After downloading play services we need to import it to Eclipse which will be used as a library for our maps project.

You can locate play services library project fromandroid-sdk-windows\extras\google\google_play_services\libproject\google-play-services_lib

Importantly while importing check Copy projects into workspace

Import Google Play Services

Page 7: [Android] using google maps v2 api

1. Generating SHA 1 Key Fingerprint

2. Create New Android Key on Google API Console

Generating Google Maps API Key

Page 8: [Android] using google maps v2 api

On Windows

keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android

On Linux or Mac

keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android

Output :

Generating SHA1 Key Fingerprint

Page 9: [Android] using google maps v2 api

Open Google API Console and Select Services on The Left Side

Select API Access and Choose Create New Android Key

Create New Android Key on Google API Console

Page 10: [Android] using google maps v2 api

Create New Android Key on Google API Console

Page 11: [Android] using google maps v2 api

START DEVELOPING

Page 12: [Android] using google maps v2 api

Set up permission on Manifest

Page 13: [Android] using google maps v2 api
Page 14: [Android] using google maps v2 api
Page 15: [Android] using google maps v2 api
Page 16: [Android] using google maps v2 api

More Features on Google Maps V2 Custom marker Icon Changing Map Type More Zoom Function and Rotating Gesture

Page 17: [Android] using google maps v2 api

Screenshot 2014-01-17 07.47.262014-01-17 07.47.26

Adding marker

Page 18: [Android] using google maps v2 api

Custom marker icon

Page 19: [Android] using google maps v2 api

Changing Map Type

Page 20: [Android] using google maps v2 api

Changing Map Type

Page 21: [Android] using google maps v2 api

More Zooming Function and Rotate Gestures

Page 22: [Android] using google maps v2 api

More Function and Gestures

Page 23: [Android] using google maps v2 api

THANK YOU