Apps go portrait and then landscape unexpectedly
Well, I believe the easiest way for you to avoid that would be to disable auto-rotate in your phone.
The automatic rotation tool is very sensitive, based on accelerometer, and some users complain that Motorola's is not so good. You may try also to calibrate it using an app like Accelerometer Calibration Free or maybe following the tips on this tutorial.