StepDetection with API Level detection

decides between my own stepDetection method and the stepDetection
Sensor by googles API Level 19 and higher