http://blog.infrared5.com/2012/03/android-live-wallpaper-part-2/

аюсь сделать следующее из учебника живых обоев, который нашелВот.

/**
 * Do the actual drawing stuff
 */
private void doDraw(Canvas canvas) {
    Bitmap b = BitmapFactory.decodeResource(context.getResources(), IMAGES[current]);
    canvas.drawColor(Color.BLACK);
    canvas.drawBitmap(b, 0, 0, null);
    Log.d(TAG, "Drawing finished.");
}

/**
 * Update the animation, sprites or whatever.
 * If there is nothing to animate set the wait
 * attribute of the thread to true
 */
private void updatePhysics() {
    // if nothing was updated :
    // this.wait = true;
    if(previousTime - System.currentTimeMillis() >= 41) { //24 FPS
        current = current < IMAGES.length ? current++ : 0;
    }
    Log.d(TAG, "Updated physics.");
}

Но это не похоже на работу. Что я делаю неправильно. «Рисунок закончен». и "Обновленная физика". сообщения печатаются. Но я вижу только первое изображение. Я тестирую это на эмуляторе.

Любая помощь будет оценена. Спасибо

Ответы на вопрос(2)

Ваш ответ на вопрос