question: private void attachImageFromCamera ( ) { try { if ( null != mShootedPicturePath ) { Uri uri = Uri . fromFile ( new File ( mShootedPicturePath ) ) ; try { Bitmap previewBitmap = VectorApp . getSavedPickerImagePreview ( ) ; String thumbnailPath = getThumbnailPath ( mShootedPicturePath ) ; int rotationAngle = ImageUtils . getRotationAngleForBitmap ( VectorMediasPickerActivity . this , uri ) ; if ( 0 != rotationAngle ) { android . graphics . Matrix bitmapMatrix = new android . graphics . Matrix ( ) ; bitmapMatrix . postRotate ( 360 - rotationAngle ) ; previewBitmap = Bitmap . createBitmap ( previewBitmap , 0 , 0 , previewBitmap . getWidth ( ) , previewBitmap . getHeight ( ) , bitmapMatrix , false ) ; } File file = new File ( thumbnailPath ) ; FileOutputStream outStream = new FileOutputStream ( file ) ; previewBitmap . compress ( Bitmap . CompressFormat . JPEG , 50 , outStream ) ; outStream . flush ( ) ; outStream . close ( ) ; } catch ( Exception e ) { Log . e ( LOG_TAG , "attachImageFromCamera fails to create thumbnail file" ) ; } Bundle conData = new Bundle ( ) ; Intent intent = new Intent ( ) ; intent . setData ( uri ) ; intent . putExtras ( conData ) ; setResult ( RESULT_OK , intent ) ; } } catch ( Exception e ) { setResult ( RESULT_CANCELED , null ) ; } finally { VectorApp . setSavedCameraImagePreview ( null ) ; finish ( ) ; } }
target:  Return the taken image from the camera to the calling activity. This method returns to the calling activity.