I want to display all images reside in Assets folder: I have done some code as:
mImageView = (ImageView) findViewById(R.id.grid_item_image);
// to reach asset
AssetManager assetManager = getAssets();
// to get all item in dogs folder.
String[] images = assetManager.list("FolderA");
InputStream inputStream = getAssets().open("FolderA/" + images[0]);
// load image as Drawable
Drawable d = Drawable.createFromStream(inputStream, null);
mImageView.setImageDrawable(d);
inputStream.close();
This shows me 1 image from FolderA in Assets. now I want to show All images like Grid of Images.