Professional Documents
Culture Documents
| Mir Pgina 1 de 11
Mir
12 Votes
To use Google Maps in Android using MapView Control we need Google Maps API Key. To get the key we
have to go through the following steps.
Path to debug.keystore
Replace the jdk version with the version installed on your system.
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 2 de 11
Path to keytool.exe
If prompted for a password, try changeit or just press enter key to enter an empty password. This command
will return SHA1 fingerprint. jdk1.7 or higher will return SHA1 by default. Remember the bold and italic text is
the path to the debug.keystore file. You have to provide the path to debug.keystore file on your system.
Secondly the path to the debug.keystore file must be enclosed in double quotes.
We dont need SHA1. we need MD5 fingerprint so either we have to use jdk1.6 or we can use the following
command to generate MD5 finger print using jdk.17.
Copy the MD5 fingerprint. LogIn to your google account (even signing in to gmail will work). Than navigate to
the following url http://code.google.com/android/maps-api-signup.html . Paste your MD5 fingerprint in field
shown in the picture below and click generate api key.
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 3 de 11
Using our MD5 fingerprint to generate the Google Maps API Key
When you click generate button you will be taken to another screen showing your MD5 fingerprint, your
Google Maps API Key and how you can use it in your code to enable Google Maps in Android development.
Mission Accomplished.
If you cant find debug.keystore file in .android folder than follow the link to solve that issue.
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 4 de 11
http://mirnauman.wordpress.com/2012/04/04/cant-find-debug-keystore-in-android-folder-issue-solved/
About these ads
Share this:
59 comments
Comments feed for this article
February 22, 2012 at 8:12 am Great work hey? It was a very easy to
Chirs work through. Looking forward to
building an android app.
Reply
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 5 de 11
May 26, 2012 at 8:12 am thank you so much you saved plenty of
jyo time of mine..very good explanation
Reply
June 21, 2012 at 2:27 pm Thank you Mir i have done the
ahsan code of map its working an mobile but
not running in Emultor.. what will be the
problem please tell me.
I will w8 4 your rly
Reply
Reply
Reply
Grande abrao.
Reply
Reply
July 26, 2012 at 10:27 am dear mir my cmd gives an error keytool
bilal error: java.lang.exception:keystore file
doesnot exist
Reply
Reply
July 26, 2012 at 11:17 am man i found the solution i wasnt in the
bilal administrator mode thanx anyways
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 6 de 11
Reply
Ps. Romulo says something like: what an annoying problem with md5. Thank
you very much. Big hug
Reply
Reply
Reply
November 17, 2012 at 3:25 am Thank you for the very informative
Alican zgren article, it was very helpful.
Reply
Reply
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 7 de 11
plz help me
Reply
Reply
C:\Program Files\Java\jdk1.6.0_19\bin>
This is my MD5 key still im facing the same problem. plz hel me sir
Reply
January 28, 2013 at 1:22 pm Thx! you r GOD! i wasted a lot of time
dyk before a read this!
Reply
January 28, 2013 at 1:45 pm thanks for the compliment, but am not a
Mir GOD. i documented this coz i wasted a
week on figuring this out. am glad its helping
other too. thanks for liking my post.
Reply
Reply
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 8 de 11
June 10, 2013 at 5:40 pm here is the new page for getting google
mohamed dahab map api version 2 :
you just go to service , and all the the taps
near to it
code.google.com/apis/console
Reply
February 21, 2013 at 2:01 pm With the new API v2 you need SHA1
greendog fingerprint, MD5 is not longer possible.
And for generating SHA1 fingerprint is Java
1.7 needed.
Reply
February 21, 2013 at 8:01 pm Good day very cool blog!! Man ..
shopperpress Excellent .. Superb .
. I will bookmark your site and take the
feeds additionally? Im happy to search out so many useful information right
here within the post, we need work out extra strategies in this regard, thank
you for sharing. . . . . .
Reply
February 22, 2013 at 3:05 pm Ive been done all the following steps
Apriandana D.Pribadi but unfortunately the result is
(@iluz7) keytool error: java.lang.RuntimeException:
Usage error, and is not a legal command ,
whats wrong with it ? I use java 1.6 , thanks
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 9 de 11
February 26, 2013 at 8:12 am use java 1.7 as i have written the
Mir tutorials with 1.7. follow the following
tutorial
http://mirnauman.wordpress.com/2012/04/04/cant-find-debug-keystore-in-
android-folder-issue-solved/
it might solve ur issue with keytool
Reply
Reply
Reply
April 15, 2013 at 2:52 pm now plz send latest procedure becuase
sultan this websites change when i click ur
given link it go somwhere else
plz anybody help
Reply
April 26, 2013 at 5:41 am hey Mir I have generate the API key but
lalitkumar it is not Showing map when i published
the app in google play
Reply
May 6, 2013 at 10:36 am the aps developed with google maps api
Mir ver 1.0 will not work with google maps
api ver 2.0.
Google Play has ver 2.0. you need to develop ur app for 2.0.
Reply
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 10 de 11
Reply
May 6, 2013 at 10:34 am update your JRE. than check the bin
Mir folder manually. does it have the
keytool.exe file. than check the android folder
in ur urser folder to see if there is any debug.keystore. if everything is in
place than run the command again. it will work. if not check ur command
specially the paths. there must be something wrong there.
Reply
Reply
Reply
Reply
June 18, 2013 at 11:13 am [] the SHA-1 fingerprint through command prompt.
Our First Android Google Maps The command is explained in detail in the link How to
API Ver 2.0 Application. Getting get Google Maps API Key but there is a simple way to
the Android Google Maps Api Ver find out SHA-1 fingerprint but before we get this
2.0 Key. Part # 2 | Mir fingerprint we need []
Reply
Reply
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013
How to get Google Maps API Key for Android. Issues and Errors Solved. | Mir Pgina 11 de 11
http://mirnauman.wordpress.com/2013/06/18/our-first-android-google-maps-
api-ver-2-0-application-getting-the-android-google-maps-api-ver-2-0-key-
part-2/?preview=true&preview_id=608&preview_nonce=1b2df11a26
Check the link at the bottom of the article, download link for the source code
is available.
Reply
July 8, 2013 at 11:00 pm [] The problem is that the map doesnt load in it just
Goolgle maps isnt loading a map in shows a grid of grey rectangles. I cant see any errors
my app - Tech Forum Network myself but I dont where to look. I have generated the API
key for google maps for my certificate and by debug keystore as countless tutorials and topics on
here suggest. Link 1 []
Reply
https://mirnauman.wordpress.com/2013/06/11/our-first-android-google-maps
-api-ver-2-0-application-part-1/
Reply
July 19, 2013 at 6:48 pm Hi Mir, you are a very decent guy, thank
Nilton Castro you very much!
Reply
L E A V E A R E P LY
http://mirnauman.wordpress.com/2012/01/26/how-to-get-google-maps-api-key-for-an... 08/10/2013