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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

python - malformed header from script index.py Bad header -