title: Run time user permission dialog not showing in Noughat
body: <p>In my app run time app permissions are not showing in dialog and app crashes on opening the app in Noughat but its working fine in Marshmallow and other less API's. Please provide a quick solution for this problem. Thanks in advance</p>
  
  <pre><code>            @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_lockscreen);
      ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.PROCESS_OUTGOING_CALLS,Manifest.permission.CALL_PHONE,Manifest.permission.READ_CONTACTS,Manifest.permission.WRITE_CONTACTS,Manifest.permission.WRITE_EXTERNAL_STORAGE,Manifest.permission.READ_EXTERNAL_STORAGE},1);       
   }
    @Override
    public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
      switch (requestCode){
          case 1:
          {
              if(grantResults.length&gt;0 &amp;&amp; grantResults[0]== PackageManager.PERMISSION_GRANTED){
                  int perm=1;
              }
              else {
                  Toast.makeText(getApplicationContext(),"Permission denied",Toast.LENGTH_SHORT).show();
              }
          }
      }
  }
  </code></pre>
  
  <p>I have also included user-permission tags in manifest</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.INTERNET" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" /&gt;
  &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
  &lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  &lt;uses-permission android:name="android.permission.CALL_PHONE" /&gt;
  </code></pre>