posted 3 years ago
I have designed an application in android to get some kind of details from user. User needs to fill various fields in the form.
Now i want that if user takes more than 30 seconds of time of fill the form then a toast should appear saying timeout or exceeded time limit try again.
Kindly provide me a brief logic how to implement such time limit.
Now i want that if user takes more than 30 seconds of time of fill the form then a toast should appear saying timeout or exceeded time limit try again.
Kindly provide me a brief logic how to implement such time limit.
Ulf Dittmer
Rancher
Posts: 42975
76
posted 3 years ago
There is rarely ever a need to extend Thread, and doing so this in case by overriding the start method seems a particularly bad use of it. See http://www.coderanch.com/how-to/java/ExtendingThreadVsImplementingRunnable for more information.
ibrahim yener wrote:
There is rarely ever a need to extend Thread, and doing so this in case by overriding the start method seems a particularly bad use of it. See http://www.coderanch.com/how-to/java/ExtendingThreadVsImplementingRunnable for more information.
posted 3 years ago
Dear Ulf.
Thanks for valuable information. I didn't aware of it.
Ulf Dittmer wrote:There is rarely ever a need to extend Thread, and doing so this in case by overriding the start method seems a particularly bad use of it. See http://www.coderanch.com/how-to/java/ExtendingThreadVsImplementingRunnable for more information.
Dear Ulf.
Thanks for valuable information. I didn't aware of it.
