Code to check if phone is tapped