Sunday 10 February 2013

Google Map integration in android application (How to customize google map in android application )


GOOGLE MAPS CUSTOMIZATION IN ANDROID APPLICATION
1- In order to obtain the Google Maps API key, you must use the “keytool” command from your JDK installation referencing to your “debug.keystore” to obtain a fingerprint:
Type this command on Command Prompt -
"C:\Program Files\Java\jdk1.6.0_26\bin\keytool.exe" -list -keystore debug.keystore -storepass android -keypass android
output -
Keystore type: JKS
Keystore provider: SUN
Your keystore contains 1 entry
androiddebugkey, Jan 16, 2013, PrivateKeyEntry,
Certificate fingerprint (MD5): C9:C9:BB:78:35:FF:BA:18:42:DD:45:12:EB:82:9E:92
NOTE -:
Getting Fingerprint key for Fedora or ubantu(Linux version)
Type this command on the terminal of Fedora:-
[Vishal_Garg@a1-technology ~]$ keytool -list -alias androiddebugkey -keystore ~/.android/debug.keystore -storepass android -keypass android
OUTPUT-
.android/debug.keystore -storepass android -keypass android
androiddebugkey, Jan 25, 2013, PrivateKeyEntry,
Certificate fingerprint (MD5): C9:C9:BB:78:35:FF:BA:18:42:DD:45:12:EB:82:9E:92


2- Copy this certificate key .

3-  SIGN UP on Google Maps Android v1 .

4- Past the MD5 key into the text box for generation of Google API Key.

 .
Now Google will generate the key for Google Map for android app's that looks like this.
0eCrlXNBY0KG0f618lf9XlYpqLdBLAx1tljSV5g
3- Copy this key and paste it into the
<com.google.android.maps.MapView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0eCrlXNBYTGTGprtlEqLdb65Ax1tljSV5g"
/>

4- Use the following link for coding to implement the google map in android application and follow all the imstruction to complete the project of google map.

http://www.chupamobile.com/tutorial/details/53




No comments:

Post a Comment