I want to show multiple images in my imageView I want to do this by using a for loop, but my image view only shows the last image.
I have tried Thread.sleep and sleep functions too but they didn't work
for(int i=0;i<=3;i++){
try {
pic = picText.getText().toString();
String photoPath = "sdcard/Pictures/" + pic + i + ".jpg";
imageView.setImageBitmap(BitmapFactory.decodeFile(photoPath));
sleep(1000);
} catch (Exception ex) {
}}
I expect to get all the images one after other, the delay is given in sleep() function.