Implement a timeout for each server call that makes it behave as if it can't reach the server at all. This time out should be around 5 seconds. The calls that need to change are:
- When we get questions, if we timeout, set isMockQuiz to true and generate mock questions using the QuestionUtil.
- When we send results, if we timeout, don't set isMockQuiz to true. Instead, follow the normal results flow as if the server can't be reached at all. For instance, if the questions were legitimate and the send results request times out, then we display the error message that the results will be sent up as soon as a connection to the server is established.
- In the LongActivity, we need to add in a simple message that displays instead of that spinning ball that says the server cannot be reached.
Remember, these things should only occur if the 5 second mark is passed. This is a critical feature to complete for UX before our release, so I'm marking this as high priority.
Implement a timeout for each server call that makes it behave as if it can't reach the server at all. This time out should be around 5 seconds. The calls that need to change are:
Remember, these things should only occur if the 5 second mark is passed. This is a critical feature to complete for UX before our release, so I'm marking this as high priority.