diff --git a/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java b/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java index 21dbee12..84ed267c 100644 --- a/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java +++ b/cropper/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java @@ -127,7 +127,7 @@ public static DecodeBitmapResult decodeSampledBitmap(Context context, Uri uri, i return new DecodeBitmapResult(bitmap, options.inSampleSize); } catch (Exception e) { - throw new RuntimeException("Failed to load sampled bitmap: " + uri, e); + throw new RuntimeException("Failed to load sampled bitmap: " + uri + "\r\n" + e.getMessage(), e); } } @@ -205,7 +205,7 @@ public static Bitmap cropBitmap(Context context, Uri loadedImageUri, float[] poi fullBitmap.recycle(); } } catch (Exception e) { - throw new RuntimeException("Failed to load sampled bitmap: " + loadedImageUri, e); + throw new RuntimeException("Failed to load sampled bitmap: " + loadedImageUri + "\r\n" + e.getMessage(), e); } } @@ -315,7 +315,7 @@ private static Bitmap decodeSampledBitmapRegion(Context context, Uri uri, Rect r } } while (options.inSampleSize <= 512); } catch (Exception e) { - throw new RuntimeException("Failed to load sampled bitmap: " + uri, e); + throw new RuntimeException("Failed to load sampled bitmap: " + uri + "\r\n" + e.getMessage(), e); } finally { closeSafe(stream); if (decoder != null) { diff --git a/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java b/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java index 0734f321..7b876823 100644 --- a/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java +++ b/cropper/src/main/java/com/theartofdev/edmodo/cropper/CropImage.java @@ -121,7 +121,8 @@ public static Bitmap toOvalBitmap(Bitmap bitmap) { /** * Start an activity to get image for cropping using chooser intent that will have all the available - * applications for the device like camera (MyCamera), galery (Photos), store apps (Dropbox), etc. + * applications for the device like camera (MyCamera), galery (Photos), store apps (Dropbox), etc.
+ * Use "pick_image_intent_chooser_title" string resource to override pick chooser title. * * @param activity the activity to be used to start activity from */ @@ -132,7 +133,8 @@ public static void startPickImageActivity(Activity activity) { /** * Create a chooser intent to select the source to get image from.
* The source can be camera's (ACTION_IMAGE_CAPTURE) or gallery's (ACTION_GET_CONTENT).
- * All possible sources are added to the intent chooser. + * All possible sources are added to the intent chooser.
+ * Use "pick_image_intent_chooser_title" string resource to override chooser title. * * @param context used to access Android APIs, like content resolve, it is your activity/fragment/widget. */