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 4016616
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:45:41+00:00 2026-05-20T09:45:41+00:00

I’m working on a solo project, using the aforementioned technologies. The aim is to

  • 0

I’m working on a solo project, using the aforementioned technologies. The aim is to create an quiz game for Android. The questions are created by the “quiz master” online beforehand and submitted to a MySQL database. They are then retrieved by the Android application. I have set up the link between phone & server using PHP, with the data sent over in JSON format.

I want each question to have a pre-allocated time which the user has to answer it and once this has elapsed, the Android app to prevent the question from being answered. The time is chosen by the quiz master and submitted to the database along with the rest of the quiz information.

As not everyone might retrieve the quiz from the server onto their phone at the same time, there are problems with regards to making sure someone doesn’t get longer to answer the question than the other. As far as possible, I want to keep everyone in sync. It’ll be difficult to make sure everyone has exactly the same time, but I’d settle for just having people not being able to delay retrieving the quiz and then getting the full 30 seconds (or whatever). For it to be fair, the countdown needs to start once the quiz has been started by the quiz master.

I’m struggling to think of a way to overcome this problem. I have a very basic client-server system set up and I can’t think of a way to have the server keep track of the “time left” and then send a number to the phone, indicating the amount of time left.

Sorry for the essay, hope someone out there has an idea! It would be very much appreciated!! 🙂

All the best,

J

  • 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-20T09:45:42+00:00Added an answer on May 20, 2026 at 9:45 am

    Perhaps you could have each users device keep track of how fast they answered the question and then compare the response time after the answer is submitted. For example: The server sends the phone a question and tells it that there is a 30 second time limit. As soon as the user views the question, the timer starts on their phone. Then say it took them… 14.79 seconds to answer correctly. The phone would send the info back saying how long each user took then compare them to see who answered the question first and who all answered within the time limit. This technique may not keep the quiz game perfectly in sync across all connected devices, but it should keep the game fair.

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

Sidebar

Related Questions

No related questions found

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.