How to make an application to run in portrait mode only
<p>In my application If i want to restrict an activity to work in portrait mode only then i have to write <code>android:screenOrientation="portrait"</code> in the manifest file against activity tag. If I want to force all activity to work in portrait mode then I have to write the same in all activity. Is there any application-wise setting so that I need not have to write this in all activities. How to make an application to run in portrait mode only</p>

<h2>I am using the following now</h2>

<pre><code>        &lt;activity
        android:screenOrientation="portrait"
        android:configChanges="keyboardHidden|orientation"
        android:name=".MyActivity"&gt;&lt;/activity&gt;
</code></pre>
