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
Post a Comment