title: How to set android:screenOrientation="portrait" for Camera
body: <p>I am using Samsung Galaxy Note to run a phonegap application.
  When I take picture, I can see that screen rotates just before entering camera.
  How can I disable this?</p>
  
  <p>I have tried to force portrait orientation on both, the main thread &amp; camera activity,
  but those do not seem to work:</p>
  
  <pre><code>&lt;application android:icon="@drawable/icon" android:label="@string/app_name"
      android:debuggable="true"&gt;
      &lt;activity android:name=".App" android:windowSoftInputMode="adjustPan" android:screenOrientation="portrait"
                android:label="@string/app_name" android:configChanges="orientation|keyboardHidden"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name="com.phonegap.DroidGap" android:label="@string/app_name" 
                android:configChanges="orientation|keyboardHidden"&gt;
          &lt;intent-filter&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
      &lt;activity android:name="com.android.camera.Camera"
              android:screenOrientation="portrait"&gt;
      &lt;/activity&gt;
  &lt;/application&gt;
  </code></pre>