0

I have an array of files contained in the sdcard: i would like to show an item in a ImageSwitcher but could not find the SetImageBitmap but only SetImageResource, but i have not these in res folder. How can i do it?

Mike
  • 530
  • 1
  • 7
  • 21

1 Answers1

3

use this below code instead of setImageBitmap. I think you have files in array.

imgSwitcher.setImageURI(Uri.fromFile(filename));
ilango j
  • 5,967
  • 2
  • 28
  • 25