title: onbackpressed in show file chooser
body: <pre><code>private void showFileChooser() {
      Intent intent = new Intent();
      intent.setType("image/*");
      intent.setAction(Intent.ACTION_GET_CONTENT);
      startActivityForResult(Intent.createChooser(intent, "Select Picture"), PICK_IMAGE_REQUEST);
  
  }
  </code></pre>
  
  <p>hey. i used that code for pick image from storage. but if i press the back button in my gadget. he is fc . how to give condition on canceled pick from storage..and not force close?</p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      if (requestCode == PICK_IMAGE_REQUEST) {
          filePath = data.getData();
          if(filePath != null) {
              try {
                  Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), filePath);
                  imageView.setImageBitmap(bitmap);
                  Toast.makeText(this, data.getDataString(), Toast.LENGTH_SHORT).show();
              } catch (IOException e) {
                  e.printStackTrace();
              }
          }else if(filePath == null){
              startActivity(new Intent(this,HalamanUser.class));
          }
      } else if (requestCode == CAMERA_REQUEST) {
  
          Log.i("hello", "REQUEST cALL");
          try {
              Bitmap bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), filePath);
              imageView.setImageBitmap(bitmap);
  
          } catch (Exception e) {
              Log.i("hello", "Exception" + e.getMessage());
          }
  
      }else {
          startActivity(new Intent(this,HalamanUser.class));
      }
  }
  </code></pre>