Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- long tiempo = 1;
- CountDownTimer timer = new CountDownTimer(tiempo * 60 * 1000, 100) {
- @Override
- public void onTick(long millisUntilFinished) {
- }
- @Override
- public void onFinish() {
- CountDownTimer timer2 = new CountDownTimer(1 * 60 * 1000, 100) {
- @Override
- public void onTick(long millisUntilFinished) {
- contador.setText(getResources().getString(R.string.time_remaining) +
- " " + String.valueOf(millisUntilFinished / 1000));
- }
- @Override
- public void onFinish() {
- finish();
- }
- };
- timer2.start();
- }
- };
- timer.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement