Android Question How to find an Image's Date Taken

Discussion in 'Android Questions' started by ndnull, Jun 11, 2015.

  1. ndnull

    ndnull Member Licensed User

    I need to find the date a picture was taken. I know this is supposed to be in the exif attributes and I tried JPegUtils library with no success (I believe because the image may have been to big?)

    So here is the scenario. I can get the date a picture was taken in my application, because it uses the camera feature and I can just assume the date time. But another part of my application imports images from the gallery or folders, where they were place into the tablet via eyefi or other means from regular industry cameras. These images tend to be 5 megapixel or so in size. I have the image handling down fine, but I need a date time stamp of when these imported pictures were "taken" for presentation in reporting, which is an output from my servers. I would settle for the create date, if its carried over in the copy from the eyefi mobi card, but Im really after the taken date...

    Any help would be appreciated.
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    DonManfred and eurojam like this.
  3. ndnull

    ndnull Member Licensed User

    Thank you, this is actually where I started.

    I figured out what I was missing.

    I was using a file path that was not the actual file path but rather a "content:/" path returned by the gallery picker. Once I converted the path to actual, the utility could read the exif data stream from the actual image file.

    I was confused because even without the correct path there was still a response from the jpegutil. I suppose it was that of the thumbnail in the "content:/{pathtoimage}" dataset, not the actual image...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice