public static CursorLoader newInstance(Context context) {
        String selection = SELECTION_ALL_FOR_SINGLE_MEDIA_TYPE;
        String[] selectionArgs = getSelectionArgsForSingleMediaType(MediaStore.Files.FileColumns.MEDIA_TYPE_IMAGE);
        return new AlbumMediaLoader(context, selection, selectionArgs);
    }
Load images and videos into a single cursor.
app/src/main/java/home/smart/fly/animations/internal/loader/AlbumMediaLoader.java