On Feb 23, 11:40 pm, Marcin Orlowski <[email protected]> wrote:
> > Am I missing something?
>
> You miss prepare() before calling
> start()http://developer.android.com/reference/android/media/MediaPlayer.html...
>
I've tried like this....
MediaPlayer mp = MediaPlayer.create(Calibrate.this,
R.raw.beep_6);
try {
mp.setOnCompletionListener(new OnCompletionListener() {
@Override
public void onCompletion(MediaPlayer mp) {
mp.release();
}
});
mp.prepare();
mp.start();
} catch (IllegalStateException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Adding prepare made no progress. I have no sound at all. Currently it
was failing with sound and then exception now there is no sound at
all.
> --
> Regards,
> Marcin
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en