title: How can I configure the sensors (Accelerometer or gyroscope) to do something when the user shakes or rotate the phone?
body: <p>How can I configure the sensors (Accelerometer or gyroscope) to do something when the user shakes or rotate the phone?</p>
  <p>I want to show a new string each time the user shakes the phone.</p>
  <p>Also I need a button to start and finish the sensors &quot;action&quot;.                   Thanks!!!!!!</p>