Wink [Q]Help about the camera and rotatres sensor

Hello, I am trying to get help to you

First. I have a problem because of the Nexus 5 camera
If I take a picture when vibration occurs
Shaking out photo

I saw this problem, I think OIS camera problems.
How do you guys think?

Second.
When an alert occurs, the screen rotates

Because of this error, getting the game to penalties.

I wonder how to solve this problem