title: Permission on Fragment
body: <p>I have review other questions regarding the permission on android. But I still didnt get the solution for fragment. Why the dialog of permission is not appear ? Also, it dont show any error log. It just not appear.</p>
  
  <p>I dont want to use FragmentCompat since its require <strong>import android.app.Fragment</strong></p>
  
  <p>This is my minimum sdk ver.
  <strong>minSdkVersion 16</strong></p>
  
  <pre><code> import android.support.v4.app.Fragment;
  
  
   public class ComplaintFragment extends Fragment implements View.OnClickListener {
  
      private void StartCamera(){
       if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
          requestPermissions(new String[]{Manifest.permission.CAMERA}, PERMISSIONS_CAMERA);
       }
       else {OpenCamera();}
      }
  
  
      @Override
      public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
      super.onRequestPermissionsResult(requestCode, permissions, grantResults);
      if(ActivityCompat.checkSelfPermission(getActivity(), permissions[0]) == PackageManager.PERMISSION_GRANTED) {
  
          switch (requestCode) {
              case PERMISSIONS_CAMERA:
                  OpenCamera();
                  break;
          }
       }
    }
  
  }
  </code></pre>