title: click on background layout when dialog is already opened
body: <p>I have developed app which i have integrated <a href="https://developers.google.com/maps/documentation/android-api/" rel="nofollow noreferrer">Google Map</a>. Now i set so many pins on the google map. When i click on any pin then that pin <code>marker</code> detail will be displayed in one dialog. This all are working perfectly.This is the <a href="https://i.stack.imgur.com/2eqRV.png" rel="nofollow noreferrer">images</a> .<br/><br/>
  <strong>Problem is:-</strong> when i click one any marker then dialog is opened but when i click on second marker then first dismiss was dismiss. After again click on that marker dialog will be open, but i want to open new dialog when click one any <code>marker</code>. Is this possible that whenever i click on any marker(look at the image) then that marker related(means data) dialog will open instantly ?</p>
  
  <p>I tried with this <code>dialog.setCanceledOnTouchOutside(true);</code>, but it is just dismiss the dialog when i click on out side the dialog layout.</p>
  
  <p>Thanks in advance and help would be very appreciate. </p>
  
  <p>This is the dialog method where i can open the dialog</p>
  
  <pre><code>Dialog mapMarkerDialog = null;
  private void showMapMarkerDialog(Marker marker)
      {
          try
          {
              mapMarkerDialog = new Dialog(activity, android.R.style.Theme_Translucent_NoTitleBar);
              mapMarkerDialog.setContentView(R.layout.dialog_map_info_window);
              mapMarkerDialog.setCanceledOnTouchOutside(true);
  
              RelativeLayout llMapClubDetailTop = (RelativeLayout)mapMarkerDialog.findViewById(R.id.llMapClubDetailTop);
              LinearLayout llMapClubDetail = (LinearLayout)mapMarkerDialog.findViewById(R.id.llMapClubDetail);
  
              ImageView imgMapDialogClubImage = (ImageView)mapMarkerDialog.findViewById(R.id.imgMapDialogClubImage);
              TextView txtMapDialogClubName = (TextView)mapMarkerDialog.findViewById(R.id.txtMapDialogClubName);
              TextView txtMapDialogClubLocation = (TextView)mapMarkerDialog.findViewById(R.id.txtMapDialogClubLocation);
              TextView txtMapDialogClubDiscount = (TextView)mapMarkerDialog.findViewById(R.id.txtMapDialogClubDiscount);
  
  
              llMapClubDetail.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      mapMarkerDialog.dismiss();
                      mapMarkerDialog.cancel();
                      //start new activity
                  }
              });
  
  
              mapMarkerDialog.show();
          }
          catch (Exception e)
          {
              Log.e(TAG, "***Error while call showMapMarkerDialog() method");
              e.printStackTrace();
          }
      }
  </code></pre>