Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Looking at the AndroidManifest.xml (<a href="http://code.google.com/p/android-vnc-viewer/source/browse/trunk/androidVNC/AndroidManifest.xml" rel="noreferrer">link</a>), on line 9:</p> <pre><code>&lt;activity android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden" android:name="VncCanvasActivity"&gt; </code></pre> <p>This line specifies the <code>screenOrientation</code> as landscape, but author goes further in overriding any screen orientation changes with <code>configChanges="orientation|keyboardHidden"</code>. This points to a overridden function in VncCanvasActivity.java.</p> <p>If you look at VncCanvasActivity, on line 109 is the overrided function:</p> <pre><code>@Override public void onConfigurationChanged(Configuration newConfig) { // ignore orientation/keyboard change super.onConfigurationChanged(newConfig); } </code></pre> <p>The author specifically put a comment to ignore any keyboard or orientation changes.</p> <hr> <p>If you want to change this, you can go back to the AndroidManifest.xml file shown above, and change the line to:</p> <pre><code>&lt;activity android:screenOrientation="sensor" android:name="VncCanvasActivity"&gt; </code></pre> <p>This should change the program to switch from portrait to landscape when the user rotates the device.</p> <p>This may work, but might mess up how the GUI looks, depending on how the layout were created. You will have to account for that. Also, depending on how the activities are coded, you may notice that when screen orientation is changed, the values that were filled into any input boxes disappear. This also may have to be handled.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload