I recently wanted an Android shake detection library and came across lots of examples like this which are great for explaining the basics of how the sensor system works. Unfortunately, what they detect is simply a fast acceleration. Simply passing the phone to someone else quickly could trigger a “shake”. So let’s develop a better one.

Why do we still have to deal with phone numbers? Why are we still having to remember long numbers, or having to go and look up the number for a pizza place? Or telling someone our number, and checking they got it right? Or looking up our own number, because we can’t remember it? It’s a pain isn’t it?