crashes Application class
<p>I sit with the problem. Here's the thing.
I am writing an application to display pdf files.</p>

<p>The process of rendering files, runs parallel to the main stream. For very frequent turns the screen comes a time when all the objects in my class application become null.</p>

<p>how do I disable screen rotation and wait for the completion of rendering the page?</p>

<p>I tried used </p>

<blockquote>
  <p>setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
  setActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR);</p>
</blockquote>

<p>but in setting the screen SCREEN_ORIENTATION_SENSOR, the screen orientation is changed several times</p>
