How can i show Dialog in fragment?
<p>I am trying to show dialog as date picker in Fragmnet .
 but its not display any dialog.
 can any one explain.</p>

<pre><code>DateDialogFragment dateDialogFragment = DateDialogFragment.newInstance(getActivity(), 1, calendar,dateSetFromListener);
dateDialogFragment.show(getFragmentManager(), "DATE PICKER DIALOG");
</code></pre>

<p>private DatePickerDialog.OnDateSetListener dateSetFromListener = new DatePickerDialog.OnDateSetListener() {</p>

<pre><code>@Override
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {

            Calendar newDate = Calendar.getInstance();
            newDate.set(year, monthOfYear, dayOfMonth);
            String date = dayOfMonth + "/" + monthOfYear + "/" + year;
            edt_Date.setText(date);
        }
    };
</code></pre>
