How to Disable the Android Accelerometer
Most Android devices feature a large touch screen that can be viewed in both portrait and landscape mode. The accelerometer, when enabled, automatically rotates your screen when the device is turned. Often the accelerometer is set to "On" right out of the box. If you don't like the automatic orientation feature, you can disable it so that the screen stays in portrait mode. For most devices, this is easily accomplished by adjusting an option in the "Settings" menu.
Touch the "Applications" icon to launch your full list of applications.
Touch "Settings." A list of options appears -- touch "Sound and Display."
Scroll through the list of options until you see "Orientation." Touch the check box next to "Orientation" to remove the check box and disable the accelerometer.