I made a binded service with MediaPlayer
controls which loads and play back audio. But as it happens, sometimes mediaPlayer.prepare();
is not fast enough and it's not always prepared to playback.
So how can I make such method , something like myService.prepare()
where I can ask for MediaPlayer to prepare and wait for it?