title: how to pass latitude and longitude to google maps API in android?
body: <p>I'm still new in Google Maps API and I have difficulty to pass latitude and longitude from first activity to second activity. 
  Now when I click a button in first activity, it will pass latitude and longitude value to a second activity that contains a google map.</p>
  
  <p>First Activity :</p>
  
  <pre><code>apotek.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              double lat = -7.94203712;
      double lng = 112.60936975;
      Bundle bundle = new Bundle();
      Intent intent = new Intent(Menu1.this, menu_cari.class);
      bundle.putDouble(menu_cari.TAG1,lat);
      bundle.putDouble(menu_cari.TAG2, lng);
      startActivity(intent);
          }
      });
  </code></pre>
  
  <p>Second Activity :</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      if (GoogleServicesAvailable()) {
          Toast.makeText(menu_cari.this, "Terhubung...", Toast.LENGTH_LONG).show();
          setContentView(R.layout.activity_menu_cari);
          initmap();
      } else {
          //maps tidak ditampilkan
      }
      Bundle extras = getIntent().getExtras();
      lat_apotek=extras.getDouble(TAG1,0);
      lng_apotek=extras.getDouble(TAG2,0);
      goToLocation(lat_apotek,lng_apotek,20);
  }
  public void goToLocation(double lat, double lng, float zoom) {
      LatLng ll = new LatLng(lat, lng);
      CameraUpdate update = CameraUpdateFactory.newLatLngZoom(ll, zoom);
      mGoogleMap.moveCamera(update);
  }
  </code></pre>