{"id":366,"date":"2012-01-22T17:02:54","date_gmt":"2012-01-23T00:02:54","guid":{"rendered":"http:\/\/dimitrakarakou.gr\/digitalmedia\/?p=366"},"modified":"2022-11-08T15:31:00","modified_gmt":"2022-11-08T22:31:00","slug":"android-experience-about-google-maps-and-md5-key","status":"publish","type":"post","link":"https:\/\/dimitrakarakou.gr\/digitalmedia\/android-experience-about-google-maps-and-md5-key\/","title":{"rendered":"Android experience&#8230; About Google Maps and MD5 Key"},"content":{"rendered":"<p>I want to use Maps on my android application\u2026<\/p>\n<p>I\u00a0 did the following.<\/p>\n<p>Initially, I have to install Google Maps external library in my SDK environment. By default, the Android SDK includes the Google APIs add-on, which in turn includes the Maps external library.<\/p>\n<p>Go Eclipse, I am using eclipse to develop my android app<br \/>\nWindow&#8212;- Select Android SDK Manager to open the Android SDK Manager and download Google API<br \/>\n<a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/AndroidSDK.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-367\" title=\"AndroidSDK\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/AndroidSDK-300x270.jpg\" alt=\"\" width=\"300\" height=\"270\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/AndroidSDK-300x270.jpg 300w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/AndroidSDK.jpg 712w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>I have to modify Manifest file of your application<br \/>\nGive the permission of INTERNET, ACCESS FINE LOCATION and add the =&#8221;com.google.android.maps&#8221; library<\/p>\n<p><a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Manifest.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-376\" title=\"Manifest\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Manifest-300x167.jpg\" alt=\"\" width=\"300\" height=\"167\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Manifest-300x167.jpg 300w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Manifest.jpg 735w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\nTo register for a Maps API Key on Google, you need to provide an MD5 fingerprint of the certificate that you will use to sign your application<br \/>\nFind your MD5 fingerprint<\/p>\n<p>On Eclipse there is a default key, that eclipse use to test and run our android applications It will help us to produce the MD5 fingerprint android<\/p>\n<p>The location of the default key on Eclipse<\/p>\n<p>Go to Window &#8212; Preference Select on the right Android, Build<\/p>\n<p><a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/defaultKey.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-379\" title=\"defaultKey\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/defaultKey-300x231.jpg\" alt=\"\" width=\"300\" height=\"231\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/defaultKey-300x231.jpg 300w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/defaultKey.jpg 722w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Open a cmd and find the location of keytool<\/p>\n<p>Hint : keytool comes with the JDK. If you are using cygwin then this is probably on your path already. Otherwise, you might dig around in your JDK&#8217;s bin folder. I search on program Files folder and I found it : C:\\Program Files\\Java\\jdk1.6.0_29\\bin<br \/>\nWrite on cmd, in my case I wrote<br \/>\nC:\\Users\\Maria&gt;cd C:\\Program Files\\Java\\jdk1.6.0_29\\bin<\/p>\n<p>Wtite keytool and press enter<br \/>\nC:\\Program Files\\Java\\jdk1.6.0_29\\bin&gt;keytool<\/p>\n<p>on the screen will be appeared a lot of information<\/p>\n<p>starting&#8230;.<\/p>\n<p>On the screen it is appeared the following<br \/>\nkeytool usage:<br \/>\ncertreq [-v] [-protected]<br \/>\n[-alias ] [-sigalg ]<br \/>\n[-file &lt;csr_file&gt;] [-keypass ]<br \/>\n[-keystore ] [-storepass ]<br \/>\n&#8230;..<br \/>\n&#8230;..<br \/>\n&#8230;..<\/p>\n<p>Go on by writing:<\/p>\n<p><span style=\"text-decoration: underline;\">keytool -list -keystore C:\\Users\\Maria\\.an<br \/>\ndroid\\debug.keystore<\/span><\/p>\n<p>like this one I wrote<br \/>\nC:\\Program Files\\Java\\jdk1.6.0_29\\bin&gt;keytool -list -keystore C:\\Users\\Maria\\.an<br \/>\ndroid\\debug.keystore<br \/>\nClick enter<\/p>\n<p>It promted you to enter a password<\/p>\n<p>Enter keystore password:<\/p>\n<p>***************** WARNING WARNING WARNING *****************<br \/>\n* The integrity of the information stored in your keystore *<br \/>\n* has NOT been verified! In order to verify its integrity, *<br \/>\n* you must provide your keystore password. *<br \/>\n***************** WARNING WARNING WARNING *****************<\/p>\n<p>Keystore type: JKS<br \/>\nKeystore provider: SUN<\/p>\n<p>Your keystore contains 1 entry<\/p>\n<p>androiddebugkey, 23-Nov-2011, PrivateKeyEntry,<br \/>\nCertificate fingerprint (MD5): <strong>YOUR KEY WILL BE APPEARED HERE.<\/strong><\/p>\n<p>When you get the key click on<br \/>\nhttp:\/\/code.google. com\/android\/maps-api-signup.html<br \/>\nTo register for a Maps API Key, follow these steps: you have to provide the <strong>MD5 key<\/strong><br \/>\nIf you don&#8217;t have a Google account, use the link on the page to set one up.<br \/>\nRead the Android Maps API Terms of Service carefully. If you agree to the terms, indicate so using the checkbox on the screen.<br \/>\nPaste the MD5 certificate fingerprint of the certificate that you are registering into the appropriate form field.<br \/>\nClick &#8220;Generate API Key&#8221; to get your key<\/p>\n<p>This key is good for all apps signed with your certificate whose fingerprint is: <strong>Your Generate API Key for Google Maps<\/strong><\/p>\n<p>You have to be careful when you are using Google Maps<\/p>\n<p>To launching your application you must create a new emulator<br \/>\nYou will use the AVD manager to create a new device with target set to one of the Google APIs<\/p>\n<p><a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/emulator1.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-373\" title=\"emulator\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/emulator1-189x300.jpg\" alt=\"\" width=\"189\" height=\"300\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/emulator1-189x300.jpg 189w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/emulator1.jpg 403w\" sizes=\"(max-width: 189px) 100vw, 189px\" \/><\/a><\/p>\n<p>Right click on you project folder<br \/>\nGo to Project -&gt; Properties -&gt; Android, make sure the Project Build Target you have selected is one of the Google APIs ones (downloaded by the SDK manager under the &#8220;Third-Party Add-Ons&#8221; section).<a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Target.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-374\" title=\"Target\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Target-278x300.jpg\" alt=\"\" width=\"278\" height=\"300\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Target-278x300.jpg 278w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/Target.jpg 633w\" sizes=\"(max-width: 278px) 100vw, 278px\" \/><\/a><\/p>\n<p>Defentely DON\u2019T FORGET TO PUT GOOGLE MAP KEY ON Map view<\/p>\n<p><a href=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/MapView.jpg\"><img decoding=\"async\" loading=\"lazy\" class=\"aligncenter size-medium wp-image-382\" title=\"MapView\" src=\"http:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/MapView-300x119.jpg\" alt=\"\" width=\"300\" height=\"119\" srcset=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/MapView-300x119.jpg 300w, https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-content\/uploads\/2012\/01\/MapView.jpg 612w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Thank you<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to use Maps on my android application\u2026 I\u00a0 did the following. Initially, I have to install Google Maps external library in my SDK environment. By default, the Android SDK includes the Google APIs add-on, which in turn includes the Maps external library. Go Eclipse, I am using eclipse to develop my android app &#8230; <a class=\"more-link366 \" href=\"https:\/\/dimitrakarakou.gr\/digitalmedia\/android-experience-about-google-maps-and-md5-key\/\"><span style=\"font-weight: 900; color: #000; font-family: 'Delius Swash Caps', cursive;\">Take a further walk&#8230;<\/span>  <img decoding=\"async\" class=\"catFootprints366\" src=\"\"><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[78],"tags":[81,23,80,47],"_links":{"self":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/366"}],"collection":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/comments?post=366"}],"version-history":[{"count":13,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/366\/revisions"}],"predecessor-version":[{"id":381,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/posts\/366\/revisions\/381"}],"wp:attachment":[{"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/media?parent=366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/categories?post=366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dimitrakarakou.gr\/digitalmedia\/wp-json\/wp\/v2\/tags?post=366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}