 <p>I would say you try a total clean reinstall/rebuild with cordova. First off all you have to install cordova for that. If you want to know, how to get started with that you should have a look into the cordova documentation: <a href="http://cordova.apache.org/docs/en/3.5.0/guide_cli_index.md.html#The%20Command-Line%20Interface" rel="nofollow">Cordova CLI-Docs</a></p> <p>After you installed cordova, you enter the Terminal and type in the following commands:</p> <ul> <li>cd ~/desktop</li> <li>cordova create test com.example.test test</li> <li>cd test</li> <li>cordova platform add android</li> <li>cordova plugin add org.apache.cordova.device-motion</li> <li>cordova build</li> </ul> <p>Open the builded project in Eclipse and add </p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;Acceleration Example&lt;/title&gt; &lt;script type="text/javascript" charset="utf-8" src="cordova.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" charset="utf-8"&gt; // Wait for device API libraries to load // document.addEventListener("deviceready", onDeviceReady, false); // device APIs are available // function onDeviceReady() { navigator.accelerometer.getCurrentAcceleration(onSuccess, onError); } // onSuccess: Get a snapshot of the current acceleration // function onSuccess(acceleration) { alert('Acceleration X: ' + acceleration.x + '\n' + 'Acceleration Y: ' + acceleration.y + '\n' + 'Acceleration Z: ' + acceleration.z + '\n' + 'Timestamp: ' + acceleration.timestamp + '\n'); } // onError: Failed to get the acceleration // function onError() { alert('onError!'); } &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;h1&gt;Example&lt;/h1&gt; &lt;p&gt;getCurrentAcceleration&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Save all and deploy the project to your device. And let me know, if this worked or not.</p>