title: Google map app crashes on android OS 4.3
body: <p>I built an app for map. Added all the necessary permissions and generated the api key but it is still crashing. I am working on command line and implemented it on Android 4.3 OS.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>public class MainActivity extends FragmentActivity
  {
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState)
  {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.main);
  }
  }
  </code></pre>
  
  <p>Manifest File</p>
  
  <pre><code> &lt;uses-sdk
      android:minSdkVersion="9"
              android:targetSdkVersion="17" /&gt;
   &lt;uses-feature
      android:glEsVersion="0x00020000"
              android:required="true"/&gt;
  
    &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/&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;!-- The following two permissions are not required to use
        Google Maps Android API v2, but are recommended. --&gt;
     &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt;
     &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt;
     &lt;permission
    android:name="mapdemo.exp.permission.MAPS_RECEIVE"
          android:protectionLevel="signature"/&gt;
    &lt;uses-permission android:name="mapdemo.exp.permission.MAPS_RECEIVE"/&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="AIzaSyAS08XqNbdRuxsOwNrosza0WE2mijfdoO8"/&gt;
   &lt;meta-data
       android:name="com.google.android.gms.version"
           android:value="4323000" /&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Tried this</p>
  
  <pre><code>   public class ActivityMain extends Activity
     {
     public GoogleMap googleMap;
  
  @Override
  protected void onCreate(Bundle savedInstanceState)
    {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      try
        {
          Log.e("loading map. . . .", "loading map. . . ");
          initilizeMap();
        }  
          catch (Exception e)
          {
          Log.e("catch. . .", "catch. . .");
          e.printStackTrace();
          }
     }
  
  private void initilizeMap()
    {
      Log.e("initializing map. . . ", "initializing map. . ");
      if (googleMap == null)
        {
          googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();            
          if (googleMap == null)
           {
              Toast.makeText(getApplicationContext(),"Sorry! unable to create maps", Toast.LENGTH_SHORT).show();
           }
        }
    }
  
  @Override
  protected void onResume()
  {
      super.onResume();
      initilizeMap();
  }
  }
  </code></pre>