@Override public void handleMessage(Message msg) { if (msg.what == MESSAGE_WAKE_UP_AND_SEEK) { int currentPos = MusicService.currentPosition(); seekbar.setProgress(currentPos); sendEmptyMessageDelayed(MESSAGE_WAKE_UP_AND_SEEK, 200); } super.handleMessage(msg); }
public void onEvent(MusicActionEvent event) { seekbar.setProgress(MusicService.currentPosition()); }