Have you tried to query the MediaStore.Images...something like this:
String[] projection = { MediaStore.Images.Media.DATA };
String selection = MediaStore.Images.Media.DATE_TAKEN + " < ?";
String[] selectionArgs = { String.valueOf(YOUR_DATE_MILLIS) };
Cursor cursor = context.getContentResolver()
.query(Images.Media.EXTERNAL_CONTENT_URI,
projection,
selection,
selectionArgs,
null);
if (cursor != null && cursor.getCount() > 0) {
while (cursor.moveToNext() {
String imagePath = cursor.getString(0);
}
}
cursor.close();