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);                 }             }         }); 

here complete code


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -