title: Android:How to load google maps
body: <p>I have tried this coding but I get only the grid lines and Google at the bottom in my output. Can anyone please help me for this problem. I am getting <em>unfortunately close</em> when I use fragment, now I am using Map View in the main.<br>
  <img src="https://i.stack.imgur.com/e6SHH.png" alt="this is the output I got"></p>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;LinearLayout 
      android:layout_height="fill_parent" 
      android:layout_width="fill_parent" 
      android:orientation="vertical" 
      xmlns:android="http://schemas.android.com/apk/res/android"&gt; 
      &lt;com.google.android.maps.MapView 
          android:layout_height="wrap_content" 
          android:layout_width="fill_parent" 
          android:apiKey="AIzaSyDpO3gdeRI_KgD1-6iTpxNlMy5Btj_pWFw" 
          android:clickable="true" 
          android:enabled="true" 
          android:id="@+id/myGMap"/&gt; 
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p><strong>JAVA</strong></p>
  
  <pre><code>public class MainActivity extends MapActivity {
  
      MyLocationOverlay myLocationOverlay;
  
      MapView         myMapView       = null;
  
      /** Called when the activity is first created. */
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
  
  
          // extract MapView from layout
  
              myMapView = (MapView) findViewById(R.id.myGMap);
  
              myMapView.setBuiltInZoomControls(true);
  
  
  
              // create an overlay that shows our current location
  
              myLocationOverlay = new MyLocationOverlay(this, myMapView);
  
  
  
              // add this overlay to the MapView and refresh it
  
              myMapView.getOverlays().add(myLocationOverlay);
  
              myMapView.postInvalidate();
  
      }
  
      @Override
      protected boolean isRouteDisplayed() {
          return false;
      }
  }
  </code></pre>
  
  <p><strong>Manifest</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="com.example.map2"
      android:versionCode="1"
      android:versionName="1.0" &gt;
  
      &lt;uses-sdk
          android:minSdkVersion="8"
          android:targetSdkVersion="16" /&gt;
  
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/&gt; 
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/&gt; 
      &lt;uses-permission android:name="android.permission.INTERNET"/&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/&gt;
  
      &lt;application
          android:allowBackup="true"
          android:icon="@drawable/ic_launcher"
          android:label="@string/app_name"
          android:theme="@style/AppTheme" &gt;
          &lt;uses-library android:name="com.google.android.maps"/&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;uses-library android:name="com.google.android.maps" /&gt;
  
      &lt;/application&gt;
  
  &lt;/manifest&gt;
  </code></pre>
  
  <p>I want to know whether it is depricated. If so how to solve it.<br>
  Can anyone explain what does <em>depricated</em> means?  </p>
  
  <p>Thanks in advance</p>