title: Error with DialogFragment in Android
body: <p>On click i want display a dialog but i get an error in the <code>show</code> word. This part of code is in my MainActivity that extends and Activity.. Instead, the dialog i want display, is created in another class that extends <code>DialogFragment</code>.</p>
  
  <pre><code>Toast.makeText(this, "Error", Toast.LENGTH_SHORT).show();
                               DialogFragment df=new DialogTrial();
                               df.show(this.getFragmentManager(), "MyDialog"); 
  </code></pre>
  
  <p>The error: </p>
  
  <pre><code>The method show(android.support.v4.app.FragmentManager, java.lang.String) in the type DialogFragment is not applicable for the arguments (android.app.FragmentManager, java.lang.String)
  </code></pre>
  
  <p>I tried everything: <code>this.getFragmentManager()</code>, <code>getActivity()</code>, <code>context</code>, <code>this</code>but always same error.</p>