示例#1
0
 @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);
 }
示例#2
0
  public void onEvent(MusicActionEvent event) {

    seekbar.setProgress(MusicService.currentPosition());
  }