I am trying to read images from Assets.In Assets i have been using a-z folders and these folders contains images with the starting name of folder like if there is folder named YImages then images in this folder image's names are also starting with Y word.
I am using this function to get images from Assets:
try {
pics = Drawable
.createFromStream(
getAssets().open(
imageFolder + wordString.get(index)
+ ".jpg"), null);
picture.setBackgroundDrawable(pics);
picture.refreshDrawableState();
} catch (IOException e) {
e.printStackTrace();
}