RuntimeError while mapview
<p>I followed the tutorial for the maps android api from google. I just want to display a simple map. My code:</p>

<p>manifest:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.maptest"
    android:versionCode="1"
    android:versionName="1.0" &gt;

&lt;uses-sdk
    android:minSdkVersion="8"/&gt;
  &lt;permission
      android:name="com.example.mapdemo.permission.MAPS_RECEIVE"
      android:protectionLevel="signature"/&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="com.example.mapdemo.permission.MAPS_RECEIVE"/&gt;

    &lt;uses-feature
        android:glEsVersion="0x00020000"
        android:required="true"/&gt;
&lt;application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme" &gt;
    &lt;meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="AIzaSyB0zPyFFyQ_sCVmMjj6pgNqvqKg3zHGMSs"/&gt;


    &lt;activity
        android:name="com.example.maptest.MainActivity"
        android:label="@string/app_name" &gt;
        &lt;intent-filter&gt;
            &lt;category android:name="android.intent.category.EMBED"/&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;uses-library android:name="com.google.android.maps"/&gt;
&lt;/application&gt;

&lt;/manifest&gt;
</code></pre>

<p>Java File</p>

<pre><code>package com.example.maptest;

import com.google.android.maps.MapActivity;
import com.google.android.maps.MapView;
import android.os.Bundle;
import android.app.Activity;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.Fragment;




public class MainActivity extends FragmentActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
}
}
</code></pre>

<p>Layout:</p>

<pre><code>&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity" &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"
  android:name="com.example.maptest.DetailFrag"
  class="com.google.android.gms.maps.MapFragment"/&gt;

&lt;/RelativeLayout&gt;
</code></pre>

<p>The result is that the app broke down after starting and I get a  RuntimeExceptionError: Error inflating class fragment.</p>

<p>Im sure, the API key is correct.</p>

<p>Could someone fix my code?</p>

<p>please help :)</p>
