-
Notifications
You must be signed in to change notification settings - Fork 12
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
NullPointerException Error #1
Comments
Your code within onActivityResult as it is written? If you make a debug, which contains this variable "imageReturnedIntent". Can you share me your code? |
Thank you for your reply, sure here is my main activity
and this is my layout
|
What happens if you use a LinearLayout instead of a ConstraintLayout? |
still crashes |
Is not a problem of the library, is the way the cell phone accesses the camera, which cell version have, I leave a link of possible problems. 1.- Just add android:configChanges="orientation" in my manifest to activities. |
For this answers, I need to change part of your code right? but your code is compiled and I cant do anything with it. |
You need to modify the onActivityResult of your AppCompatActivity, I will try to make an example and I will share it to you. |
Looking forward to that. |
Hello my friend, Have you got any good news? |
I bring a little work, in 10 hours I'll help you with the code. You can go testing, other ways to apply the onActivityResult, the error is there, not in the library. |
I think this is an issue with the library. Most camera apps do not return URI in the intent, therefore you will get a null reference with intent.getData(). This will lead to a crash as there is no null check while setting Uri path = imageReturnedIntent.getData(); |
update issues in this new release compile 'com.github.oswaldo89:EasyImagePicker-library:1.0.2' |
Hello, I am trying to use the library but getting the following error when I click on "Camera" to take a new picture. I am not sure why it's trying to fetch Image file as I am clicking on camera. E/AndroidRuntime: FATAL EXCEPTION: main Thanks in advance |
Hello, I'm trying to use this library in a program and when I use the camera and save the picture this error is coming up. could you please help me to solve this issue?
The text was updated successfully, but these errors were encountered: