title: show(getFragmentManager(),String) is giving error
body: <p>I am using a datepicker and when i select the date from it, i want to set it in the Editext named <strong>Eprevd</strong> and for doing it I have made a inner Class (Static) named <strong>PickerDialog.java</strong></p>
  <p>But not getting the proper way to do it.
  and also getting error in this statement</p>
  <blockquote>
  <pre><code>    pickerDialog.show(getFragmentManager(), &quot;DatePicker&quot;);
  </code></pre>
  <p>Error is -- cannot resolve method show(android.app.fragmentmanager ,java.lang.string)</p>
  <p>here Is the code of UpdateActivity.java</p>
  </blockquote>
  <pre><code>public class UpdateActivity extends AppCompatActivity {
  
  int year_x, month_x, day_x;
  private static EditText Eprevd;
  
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_update);
      Eprevd = (EditText)findViewById(R.id.Eupdateprevd);  
  }
     public void setDateP(View view)
  {
      PickerDialog pickerDialog = new PickerDialog();
  
     //but this line below is giving error..
      pickerDialog.show(getFragmentManager(), &quot;DatePicker&quot;); // this line
  }
  
                         /////////////////////////////////////////
  
  public static class PickerDialog extends DialogFragment
          implements DatePickerDialog.OnDateSetListener
  {
      int year_x, month_x, day_x;
      @Override
              public Dialog onCreateDialog(Bundle savedInstanceState)
          {
              Calendar cal = Calendar.getInstance();
              year_x=cal.get(Calendar.YEAR);
              month_x=cal.get(Calendar.MONTH);
              day_x=cal.get(Calendar.DAY_OF_MONTH);
              DatePickerDialog dialog;
              dialog = new DatePickerDialog(getActivity(),this,year_x,month_x,day_x);
              return dialog;
          }
  
          public void onDateSet(DatePicker view, int year, int month, int dayOfMonth)
          {
              year_x = year;
              month_x = month + 1;
              day_x = dayOfMonth;
              Eprevd.setText(day_x + &quot; / &quot; + month_x + &quot; / &quot; + year_x);
          }
        }
  }
  </code></pre>
  <p><strong>Now, what should i do to counter that error..?
  Thanks in advance..!</strong></p>