Adding Google Maps Layer: Difference between revisions

From Earlham CS Department
Jump to navigation Jump to search
Jrhurst08 (talk | contribs)
Created page with "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 ~/.androi..."
 
Jrhurst08 (talk | contribs)
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
It turns out that every individual instance of posit that is
*Run the following command in a terminal:
compiled requires its own api key. This is generated by the following  
        $ keytool -list -keystore ~/.android/debug.keystore
command:
*Sign up for the google maps service at this link with:
 
        http://code.google.com/android/maps-api-signup.html
$ keytool -list -keystore ~/.android/debug.keystore
*Replace the following line in positx/res/layout/map_main.xml:
 
         android:apiKey="0bvEMJ9m96_er-z_dr1wcZjsucPYBoUZMjI-RQw" />
And signing up for the google maps service at this link:
with:
 
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" />
         android:apiKey="YOUR-GENERATED-KEY" />
*Build and Run

Latest revision as of 15:29, 20 April 2012

  • Run the following command in a terminal:
        $ keytool -list -keystore ~/.android/debug.keystore
  • Sign up for the google maps service at this link with:
        http://code.google.com/android/maps-api-signup.html
  • Replace the following line in positx/res/layout/map_main.xml:
        android:apiKey="0bvEMJ9m96_er-z_dr1wcZjsucPYBoUZMjI-RQw" />

with:

        android:apiKey="YOUR-GENERATED-KEY" />
  • Build and Run