android - How to get images from Sd card and put into array list -


i want make slide show , images sd card. wanna use several images, how can put images arrylist ? below code 1 image.

imageview imageview = (imageview)findviewbyid(r.id.imageview);     bitmap bitmap = bitmapfactory.decodefile("/sdcard2/image/index1.png");     imageview.setimagebitmap(bitmap); 

below answer can use fetching images sd card using content uri,try this,this surely work you,assuming have knowledge regarding content uri.


Comments

Popular posts from this blog

python - Best design pattern for collection of objects -

go - serving up pdfs using golang -

how to add preprocess loader in webpack 2 -