Code to detect the air gestures on devices like Samsung S4.