title: How to get Permission result callback in DialogFragment?
body: <p>Here is my Code sample.</p>
  
  <pre><code>public class DialogPermission extends DialogFragment {
  
      @Nullable
      @Override
      public View getView() {
          View root = LayoutInflater.from(getActivity()).inflate(R.layout.frg_dialog_permission, null, false);
          Button btnRead = (Button) root.findViewById(R.id.btn_read_contact_permission);
          btnRead.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  if (ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED){
                      if (ActivityCompat.shouldShowRequestPermissionRationale(getActivity(),Manifest.permission.READ_CONTACTS)){
                      }else{
                        ActivityCompat.requestPermissions(getActivity(),new String[]{Manifest.permission.READ_CONTACTS},101);}
                  }
              }
          });
          return root;
      }
  
      @Override
      public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {
          Log.e("DialogPermission","Ho! Ho! Ho!");  // Log not printed
          super.onRequestPermissionsResult(requestCode, permissions, grantResults);
      }
  
  }
  </code></pre>
  
  <p>I don't want callback in Activity.
  I hope everything is explained clearly.</p>