void CreateNewRequestDialogue()
        {
            requestFoundDialogue            = new NewRequestFragment(newRideDetails.PickupAddress, newRideDetails.DestinationAddress);
            requestFoundDialogue.Cancelable = false;
            var trans = SupportFragmentManager.BeginTransaction();

            requestFoundDialogue.Show(trans, "Request");

            //Play Alert
            player = MediaPlayer.Create(this, Resource.Raw.alert);
            player.Start();

            requestFoundDialogue.RideRejected += RequestFoundDialogue_RideRejected;
            requestFoundDialogue.RideAccepted += RequestFoundDialogue_RideAccepted;
        }
        private void CreateNewRequestDialog()
        {
            if (newRideDetails != null)
            {
                newRideDialog = new NewRequestFragment(newRideDetails);
                newRideDialog.Show(SupportFragmentManager, "Request");

                player.Start();

                newRideDialog.OnDismiss(new OnDialogCancel(null, () =>
                {
                    if (player.IsPlaying && newRideDialog != null)
                    {
                        player.Stop();
                        newRideDialog.DismissAllowingStateLoss();
                        newRideDialog = null;

                        availablityListener.ReActivate();
                    }
                }));

                newRideDialog.RideAccepted += async(s2, e2) =>
                {
                    statusEnum           = RideStatusEnum.Accepted;
                    newTripEventListener = new NewTripEventListener(newRideDetails.RideId, mLastLocation);
                    newTripEventListener.Create();

                    if (player.IsPlaying && newRideDialog != null)
                    {
                        player.Stop();

                        newRideDialog.DismissAllowingStateLoss();
                        newRideDialog = null;
                    }

                    homeFragment.CreateTrip(newRideDetails.RiderName);

                    LatLng pickupLatLng = new LatLng(newRideDetails.PickupLat, newRideDetails.PickupLng);
                    mapHelper.DrawTripOnMap(await mapHelper.GetDirectionJsonAsync(mLastLatLng, pickupLatLng));
                };
            }
            else
            {
                return;
            }
        }