

For this guide I have written a custom AsyncTaskLoader specifically for loading gallery images via a utility class called PhotoGalleryImageProvider I have also provided.įragments provide a special interface for automatically kick starting and interacting with async task loaders. As a result, we want to make use of an Android construct called an AsyncTaskLoader.

Loading our entire image gallery into a list in Android Studio is an intensive task. Note: This example makes use of List Fragments, a topic I cover extensively in my article on list fragments. This guide will specifically be covering " SimplePhotoGalleryListFragment. If you haven't already, clone my example project from GitHub. This is part 2 of my 5 part series on Android Studio camera development using fragments.

TL DR - This guide demonstrates how to fetch images from your Android device's photo gallery using Android Studio List Fragments and display their thumbnails in a grid. Rex is an internet of things developer evangelist at Intel’s Mashery.
