Add Google Maps to my app
<p>I am trying to add google maps to my android application, and I followed this documentation: <a href="https://developers.google.com/maps/documentation/android/start" rel="nofollow">https://developers.google.com/maps/documentation/android/start</a></p>

<p>First off, is my Manifest file correct?</p>

<p><strong>Manifest.xml</strong></p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="where.is.the.action"
          android:versionCode="1"
          android:versionName="1.0"&gt;
    &lt;uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/&gt;
    &lt;permission
        android:name="where.is.the.action.permission.MAPS_RECEIVE"
        android:protectionLevel="signature"/&gt;
    &lt;uses-permission android:name="where.is.the.action.permission.MAPS_RECEIVE"/&gt;
    &lt;uses-permission android:name="android.permission.INTERNET"/&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;
    &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
    &lt;application android:label="@string/app_name" android:icon="@drawable/ic_launcher"&gt;
        &lt;activity android:name="MainActivity"
                  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;meta-data android:name="com.google.android.maps.v2.API_KEY" android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxx"/&gt;
    &lt;/application&gt;
&lt;/manifest&gt;
</code></pre>

<p>Then here is my layout:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
              android:orientation="vertical"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"&gt;
    &lt;Button
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:text="My Location"
        android:onClick="getLocation"
        android:layout_weight="0"
    /&gt;
    &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
              android:id="@+id/map"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              class="com.google.android.gms.maps.MapFragment"/&gt;
&lt;/LinearLayout&gt;
</code></pre>

<p>It works fine if I remove the <code>fragment</code> tag, but once I add it back in the app closes and displays: "Unfortunately, MainActivity has stopped."</p>

<p>Does anyone see what is wrong?</p>
