title: Open maps activity from other activity with specific coordinates
body: <p>I'm currently creating an app which uses Google Maps API. Here's what I want to do:</p>
  
  <p>I have got activity A. There is a button in activity A. When button is clicked, i want to open MapsActivtiy (no Google Maps app) at specific coordinates and zoom level. I was searching a lot in internet, but I couldn't find the answer. </p>
  
  <p>Note that I also have activity B, activity C, activity D, etc. and each contains a button. And each button in each activity should open MapsActivity on different coordinates and zoom. </p>
  
  <p>SOLUTION (i can't write answer and accept it beacuse question is closed)</p>
  
  <p>In activtity A:</p>
  
  <pre><code>//onClick method
  public void viewOnMap(View view)
  {
      LatLng coords = new LatLng(50.191067, 18.452964);
  
      Bundle bundle = new Bundle();
      bundle.putParcelable("coords", coords);
  
      Intent intent = new Intent(this, MapsActivity.class);
      intent.putExtras(bundle);
  
      startActivity(intent);
  }
  </code></pre>
  
  <p>In maps activtiy onMapReady()</p>
  
  <pre><code>Intent intent = getIntent();
  LatLng coords = intent.getParcelableExtra("coords");
  
  //some maps code etc...
  
  if(coords != null)
      {
          if (coords.equals(some_coords_1))
          {
              LatLng coords_zoom = new LatLng(coords.latitude, coords.longitude);
  
              googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(coords.latitude, coords.longitude), 17));
  
              googleMap.moveCamera(CameraUpdateFactory.newLatLng(coords_zoom));
          }
  
          if(coords.equals(some_coords_2)
          {
             LatLng coords_zoom = new LatLng(coords.latitude, coords.longitude);
  
             googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(coords.latitude, coords.longitude), 17));
  
             googleMap.moveCamera(CameraUpdateFactory.newLatLng(coords_zoom))
  
           }
  </code></pre>