Skip to content

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

@rodrigobressan

Description

@rodrigobressan

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions