Skip to content
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

Open
hymanme opened this issue May 8, 2016 · 5 comments
Open

拍照出错,拍出来显示白屏,点完成奔溃 #1

hymanme opened this issue May 8, 2016 · 5 comments

Comments

@hymanme
Copy link

hymanme commented May 8, 2016

小米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)

@hymanme
Copy link
Author

hymanme commented May 9, 2016

在5.0上正常且在6.0未能正常获取权限,需要手动获取!

@Raynor999 Raynor999 reopened this May 9, 2016
@Raynor999
Copy link
Owner

@hymanme 是小米6.0的系统导致无法自动申请运行时权限吗? 我用的Nexus6 测试的没问题,等找一个小米的试一下

@hymanme
Copy link
Author

hymanme commented May 23, 2016

@lijunguan 刚拍照出现了一次可以获取拍照结果(图片),然后我第二次测试就没有了。很奇怪!

@Raynor999
Copy link
Owner

问题找到了在小米MIUI7.3 Android6.0出现概率很高,照片的width,height尽然得到的都是-1!!,导致采样率inSampleSize计算出错,使得图片太大无法显示。 现在考虑下个版本 通过ExifInterface 类 解决MIUI7.3,adnroid6.0上正常方法无法得到图片width、height的问题。@hymanme

@hymanme
Copy link
Author

hymanme commented Jun 4, 2016

@lijunguan 非常感谢,请问下个版本什么时候能发布?还有1.0.2好像没上传jcenter。 #

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants