Affichage

Dessiner en 2D

Drawable

Dessiner dans un canvas

Paint

Dessiner dans une vue

SurfaceView

SurfaceView

AudioManager

SoundPool

SoundPool

soundPool = new SoundPool(1, AudioManager.STREAM_MUSIC, 0);
soundId = soundPool.load(this, R.raw.my_sound, 1);
soundPool.setOnLoadCompleteListener(new OnLoadCompleteListener() {
        @Override
        public void onLoadComplete
                        (SoundPool soundPool, int sampleId, int status) {
                soundPool.play(sampleId, volume, volume, 1, 0, 1.0f);
        }
});