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

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -