Closed Rude-Monkey closed 7 years ago
@MasterTrollVG78 Hello, Nice to meet you :)
Is this sample app problem?
Try adding
android:largeHeap="true"
to your
<application
android:largeHeap="true"
></application>
in AndroidManifest.xml
if issue were continue, reopen please.
Hi Helloyako,
I get a very strange result when trying to crop large images (most of the pictures I took with the phone's camera) :
In other cases the app wil crash because of an illegal argument exception :
java.lang.IllegalArgumentException: height must be > 0 at android.graphics.Bitmap.checkWidthHeight(Bitmap.java:446) at android.graphics.Bitmap.createBitmap(Bitmap.java:822) at android.graphics.Bitmap.createBitmap(Bitmap.java:791) at com.naver.android.helloyako.imagecrop.model.CropInfo.getCroppedImage(CropInfo.java:62) at com.naver.android.helloyako.imagecrop.model.CropInfo.getCroppedImage(CropInfo.java:36) at com.naver.android.helloyako.imagecrop.view.ImageCropViewBase.getCroppedImage(ImageCropViewBase.java:966) at com.example.vincent.osmtest1.CropActivity$1.onClick(CropActivity.java:120) at android.view.View.performClick(View.java:5697) at android.widget.TextView.performClick(TextView.java:10826) at android.view.View$PerformClick.run(View.java:22526) at android.os.Handler.handleCallback(Handler.java:739) at android.os.Handler.dispatchMessage(Handler.java:95) at android.os.Looper.loop(Looper.java:158) at android.app.ActivityThread.main(ActivityThread.java:7224) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
I know you already encountered some on these issues but since they were fixed I have absolutely no idea why this is happening.