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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -