content: package com.androidavanzado.mapsactivityapikey;
  
  import android.support.v4.app.FragmentActivity;
  import android.os.Bundle;
  
  import com.google.android.gms.maps.CameraUpdateFactory;
  import com.google.android.gms.maps.GoogleMap;
  import com.google.android.gms.maps.GoogleMapOptions;
  import com.google.android.gms.maps.OnMapReadyCallback;
  import com.google.android.gms.maps.OnStreetViewPanoramaReadyCallback;
  import com.google.android.gms.maps.StreetViewPanorama;
  import com.google.android.gms.maps.StreetViewPanoramaFragment;
  import com.google.android.gms.maps.SupportMapFragment;
  import com.google.android.gms.maps.model.LatLng;
  import com.google.android.gms.maps.model.MarkerOptions;
  
  public class MapsActivity extends FragmentActivity implements OnStreetViewPanoramaReadyCallback {
  
      StreetViewPanorama streetViewMap;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_maps);
          // Obtain the SupportMapFragment and get notified when the map is ready to be used.
          StreetViewPanoramaFragment streetViewPanoramaFragment =
                  (StreetViewPanoramaFragment) getFragmentManager()
                          .findFragmentById(R.id.streetviewpanorama);
          streetViewPanoramaFragment.getStreetViewPanoramaAsync(this);
      }
  
      @Override
      public void onStreetViewPanoramaReady(StreetViewPanorama streetViewPanorama) {
          streetViewMap = streetViewPanorama;
          streetViewMap.setPosition(new LatLng(-33.87365, 151.20689));
      }
  }
  