public static void showImage(CaptureType captureType,ImageView imageView,Uri fileUri){
  if (imageView == null) {
    throw new RuntimeException("ImageView not set!");
  }
  if (fileUri == null) {
    throw new NullPointerException("File uri not set!");
  }
  try {
    imageView.setImageBitmap(captureType == CaptureType.CAPTURED_FROM_CAMERA ? getCapturedImageAsBitmap(fileUri) : getSelectedImageAsBitmap(fileUri));
  }
 catch (  NullPointerException e) {
    Log.e(TAG,"Failed to generate image bitmap!");
    Log.e(TAG,e.getLocalizedMessage());
  }
}

public static void showImage ( CaptureType captureType , ImageView imageView , Uri fileUri ) { if ( imageView == null ) { throw new RuntimeException ( "ImageView not set!" ) ; } if ( fileUri == null ) { throw new NullPointerException ( "File uri not set!" ) ; } try { imageView . setImageBitmap ( captureType == CaptureType . CAPTURED_FROM_CAMERA ? getCapturedImageAsBitmap ( fileUri ) : getSelectedImageAsBitmap ( fileUri ) ) ; } catch ( NullPointerException e ) { Log . e ( TAG , "Failed to generate image bitmap!" ) ; Log . e ( TAG , e . getLocalizedMessage ( ) ) ; } }
puts the image into an imageview according to capture type ( see capturetype ) .
