android - MediaPlayer with seekbar Using Handler not working ?? -


hi trying make simple media player app including seek bar. issue when trying update seek bar goes on, song not running smoothly while seek bar updating. have looked many links on internet cannot resolve problem. please have @ code snippet.

paly.setonclicklistener(new view.onclicklistener() {             @override             public void onclick(view v) {                 s_player.start();                  handler.postdelayed(new runnable() {                     @override                     public void run() {                         start_time = s_player.getcurrentposition();                         s_bar.setprogress(start_time);                     }                 }, 500);          }     }); 


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -