Thursday, September 02, 2010

Android - UI Sleep

I have lately (since I got my HTC Desire phone) been tinkering a little with developing a small application for Android. Since my daughter is learning the multiplication tables and since she finds my phone "cool" then making this little app would be a good starting point.

I am here of course ignoring the fact that there are more than a hundred apps similar available on the Market.

When developing the first version of this app I ran into an interesting point about UI responsiveness and how I could do a "sleep()" function.

The flow is:

The problem is presented

The user answers by clicking on of the available buttons

Mark the problem green for a second before continuing if the answer was correct

If the asnwer was incorrect mark the problem red until the correct answer is chosen