Program: 25018
Project: 25018
Buggy source:
private void initControls(){
  ImageButton pow=(ImageButton)findViewById(R.id.Button05);
  if (pow != null) {
    pow.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        try {
          mSecondaryService.ResetPlayer();
        }
 catch (        RemoteException e) {
          e.printStackTrace();
        }
        try {
          getApplicationContext().unbindService(mConnection);
          getApplicationContext().unbindService(mSecondaryConnection);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        finish();
      }
    }
);
  }
  mFrameLayout=(FrameLayout)findViewById(R.id.FrameLayout01);
  mFrameLayout.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View view){
      mTick=0;
      DimableControls.setVisibility(View.VISIBLE);
    }
  }
);
  cur=(TextView)findViewById(R.id.TextView01);
  all=(TextView)findViewById(R.id.TextView02);
  prog=(SeekBar)findViewById(R.id.SeekBar01);
  prog.setMax(100);
  prog.setBackgroundColor(0);
  prog.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    boolean test=false;
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      if (fromUser) {
        try {
          if (mSecondaryService.getIsPlaying()) {
            int a=mSecondaryService.getDuration();
            if (a == 0) {
              return;
            }
            int b=mSecondaryService.getCurrentPosition();
            int pct=(b * 100) / a;
            prog.setProgress(pct);
            int where=(int)((float)a * ((float)progress / 100.0f));
            mSecondaryService.SeekTo(where);
          }
        }
 catch (        Exception e) {
          Log.d(TAG,"String_Node_Str" + e.getMessage(),e);
        }
      }
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  DimableControls=(LinearLayout)findViewById(R.id.dimable);
  playButton=(ImageButton)findViewById(R.id.button_play);
  playButton.setEnabled(true);
  playButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View view){
      try {
        if (isPlaying) {
          if (isPaused) {
            mSecondaryService.PausePlayer(false);
            isPaused=false;
            playButton.setImageResource(R.drawable.button_pause);
          }
 else {
            mSecondaryService.PausePlayer(true);
            isPaused=true;
            playButton.setImageResource(R.drawable.button_play);
          }
        }
 else {
          myViewUpdateHandler.sendMessage(myViewUpdateHandler.obtainMessage(MSGINITFINISH));
        }
      }
 catch (      Exception e) {
        Log.d(TAG,e.getMessage());
      }
    }
  }
);
}

Fixed version (ground truth):
private void initControls(){
  ImageButton pow=(ImageButton)findViewById(R.id.Button05);
  if (pow != null) {
    pow.setOnClickListener(new View.OnClickListener(){
      @Override public void onClick(      View v){
        try {
          mSecondaryService.ResetPlayer();
        }
 catch (        RemoteException e) {
          e.printStackTrace();
        }
        try {
          getApplicationContext().unbindService(mConnection);
          getApplicationContext().unbindService(mSecondaryConnection);
        }
 catch (        Exception e) {
          e.printStackTrace();
        }
        finish();
      }
    }
);
  }
  mFrameLayout=(FrameLayout)findViewById(R.id.FrameLayout01);
  mFrameLayout.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View view){
      mTick=0;
      DimableControls.setVisibility(View.VISIBLE);
    }
  }
);
  cur=(TextView)findViewById(R.id.TextView01);
  all=(TextView)findViewById(R.id.TextView02);
  prog=(SeekBar)findViewById(R.id.SeekBar01);
  prog.setMax(100);
  prog.setBackgroundColor(0);
  prog.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener(){
    boolean test=false;
    @Override public void onProgressChanged(    SeekBar seekBar,    int progress,    boolean fromUser){
      if (fromUser) {
        try {
          if (mSecondaryService.getIsPlaying()) {
            int a=mSecondaryService.getDuration();
            if (a == 0) {
              return;
            }
            int where=(int)((float)a * ((float)progress / 100.0f));
            mSecondaryService.SeekTo(where);
          }
        }
 catch (        Exception e) {
          Log.d(TAG,"String_Node_Str" + e.getMessage(),e);
        }
      }
    }
    @Override public void onStartTrackingTouch(    SeekBar seekBar){
    }
    @Override public void onStopTrackingTouch(    SeekBar seekBar){
    }
  }
);
  DimableControls=(LinearLayout)findViewById(R.id.dimable);
  playButton=(ImageButton)findViewById(R.id.button_play);
  playButton.setEnabled(true);
  playButton.setOnClickListener(new View.OnClickListener(){
    public void onClick(    View view){
      try {
        if (isPlaying) {
          if (isPaused) {
            mSecondaryService.PausePlayer(false);
            isPaused=false;
            playButton.setImageResource(R.drawable.button_pause);
          }
 else {
            mSecondaryService.PausePlayer(true);
            isPaused=true;
            playButton.setImageResource(R.drawable.button_play);
          }
        }
 else {
          myViewUpdateHandler.sendMessage(myViewUpdateHandler.obtainMessage(MSGINITFINISH));
        }
      }
 catch (      Exception e) {
        Log.d(TAG,e.getMessage());
      }
    }
  }
);
}