Getting API Key
Getting API Key
keystore" -storepass android -keypass android 98:9E:D3:1C:85:60:85:62:54:6C:FE:80:C3:41:20:5D:10:C0:31:F6 1. Generate sha-1: open cmd prompt. provide the path of keytool.exe(program Files->java-> jdk-> bin). Type the command:
keytool.exe -list -v -alias androiddebugkey -keystore "C:\Users\admin\.android\debug.keystore" -storepass android -keypass android
98:9E:D3:1C:85:60:85:62:54:6C:FE:80:C3:41:20:5D:10:C0:31:F6 2. Register with the Google APIs Console: You have to register in the Google APIs Console that you want to use Google Maps for Android. You can reach this console via the following link: Google APIs Console . go to link ->" https://code.google.com/apis/console". sign in with ur gmail id and password. Select here the Services entry.(towards left side). Activate the Google Maps Android API v2. You need later to register your application via its package in this console together with the SHA-1 fingerprint of your signature key. For this you select the entry and click on the API Access entry. Afterwards click on the Create new Android key... entry. Enter your SHA-1 fingerprint and the package of your application separated by a semicolon.
Package name.
Add the following elements to your manifest. Replace com.example.mapdemo with the package name of your application.
android.permission.INTERNET Used by the API to download map tiles from Google Maps
servers.
com.google.android.providers.gsf.permission.READ_GSERVICES Allows the API
6. Import android code into workspace..(google play services) and use this as ur library project.