stfalcon-studio / ContentManager

Android library for getting photo or video from a device gallery, cloud or camera. Working with samsung devices. Made by Stfalcon
https://stfalcon.com
109 stars 23 forks source link

Method onError() being called on Samsung Galaxy S7 device due to picture being taken on the past #5

Open rodrigobressan opened 7 years ago

rodrigobressan commented 7 years ago

Hi!

I need to start saying thanks for the project, since it's being really helpful for implementing the functionality of taking photo and picking media from the gallery.

About the issue I am having, it's related (at least until now) with the Samsung Galaxy S7 Device, which is not loading the picture after being taken (the picking from gallery works fine).

It does call the method onError() with empty string from the interface ContentManager.PickContentListener. I have been debugging the internal code of the ContentManager class and have found this issue happens when verifying if the date of the picture is after the date that the camera intent has started (ContentManager.java, line 354). I notices this device is saving the picture as one day before the current day, so I am pretty sure this is the problem that is leading to this behaviour.

Could you please provide one way to bypass this verification about the date of the picture being after the start date of the camera intent, or at least the fix (I don't know if it's Samsung software issue when saving the picture or the library is putting the date one day in the past)?

Thanks one more time!

dotocan commented 7 years ago

I am experiencing the same issue, also with the Galaxy S7. Unfortunately I cannot debug it because I don't have access to the device, but the customer reports the same problem- image is not being loaded after taking it with camera.

jagloro commented 7 years ago

Taking a picture does not work with Verizon Galaxy S6 Edge either.

iTruff commented 7 years ago

Same problem on my Galaxy S7 Edge.

dotocan commented 7 years ago

Hi @bevzaanton, will this issue be solved anytime in the near future? It's been about 5 months since this issue was opened and we didn't get any answer. Since taking photos and/or choosing them from gallery is pretty important part of my app, users are not quite happy with it not working properly, so I just want to know should I wait a bit more or search for another similar library.

iTruff commented 6 years ago

No any feedback. Maybe someone fond solution or any good libraries for picking photos?