title: Device Motion API on android should work
body: <p>For some reason, when using a Galaxy S3, I'm able to use the example demo from HTML5Rocks about Device Motion and get acceleration values from the phone's hardware.</p>
  
  <p>Demo: <a href="http://www.html5rocks.com/en/tutorials/device/orientation/devicemotionsample.html" rel="nofollow">http://www.html5rocks.com/en/tutorials/device/orientation/devicemotionsample.html</a></p>
  
  <p>But I can't seem to get the code working on my own website.  It should just be:</p>
  
  <pre><code>if((window.DeviceMotionEvent)||('listenForDeviceMovement'in window))    
  {window.addEventListener('devicemotion',deviceMotionHandler3,false);
  
  function deviceMotionHandler3(eventData){var     
  acceleration=eventData.accelerationIncludingGravity;
  </code></pre>
  
  <p>...</p>
  
  <p>Any ideas why this code would work for the website above, but not when I copy it into a blank html page?</p>