How to retrieve images from an android device through a date?

1

I need to recover all the images (internal and / or external) that is on my device, but I need to filter this search by a date. Example: I need to search all the photos taken on 02/10/2016. Just for curiosity, after getting this list, I will fill a recyclerview with the recovered images, that part I know how to do.

I looked for hours and could not find anything that could help me.

Thank you in advance.

    
asked by anonymous 10.02.2016 / 19:34

1 answer

0

You can use lastModified() of class File :

File file = new File("seu_path.jpg");
Date dataImagem = new Date(file.lastModified());
Log.i("Data do arquivo @ : "+ dataImagem.toString());
    
10.02.2016 / 19:39