-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
拍照出错,拍出来显示白屏,点完成奔溃 #1
Comments
在5.0上正常且在6.0未能正常获取权限,需要手动获取! |
@hymanme 是小米6.0的系统导致无法自动申请运行时权限吗? 我用的Nexus6 测试的没问题,等找一个小米的试一下 |
@lijunguan 刚拍照出现了一次可以获取拍照结果(图片),然后我第二次测试就没有了。很奇怪! |
问题找到了在小米MIUI7.3 Android6.0出现概率很高,照片的width,height尽然得到的都是-1!!,导致采样率inSampleSize计算出错,使得图片太大无法显示。 现在考虑下个版本 通过ExifInterface 类 解决MIUI7.3,adnroid6.0上正常方法无法得到图片width、height的问题。@hymanme |
@lijunguan 非常感谢,请问下个版本什么时候能发布?还有1.0.2好像没上传jcenter。 # |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
小米4,android6.0.1
Log:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.graphics.Bitmap.compress(android.graphics.Bitmap$CompressFormat, int, java.io.OutputStream)' on a null object reference
at io.github.lijunguan.imgselector.cropimage.crop.CropView$CropRequest.flushToFile(CropView.java:280)
at io.github.lijunguan.imgselector.cropimage.crop.CropView$CropRequest.into(CropView.java:268)
at io.github.lijunguan.imgselector.cropimage.CropFragment.cropImage(CropFragment.java:138)
at io.github.lijunguan.imgselector.cropimage.CropActivity$1.onClick(CropActivity.java:42)
The text was updated successfully, but these errors were encountered: