title: Android requestPermission doesnot show a dialog
body: <p>I need to call a given phonenumber from my application.</p>
  
  <p>so i have to verify the permission for call.</p>
  
  <p>but the dialog is showing in my application, straightly it is going the deny function. what is the issue i have done here. please review my code and give me a solution for this.</p>
  
  <pre><code>if (Build.VERSION.SDK_INT &gt;= Build.VERSION_CODES.M) {
              if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {
                  ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.CALL_PHONE}, 105);
              } else {
                  startActivity(callIntent);
              }
          } else {
              startActivity(callIntent);
          }
  
  @Override
  public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {
      switch (requestCode) {
          case 105:
              if (grantResults.length &gt; 0 &amp;&amp; grantResults[0] == PackageManager.PERMISSION_GRANTED) {
                  callJobseeker();
              } else {
                  Toast.makeText(getApplicationContext(), "You cannot make a call.Because call permission is denied", Toast.LENGTH_SHORT).show();
              }
              break;
                   }
                  }
  </code></pre>
  
  <p>in the manifest file am given the permission like :</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
  &lt;permission android:name="com.example.permission.CALL_PHONE"
      /&gt;
  </code></pre>