android - How to repeat the song untill not stop playing off -
how repeat song in android.the code follows. want repeat current song until stop.
loop.setonclicklistener(new view.onclicklistener() { @override public void onclick(view arg0) { if(isrepeat){ isrepeat = false; toast.maketext(getapplicationcontext(), "repeat off", toast.length_short).show(); // toggleplay(songs.current_track); loop.setimageresource(r.drawable.ic_launcher); }else{ // make repeat true isrepeat = true; // toggleplay(songs.current_track); // make shuffle false // isshuffle = false; loop.setimageresource(r.drawable.ic_launcher); shuffle.setimageresource(r.drawable.ic_launcher); } } });
Comments
Post a Comment