Hello, I put a different sound to touch each button pressed, but after 4 starts it simply stops.
Code:
numero = random.nextInt(numeros.length);
MediaPlayer soundID = MediaPlayer.create(this, getResources().getIdentifier("s" + numeros[numero], "raw", getPackageName()));
soundID.start();
Error:
08-06 02:04:50.604 15072-15072/lordlokon.contarapp D/MediaPlayer: setSubtitleAnchor in MediaPlayer
08-06 02:04:52.089 15072-15072/lordlokon.contarapp D/MediaPlayer: setSubtitleAnchor in MediaPlayer
08-06 02:04:54.259 15072-15072/lordlokon.contarapp D/MediaPlayer: setSubtitleAnchor in MediaPlayer
08-06 02:04:55.368 15072-15072/lordlokon.contarapp D/MediaPlayer: setSubtitleAnchor in MediaPlayer
08-06 02:04:58.179 15072-15072/lordlokon.contarapp D/MediaPlayer: setSubtitleAnchor in MediaPlayer
08-06 02:04:58.202 15072-15083/lordlokon.contarapp E/MediaPlayer: error (1, -19)
08-06 02:04:58.202 15072-15072/lordlokon.contarapp E/MediaPlayer: Error (1,-19)