Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>For setting up Google Maps API v2 on Android, make sure that you have completed <strong>all</strong> of the following steps.</p> <p><strong>App Key For API Access</strong></p> <p>When Google asks for the SHA1 fingerprint of your app certificate, you will want most likely want to run this twice, once for your debuging certificate, and once for your publishing certificate.</p> <blockquote> <p>keytool -list -v -keystore publishcert.keystore<br/> keytool -list -v -keystore ~/.android/debug.keystore</p> </blockquote> <p><i>The fingerprint of the app on the market is different then the fingerprint of an app that you are just testing!</i></p> <p><strong>Enable the service on the Google API Console</strong></p> <p>Login to the <a href="https://code.google.com/apis/console/" rel="nofollow">Google API Console</a>.<br/> On the services page, find <code>Google Maps Android API v2</code>.</p> <p><strong><em>Note</em></strong> - <code>Google Maps API v2</code> is <strong>DIFFERENT</strong> then <code>Google Maps Android API v2</code></p> <p>In the API Access tab, click <code>Create new Android Key</code></p> <p>Add your certificate signatures for access to the APIs.</p> <blockquote> <p>yourrelease-fingerprint;com.example.project.package<br/> yourdebug-fingerprint;com.example.project.package<br/></p> </blockquote> <p>You will be provided with a generated API Access Key.</p> <p><i>You may need to first create an API Project in the API Console</i></p> <p><strong>Amend the App Manifest</strong></p> <p>Add your API Key, inside of the <code>&lt;application&gt;</code> element.</p> <pre><code>&lt;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="yourapikey"/&gt; </code></pre> <p>Add the following permissions:</p> <pre><code>&lt;permission android:name="com.example.project.package.permission.MAPS_RECEIVE" android:protectionLevel="signature"/&gt; &lt;uses-permission android:name="com.example.project.package.permission.MAPS_RECEIVE"/&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt; &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt; &lt;uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/&gt; </code></pre> <p>Add the following feature request:</p> <pre><code>&lt;uses-feature android:glEsVersion="0x00020000" android:required="true" /&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload