@OnClick(R.id.button_pick) void button_pick() { Log.d("MaiActivity", "button_pick"); RxPermissions rxPermissions = new RxPermissions(this); rxPermissions .request(Manifest.permission.WRITE_EXTERNAL_STORAGE) .subscribe(granted -> { if (granted) { // Always true pre-M // I can control the camera now Log.d("MaiActivity", "button_pick:granted"); Intent intent = new Intent(); intent.setType("image/*");