Trouble using a sensor
<p>been Trying to setup a simple android app to read from the accelerometer. Whenever I run the app on the simulator it freezes - it does not even load the UI.</p>

<p>After sifting through the source, i found that the program is actually hanging at the point when I attempt to get a handle to the sensorManager. In the Line below:</p>

<pre><code>mSensorManager = (SensorManager) getSystemService(Context.SENSOR_SERVICE);
</code></pre>

<p>this is within the onCreate callback function.</p>

<p>What would cause this function to fail? </p>

<p>**I have already configured the device (on the AVD simulator) with an accelerometer. I will also use the Sensor-Simulator (an external java program) to simulate acceleration.</p>
