Showing continuous image in Android

Asked by
I want to show about 30 photos in one second,so they will display like a video.

I use Android ImageView in a while(TRUE) loop, but the ImageView not change as I expected.

The ImageView change the picture for about a per second, so wonder if there is another way to

show my photos?

Best Answer

Answer by
You can always use the ffmpeg to create a video of the images and also use the timertask

delay=1000/totalImages;

myTimer = new Timer();
 myTimer.schedule(new TimerTask() { 
 @Override
 public void run() {

 if(count==imgArr.length)
 cancel();

 imageView.setImageResource(imgArr[count]);
 count++; 

 }

 }, 0, delay);

Your Answer

Name:
Answer: