How to display images from device?

I need to make an app that will display images stored in a particular folder in the device. It was working fine but since the new update has arrived, it doesn’t work. It just not showing anything. Can anyone help me out?

Use this