Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid: Google Map not appearing
    primarykey
    data
    text
    <p>I was trying a quick tutorial using google maps in Andriod</p> <p>When I load my project I just get the Title and the Hello string below.I am not sure what I am doing wrong here. I copied the code when i generated the api key</p> <p>The manifest is:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; </code></pre> <p></p> <pre><code>&lt;uses-sdk android:minSdkVersion="3" /&gt; &lt;uses-permission android:name="android.permission.INTERNET" /&gt; &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt; &lt;uses-library android:name="com.google.android.maps" /&gt; &lt;application android:name=".MapsActivity" android:icon="@drawable/ic_launcher" android:label="@string/app_name" &gt; &lt;activity android:name=".TestGoogleMapsActivity" android:label="@string/app_name" &gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.MAIN" /&gt; &lt;category android:name="android.intent.category.LAUNCHER" /&gt; &lt;/intent-filter&gt; &lt;/activity&gt; &lt;/application&gt; </code></pre> <p></p> <p>Main.xml</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent"&gt; &lt;com.google.android.maps.MapView android:layout_width="fill_parent" android:layout_height="fill_parent" android:apiKey="0BEWMEhSfG1KpK8VJaPUKRS0bpcavE8rIvn3hjQ" /&gt; &lt;/RelativeLayout&gt; </code></pre> <p><img src="https://i.stack.imgur.com/Fr02O.png" alt="enter image description here"></p> <p><strong>Update</strong> TestGoogleMapsActivity.java package Gibby.TestMaps;</p> <pre><code>import android.app.Activity; import android.os.Bundle; import com.google.android.maps.MapActivity; import com.google.android.maps.MapView; import android.os.Bundle; public class TestGoogleMapsActivity extends MapActivity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); } @Override protected boolean isRouteDisplayed() { return false; } } </code></pre>
    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.
 

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