Disable auto change orientation
<p>Below is my code.<br>
I want to set it disable auto change screen orientation.<br>
And enable auto change screen orientation.  </p>

<pre><code>class NewLoad extends AsyncTask&lt;String, String, String&gt; {
        @Override
        protected void onPreExecute() {
            super.onPreExecute();
            progDailog = new ProgressDialog(this);
            progDailog.setMessage("test");
            progDailog.setIndeterminate(false);
            progDailog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
            progDailog.setCancelable(false);
            progDailog.show();
            //set disable auto change
        }

        @Override
        protected String doInBackground(String... aurl) {
            //do something
            return null;
        }

        @Override
        protected void onPostExecute(String unused) {
            super.onPostExecute(unused);
            progDailog.dismiss();
            //set enable auto change
        }
    }
</code></pre>

<p>How can I do it?  </p>
