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

  • SEARCH
  • Home
  • 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 7583083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:35:49+00:00 2026-05-30T18:35:49+00:00

This is how it looks currently: final CountDownTimer countdown = new CountDownTimer(5000, 1000) {

  • 0

This is how it looks currently:

final CountDownTimer countdown = new CountDownTimer(5000, 1000) {

     public void onTick(long millisUntilFinished) {
        clock.setText("Seconds Remaining: " + millisUntilFinished / 1000);
     }

     public void onFinish() {
         qcount++;

         if (qcount < 10)
         {
             this.start();
             switch (diff) {

            case 0:  //Novice difficulty

but it says the countdown variable isn’t used and it doesn’t run at all in the app.

  • 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-30T18:35:51+00:00Added an answer on May 30, 2026 at 6:35 pm

    You’re trying to use Countdown in the anonymous class that’ll instantiate it. Countdown is an instance of that class, onFinish() is called on that instance.

    You should call start() on the instance onFinish() was called on, so use ‘this’.

    this.start();
    

    EDIT : Look at it as if you were simply creating a new class, which is basically what you’re doing. In the new class definition, “Countdown” is not a variable, so you can’t use it. You’d simply call start on the object onFinish() was called on. However since you’re using an anonymous class, you can still access your outer class’s variables from within your anonymous class, which in this case leads to confusion and error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My code currently looks like this: private Foo myFoo; public Foo CurrentFoo { get
Currently I have a class that looks like this: public class MyClass : IMyClass
My code currently looks like this: <div style=position: fixed; width: 35.25%; height: 6.75%; left:
My webpage currently looks like this: <asp:Table runat=server style=position: absolute; left: 0%; top: 82%;
My <style> for thumbnails currently looks like this: <style type=text/css> img.TN { width: 100%;
I currently have a query that looks like this: SELECT NON EMPTY ([Measures].[TOTAL]) ON
I currently am returning a table that looks like this: Country Result ------ -----
How to I format a query string so it looks like this search?q=power+tools currently
I currently have a table structure that looks something like this(some details omitted): ColumnName
Currently I am doing this: I have text that looks like: Hello ${user.name}, this

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.