title: Detect shaking of device in left or right direction in android?
body: <p>I want to use SensorManager but for detecting Shaking of device in left or right direction, I don't know how to detect shaking of device is in right direction or in left direction. I have following question:</p>
  
  <ul>
  <li><p>How to implement shaking of device using SensorManager?</p></li>
  <li><p>How can I detect in which direction shaking of device is?</p></li>
  </ul>