Code:
public class SMH extends Activity { public void onCreate(Bundle b) { super.onCreate(b); setContentView(R.layou
I found easy solution. I need CountDown to update ProgressBar, so I did this:
new CountDownTimer(1000, 100) {
private int counter = 0;
@Override
public void onTick(long millisUntilFinished) {
Log.d(LOG_TAG, "Tick: " + millisUntilFinished);
if (++counter == 10) {
timeBar.setProgress(--lenght); // timeBar and lenght defined in calling code
counter = 0;
}
}
@Override
public void onFinish() {
Log.d(LOG_TAG, "Finish.");
timeBar.setProgress(0);
}
};
Small tick do the trick :)