0

I created a sqlite database with table quote that have attribute id,text,audio. My application listed all text quotes.Now I want to play audio of quotes listed.For the audios I put them in my server.Please I am asking for some ideas how to that.or tutorial.

Hanane
  • 11
  • 1
  • 2
  • 4

1 Answers1

1

Get audio URL also with id, text and other info from server. Then use this code to play audio:

MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.
setDataSource(streamingURL);
mediaPlayer.prepare();
mediaPlayer.start();
Ashiq
  • 140
  • 4