title: How to show a Google Map in Android-Mobile
body: <p><code>enter code here</code> I have created a project that shows Google maps in android emulator
  ..But still it doesn't display map in my emulator.I am using Google API key.</p>
  
  <p>I have used my SHAFingerprint to create a Google API key and included that in my Manifest.</p>
  
  <p>I also referred Google-play-services-lib library and also the jar file.</p>
  
  <p>When i searched on Internet some has said that only maps is viewable in mobile phone,in android emulator it wont be displayed.</p>
  
  <p>Here is my code if i has made any mistakes please let me know.. or if there any new way to display maps in emulator or andorid mobiles please give me the way how to do that.</p>
  
  <p>Here is my code in MainActivity</p>
  
  <pre><code>private GoogleMap mMap;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
  
         //Add a marker
          mMap = ((MapFragment)        getFragmentManager().findFragmentById(R.id.map)).getMap();
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Here is my code in the XML file</p>
  
  <pre><code>android:layout_width="match_parent"
  android:layout_height="match_parent"
  
  tools:context=".MainActivity" &gt;
  
  &lt;fragment
      android:id="@+id/map"
      android:name="com.google.android.gms.maps.MapFragment"
      android:layout_width="match_parent"
      android:layout_height="match_parent" /&gt;
  </code></pre>
  
  <p>Here is my Android Manifest Code...</p>
  
  <pre><code>&lt;uses-sdk
      android:minSdkVersion="11"
      android:targetSdkVersion="17" /&gt;
  
  &lt;permission
      android:name="com.example.mapviewv2example.permission.MAPS_RECEIVE"
      android:protectionLevel="signature" /&gt;
  
  &lt;uses-feature
      android:glEsVersion="0x00020000"
      android:required="true" /&gt;
  
   &lt;uses-permission android:name="com.example.mapviewv2example.permission.MAPS_RECEIVE" /&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;application
      android:allowBackup="true"
      android:icon="@drawable/ic_launcher"
      android:label="@string/app_name"
      android:theme="@style/AppTheme" &gt;
      &lt;activity
          android:name="com.example.mapviewv2example.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="--------------------------------//some values"
  
          android:value="-------------------------------//Google  API KEY value" /&gt;
  
  &lt;/application&gt;
  </code></pre>
  
  <p></p>
  
  <p>Can anyone help me to solve the problem......Eagerly Awaiting for Responses...</p>
  
  <p>Thanks in Advance..</p>