@Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   super.onActivityResult(requestCode, resultCode, data);
   if (requestCode == ChooserType.REQUEST_CAPTURE_PICTURE
       || requestCode == ChooserType.REQUEST_PICK_PICTURE) {
     if (resultCode == RESULT_OK) {
       if (imageChooserManager == null) {
         imageChooserManager =
             new ImageChooserManager(this, requestCode, FileUtils.getDirectory("TT"));
         imageChooserManager.setImageChooserListener(this);
         imageChooserManager.reinitialize(chooserPath);
       }
       imageChooserManager.submit(requestCode, data);
     }
   }
 }
 // Should be called if for some reason the ImageChooserManager is null (Due
 // to destroying of activity for low memory situations)
 private void reinitializeImageChooser() {
   imageChooserManager = new ImageChooserManager(this, chooserType);
   imageChooserManager.setImageChooserListener(this);
   imageChooserManager.reinitialize(filePath);
 }