-1

I downloaded several files from url and stored it as i mention path above. i want to use those files as ImageSwitcher's source in a loop, one after another image will change after some time interval.

so please help me out. is it possible that i will make an array of stored files as we make an array of drawble?

Rahul Upadhyay
  • 3,493
  • 2
  • 21
  • 37

1 Answers1

0

Internal storage.

If these are static files, put them in res/raw, open them with openRawResource, and have your build system make a static array of R.raw.whatevers available to you.

Julian Fondren
  • 5,459
  • 17
  • 29
  • These are not static files, i m done with static files already. These file are changing from server side, and because of that , ImageSwitcher have to change image according to it. – Rahul Upadhyay Feb 13 '12 at 10:24
  • Which only means that you won't have the nice compile-time array, and that you'll deal with string names instead of resource IDs. Follow the link. – Julian Fondren Feb 13 '12 at 10:27
  • @Upadhyay oh, and use `getContext().fileList()` – Julian Fondren Feb 13 '12 at 10:35