android - Soundpool game with mp3 questions -


i making game using questions stored on mp3, each question there mp3 file.

the user press play hear mp3 , add answer mp3 in edittext field. show correct or incorrect answer.

when user clicks confirm answer mp3 move next question. when user presses play question 2. possible , if how go implementing this. highly appreciate advice on this.

thanks.

it recommended use wav or ogg format sounds on android, in case, can play mp3s mediaplayer class. example:

mediaplayer mp = mediaplayer.create(youractivityclass.this, r.raw.your_mp3_resource); if(mp != null) {     mp.start(); } 

read documentation regarding state , calling release() on finished mediaplayer objects. alternatively use 1 mediaplayer object setdatasource() , prepare() methods.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -