Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The MapView example doesn't set API key by default. So you must set it. Here is step by step:</p> <ol> <li><p>Get MD5 from your system</p> <pre><code>%JAVA_HOME%\bin\keytool.exe -list -alias androiddebugkey -keystore "%userprofile%\.android\debug.keystore" -storepass android -keypass android </code></pre></li> <li><p>Get API key by pasting the generated MD5 to this page:<br/> <a href="http://code.google.com/android/maps-api-signup.html" rel="noreferrer">http://code.google.com/android/maps-api-signup.html</a></p></li> <li><p>Paste the generated API key to <strong>{your_project_root}/res/layout/map.xml</strong></p> <pre><code>&lt;com.google.android.maps.MapView android:id="@+id/myMapView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:enabled="true" android:clickable="true" android:apiKey="paste_generated_api_key_here" /&gt; </code></pre></li> <li><p>In <strong>AndroidManifest.xml</strong>, make sure that you have the folowing tag into your <code>application</code> tag:</p> <pre><code>&lt;uses-library android:name="com.google.android.maps" /&gt; </code></pre> <p>and also the folowing tag into your <code>manifest</code> tag:</p> <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt; </code></pre></li> <li><p>Refresh your project and run</p></li> </ol> <p>Note:</p> <ul> <li>The path of keytool.exe, debug.keystore and map.xml may differ on your system.</li> <li>If you publish your app, be sure to register another API key.</li> <li>If you don't set API key properly, your app will fail on phone and the error message probably is "<em>... has stopped unexpectedly. Please try again. - Force close</em>"</li> </ul> <p>More detail at <a href="http://d.android.com/guide/tutorials/views/hello-mapview.html" rel="noreferrer">http://d.android.com/guide/tutorials/views/hello-mapview.html</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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