title: READ_EXTERNAL_STORAGE permission, app crash despite I have this in manifest
body: <p>I have problem with permissions. What should I do to stop my app from crashing?</p>
  
  <p>MainActivity.java</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      Intent intent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
      startActivityForResult(intent, 1);
  }
  
  @Override
  protected void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
  
      if(requestCode == 1 &amp;&amp; resultCode == RESULT_OK  &amp;&amp; data != null){
          Uri selectedImage = data.getData();
          try {
              Bitmap bitmap =  MediaStore.Images.Media.getBitmap(this.getContentResolver(), selectedImage);
              ImageView imageView = (ImageView)findViewById(R.id.imageView);
              imageView.setImageBitmap(bitmap);
          } catch (IOException e) {
              e.printStackTrace();
          }
  
      }
  }
  </code></pre>
  
  <p>AndroidManifest.xml</p>
  
  <pre><code>&lt;uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /&gt;
  </code></pre>