What is a better algorithm on loading or populating images from SD CARD, than storing each image path as Constants?
public final class Constants {
public static final String[] IMAGES = new String[] {
// Heavy images
"file:///mnt/sdcard/folder/folder/folder/1.jpg",
"file:///mnt/sdcard/folder/folder/folder/2.jpg",
"file:///mnt/sdcard/folder/folder/folder/3.jpg",
"file:///mnt/sdcard/folder/4.jpg",
);
}
Basically I am learning the Universal Image Loader, and focusing on the grid view implementation in loading images. Right now the project is running but it is using the CONSTANT path. The thing is my images is stored in sd card.
LINK2: STORING PATH IN CONSTANT Strings https://github.com/nostra13/Android-Universal-Image-Loader/blob/master/sample/src/com/nostra13/example/universalimageloader/Constants.java