A simple way to detect a shake in android.