title: Error inflating class com.google.android.gms.maps.MapView
body: <p>I changed my code like below;</p>
  
  <pre><code>@Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          try
          {
          setContentView(R.layout.harita);
          }
          catch (Exception e) 
          {
              e.printStackTrace();
          }
  
          boolean kontrol = true; 
          Bundle bundle = getIntent().getExtras();
  
          String enlem = "";
          if(bundle.getString("enlem") != null)
          {
              enlem = bundle.getString("enlem");
          }
          else
          {
              kontrol = false;
          }
  
          String boylam = "";
          if(bundle.getString("boylam") != null)
          {
              boylam = bundle.getString("boylam");
          }
          else
          {
              kontrol = false;
          }
  
          String baslik = "";
          if(bundle.getString("baslik") != null)
          {
              baslik = bundle.getString("baslik");
          }
          else
          {
              kontrol = false;
          }
  
          if (kontrol == true) {
              GoogleMap map = ((MapFragment) getFragmentManager().findFragmentById(R.id.haritaFragment)).getMap();
  
              LatLng position = new LatLng(Double.parseDouble(enlem),Double.parseDouble(boylam));
  
              map.setMyLocationEnabled(true);
              map.moveCamera(CameraUpdateFactory.newLatLngZoom(position, 13));
  
              map.addMarker(new MarkerOptions().title(baslik).snippet("Baslik").position(position));
          }
      }
  </code></pre>
  
  <p>and my layout;</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;fragment xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/haritaFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:name="com.google.android.gms.maps.MapFragment"/&gt;
  </code></pre>
  
  <p>I also add this code to my Manifest.xml;</p>
  
  <pre><code>&lt;meta-data
      android:name="com.google.android.gms.version"
      android:value="@integer/google_play_services_version" /&gt;
  </code></pre>
  
  <p>And it's value is like that in strings.xml;</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;resources&gt;
      &lt;integer name="google_play_services_version"&gt;4030500&lt;/integer&gt;
  &lt;/resources&gt;
  </code></pre>
  
  <p>I changed my codes. And now i get an error like "Binary XML file line #2: Error inflating class fragment" on setContentView try catch block.</p>