I am new to android. I am writing a small application that reads files from the SD card. It picks a song from the SD card and then plays that song as a ring tone.
This is the code that plays the song:
MediaPlayer mp=MediaPlayer.create(Alarm.this, R.raw.airtel_new);
mp.start();
Instead of "R.raw.airtel_new
" I would like to use the URI or the URL of a particular song that I have selected from the SD card.
Could any one help me?