Using Google Maps V2 API Android
By : Wahyu Aditya NugrahaPT.BUZOO INDONESIA
Google Maps V1 for Android deprecated since3rd December 2012.
IT’S TIME TO UPGRADE!
Download Google Play Services SDK Import Google Play Services to Eclipse Generating Google Maps API Key START DEVELOPING
3 Steps to start Upgrading
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
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
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
1. Generating SHA 1 Key Fingerprint
2. Create New Android Key on Google API Console
Generating Google Maps API Key
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
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
Create New Android Key on Google API Console
START DEVELOPING
Set up permission on Manifest
More Features on Google Maps V2 Custom marker Icon Changing Map Type More Zoom Function and Rotating Gesture
Screenshot 2014-01-17 07.47.262014-01-17 07.47.26
Adding marker
Custom marker icon
Changing Map Type
Changing Map Type
More Zooming Function and Rotate Gestures
More Function and Gestures
THANK YOU
Top Related