Adding Google Maps Layer: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Jrhurst08 (talk | contribs)
No edit summary
Jrhurst08 (talk | contribs)
No edit summary
Line 5: Line 5:
         $ keytool -list -keystore ~/.android/debug.keystore
         $ keytool -list -keystore ~/.android/debug.keystore


And signing up for the google maps service at this link:
When prompted for a password, you can simply hit Enter. And signing up for the google maps service at this link:


         http://code.google.com/android/maps-api-signup.html
         http://code.google.com/android/maps-api-signup.html

Revision as of 15:14, 20 April 2012

It turns out that every individual instance of posit that is compiled requires its own api key. This is generated by the following command:

        $ keytool -list -keystore ~/.android/debug.keystore

When prompted for a password, you can simply hit Enter. And signing up for the google maps service at this link:

        http://code.google.com/android/maps-api-signup.html

This process will generate the needed key that should then replace the following line in the file, map_main.xml under the res/layout directory:

        android:apiKey="SOME-KEY" />

replace with

        android:apiKey="YOUR-GENERATED-KEY" />