Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6377419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:52:15+00:00 2026-05-25T01:52:15+00:00

I am developing a Question answer game. So a Timer is a must. I

  • 0

I am developing a Question answer game. So a Timer is a must.
I want the timer for 30s. The timer should be running in the UI and when an onclick event like pressing a button occurs , that event should be triggered and the timer should be reset. If the timeout occurs it must display a timeout message and exit.
HELP! Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T01:52:16+00:00Added an answer on May 25, 2026 at 1:52 am

    Well this is the best way to do that I guess a CountDownTimer

    new CountDownTimer(Totalmiliseconds, interval) {
    
                @Override
                public void onTick(long intervalInMili) {
                    tv.setText("second remaining - "+intervalInMili/1000);
                }
    
                @Override
                public void onFinish() {
                    tv.setText("Done!!!!!!!!!!!!");
                }
            }.start();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a question game and I want to change the answer button pressed
Before you answer, this question is complicated: We are developing in asp.net / asp.net
Simple question, the answer may not be... I'm going to be developing a web
I'm developing a question/answer based application I have a Post table in the db
I hope that this is a quick question to answer. I am developing a
I am developing an ask-and-answer website. There is a Choose as best answer button
I’m developing an application with a model similar to Stack Overflow (question / answer
There's already a similar topic but it don't answer my question. When developing web
Hope some one can answer my question. I am developing a web page with
PLEASE READ THE FULL QUESTION BEFORE POST YOUR ANSWER Hello guys! I'm currently developing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.