title: Zoom on current user location displayed
body: <p>I'm using the Google Maps for Android v2. I would like to display the current user location and zoom on it.
  Here is the code in the <code>FragmentActivity</code>:</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.map_activity);
  
      mMap = ((SupportMapFragment) getSupportFragmentManager()
              .findFragmentById(R.id.mapFragment_mapActivity)).getMap();
      if (mMap == null) {
          Toast.makeText(this, R.string.mapCreationProblem, Toast.LENGTH_LONG)
                  .show();
          finish();
          return;
      }
      mMap.setMyLocationEnabled(true);
      Location currentLocation = mMap.getMyLocation();
      if(currentLocation!=null){
         LatLng currentCoordinates = new LatLng(
                              currentLocation.getLatitude(),
                              currentLocation.getLongitude());
         mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(currentCoordinates, 10));
      }
  }
  </code></pre>
  
  <p>The map works fine and also the blue dot on the current location works. But it seems <code>currentLocation</code> is always null. So I cannot zoom on the current location.</p>
  
  <p>Anyone who knows why, please?</p>