현재 sdcard에 저장되어있는 이미지파일을 불러와서 순차적으로 띄우고 싶습니다
즉, 마치 frame animation처럼 흘러갈수 있게 sleep을 조정해 가면서 띄우고 싶은데요
thread를 사용하면 되지만 thread를 사용하지 않는 방법은 없나요?
일단 소스를 보여드리면

        public RTView(Context context) {
            super(context);
            setFocusable(true);
            int filenum = 802;
            int i;
            for(i=0; i<filenum; i++) {
             mColors = createColors(i);
             int[] colors = mColors;

             mBitmaps = new Bitmap[1];
             mBitmaps[0] = Bitmap.createBitmap(colors, 0, stride, m_Width, m_Height, Bitmap.Config.ARGB_8888);
             invalidate();
             SystemClock.sleep(1000);
            }
        }
       
        @Override protected void onDraw(Canvas canvas) {
            canvas.drawBitmap(mBitmaps[0], 0, 0, null);
        }


위와 같은데요 소스가 그리 길지 않고 간단해요
그리고 절대로 thread를 사용하면 안됩니다
위의 부분을 어떻게 수정하면 될까요?