java - mediaplayer not working -
i create media player. display songs in listview
when click song. log cat show error:
mp.reset(); mp.setdatasource(songpath); mp.prepare(); mp.start();
logcat error:
11-15 19:12:32.250: info/stagefrightplayer(34): setdatasource('/sdcardparatha.mp3') 11-15 19:12:32.289: error/mediaplayer(2515): error (1, -2147483648) 11-15 19:12:32.289: verbose/song(2515): prepare failed.: status=0x1
of course thats not going work since set resource /sdcardparatha.mp3
whereas meant /sdcard/paratha.mp3
.
Comments
Post a Comment