Android Google Map Example
1.To integrate with Google maps application you need to apply for a free Google Map API Key.
2.To get the Google Map API Key you need to sign up for the Android Maps API.
3.To sign up, you will need to provide the certificate's fingerprint (MD5).
4.If you have a certificate fingerprint (MD5)
and get the API Key.
To get certificate fingerprint (MD5) follow the simple steps below:
1.To integrate with Google maps application you need to apply for a free Google Map API Key.
2.To get the Google Map API Key you need to sign up for the Android Maps API.
3.To sign up, you will need to provide the certificate's fingerprint (MD5).
4.If you have a certificate fingerprint (MD5)
and get the API Key.
To get certificate fingerprint (MD5) follow the simple steps below:
- You need to get the keystore file for getting the certificate fingerprint (MD5).
- Your keystore file can be found at the following path
"C:\Documents and Settings\<username>\Local Settings\Application Data\Android"
(Or)
"C:\Documents and Settings\<username>\.android"
SOURCE CODE
main.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<com.google.android.maps.MapView
android:id="@+id/mapView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:enabled="true"
android:clickable="true"
android:apiKey="056mRQ2iioMKqXlXQ9O4PdhQgQhpb4QZ89_jQsw"/>
</RelativeLayout>
you have to add apikey in main.xml
and in android manifest file you have to add this line inside application tag
<uses-library android:name="com.google.android.maps" />
im facing problem with api key generation on google api key genretion sign up page
ReplyDeletehow i solve this problem
ReplyDeleteThe fingerprint that you entered is not valid. Please press the Back button on your browser and enter a valid certificate fingerprint.
Helloo Vishal,,
ReplyDeleteare u using JAVA 7?
keytool -list -v -alias androiddebugkey -keystore C:\Users\\.android\debug.keystore -storepass android -keypass android
ReplyDeleteUse this comment for generating MD5 .
hi vijay .. i am new to android ..your blog is so nice to learn...and can you give idea or code for downloading pdf file from web browser and also to store it in emulator's sd card...thanks in advance...
ReplyDelete