When I run this piece of code on my phone, everything works fine, yet when I run it on the emulator, the screen of the emulator goes black and nothing after that statement works (gets executed):
manager = (SensorManager) this.game.getSystemService(Context.SENSOR_SERVICE);
You may also want to take a look at the this post. It’s straight from Android’s Xav.
http://tools.android.com/recent/sensoremulation
It should have all the information that you are looking for.