Android application with shake detector