"share" Schindler iTOP4412 Development board-android System screen rotation settings

Source: Internet
Author: User
<span id="Label3"></p><p><p><br></p></p><p><p>1.1 <span style="font-family: 宋体">Overview</span></p></p><p><p>Android4.0<span style="font-family: 宋体">,</span><span style="font-family: Times New Roman">Androd4.4</span> <span style="font-family: 宋体">Source code can be compiled into mobile phone mode and tablet mode, for the</span> <span style="font-family: Times New Roman">iTop4412</span> <span style="font-family: 宋体">Development Platform</span></p></p><p><p>The <span style="font-family: Times New Roman">Android</span> <span style="font-family: 宋体">system is compiled by default into tablet Mode. Customers need to switch screens based on their product design and application environment</span> .</p></p><p><p>Display direction, or a fixed good one display direction, such as a display with a different resolution in the product, or a display</p></p><p><p>In the product of the fixed direction of change <span style="font-family: Times New Roman">, etc.,</span> <span style="font-family: 宋体">all need to perform screen rotation function. So how to set the rotation of the screen</span></p></p><p><p>it? We offer two ways to meet the needs of our Customers.</p></p><p><p></p></p><p><p>1.2 <span style="font-family: 宋体">Install screen rotation</span> <span style="font-family: Times New Roman">APK</span></p></p><p><p>The <span style="font-family: Times New Roman">Android4.4</span> <span style="font-family: 宋体">Image </span>released by Schindler for the company contains a <span style="font-family: Times New Roman">setorientation.apk</span> <span style="font-family: 宋体">application that</span></p></p><p><p>Adjusts the rotation angle of the screen <span style="font-family: Times New Roman"></span>, such as the<span style="font-family: 宋体">°. </span> <span style="font-family: Times New Roman"></span><span style="font-family: 宋体">. </span> <span style="font-family: Times New Roman"></span>Rotate in the direction of the<span style="font-family: 宋体">°. </span></p></p><p><p><span style="font-family: 宋体"><br></span></p></p><p><p><span style="font-family: 宋体"><br></span></p></p><p><p></p></p><p><p></p></p><p><p>Before executing the <span style="font-family: Times New Roman">set Orientation</span> <span style="font-family: 宋体">application, You need to set the screen orientation from the lock state to the active rotation:</span></p></p><p><p>Swipe down from top to bottom in the upper-right corner of the screen to show a drop-down menu:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>Indicates that you are adjusting to your own active rotation state:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>After setup, we perform the screen orientation setup software <span style="font-family: Times New Roman">setorientation:</span></p></p><p><p>For example, the software can set the screen to <span style="font-family: Times New Roman">Landscape</span> <span style="font-family: 宋体">mode and </span> <span style="font-family: Times New Roman">Portrait</span> <span style="font-family: 宋体">mode as Seen. </span> <span style="font-family: Times New Roman">Landscape</span> <span style="font-family: 宋体">for screen</span></p></p><p><p>The long side of the screen is used as the top and bottom, and the<span style="font-family: Times New Roman">Portrait</span> <span style="font-family: 宋体">is the top and bottom of the side with the short size. That's What we always say.</span></p></p><p><p>Horizontal screen display, Vertical screen display.</p></p><p><p></p></p><p><p></p></p><p><p><br></p></p><p><p></p></p><p><p>At the moment our screen is displayed in horizontal Screen. We need to set the screen to vertical display: select <span style="font-family: Times New Roman">Portrait</span> <span style="font-family: 宋体">mode</span></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>can also be set to <span style="font-family: Times New Roman">Portrait (reserve)</span> <span style="font-family: 宋体">mode. That is</span> , <span style="font-family: Times New Roman">Portrait</span> <span style="font-family: 宋体">mode and then rotate </span> <span style="font-family: Times New Roman"></span> the <span style="font-family: 宋体">degree of saturation:</span></p></p><p><p></p></p><p><p></p></p><p><p>After the screen rotation angle is set. You need to set the screen orientation state to locked, just set the lock state,</p></p><p><p>The desktop form rotates immediately after you start the system Again. Otherwise it will take a while for the rotation to Occur.</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>1.3 <span style="font-family: 宋体">Changing the configuration file</span></p></p><p><p>In addition to using the exclusive <span style="font-family: Times New Roman">APK</span> to <span style="font-family: 宋体">set the screen rotation angle, you can also change</span> the properties of <span style="font-family: Times New Roman">Android</span> to <span style="font-family: 宋体">achieve the same function. </span></p></p><p><p></p></p><p><p>Android4.0<span style="font-family: 宋体">,</span>There are build.pro files in the<span style="font-family: Times New Roman">Android4.4</span> <span style="font-family: 宋体">version number</span> <span style="font-family: Times New Roman"></span> <span style="font-family: 宋体">, which is located </span>in <span style="font-family: Times New Roman">/system/</span> <span style="font-family: 宋体">folder Below. This file</span></p></p><p><p>For the <span style="font-family: Times New Roman">Android</span> <span style="font-family: 宋体">Property profile, We can</span> <span style="font-family: 宋体">make the screen rotate</span> by changing the <span style="font-family: Times New Roman">ro.sf.hwrotation</span> option in the File:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-family: 宋体">Before you edit this file in the Android4.4 System. You need to enter the SU command in the Debug serial terminal </span> <span style="font-family: Times New Roman"></span> , <span style="font-family: 宋体">and then enter,</span></p></p><p><p>This way we have superuser privileges and can <span style="font-family: 宋体">change</span> the <span style="font-family: Times New Roman">build.pro</span> file through <span style="font-family: Times New Roman">vi</span> <span style="font-family: 宋体">. otherwise, There is no permission Change. </span></p></p><p><p>For example, as seen in:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>Note: the VI Editing tool is integrated into the published <span style="font-family: Times New Roman">Android4.4</span> <span style="font-family: 宋体">version number</span> <span style="font-family: Times New Roman"></span> <span style="font-family: 宋体">and can be used Directly. </span></p></p><p><p></p></p><p><p>After you open the properties File. Find <span style="font-family: Times New Roman">ro.sf.hwrotation</span> <span style="font-family: 宋体">key options, change to the required rotation angle, here support</span> <span style="font-family: Times New Roman">0</span><span style="font-family: 宋体">°,</span></p></p><p><p>°<span style="font-family: 宋体"></span><span style="font-family: Times New Roman"></span>,<span style="font-family: 宋体">°, rotate, For example to see the</span></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>Rotation angle changed into <span style="font-family: Times New Roman"></span>the<span style="font-family: 宋体">°:</span></p></p><p><p><span style="font-family: 宋体"><br></span></p></p><p><p><span style="font-family: 宋体"><br></span></p></p><p><p></p></p><p><p></p></p><p><p>After the change is complete, save the exit and start the system again:</p></p><p><p></p></p><p><p><br></p></p><p><p></p></p><p><p>Note:<span style="font-family: Times New Roman">Android4.4.4</span> <span style="font-family: 宋体">native system does not support </span> <span style="font-family: Times New Roman">ro.sf.hwrotation</span> <span style="font-family: 宋体">configuration by default, we move in</span> <span style="font-family: Times New Roman">Android4.4.4</span> <span style="font-family: 宋体">Code </span></p></p><p><p>This feature has been planted to make it easy for everyone to Use. <span style="font-family: Times New Roman">Android4.0.3</span> <span style="font-family: 宋体">native code supports this option Configuration. </span></p></p><p><p></p></p><p><p>In addition, you want to burn to the development platform of the image by default is the effect of rotation, then need to edit:</p></p><p><p>Device/samsung/smdk4x12/system.prop <span style="font-family: 宋体">config file, compile</span> <span style="font-family: Times New Roman">Android</span> <span style="font-family: 宋体">code, Burn write</span> <span style="font-family: Times New Roman">system.img</span> <span style="font-family: 宋体">to open </span></p></p><p><p>Hair platform:</p></p><p><p></p></p><p><p></p></p><p><p></p></p><p><p>Android4.0<span style="font-family: 宋体">,</span><span style="font-family: Times New Roman">Android4.4</span> <span style="font-family: 宋体">are both for this file, and the folder path is the Same. </span></p></p><p><p></p></p><p><p></p></p><p><p>1.4 <span style="font-family: 宋体">Summary</span></p></p><p><p>There are two ways to rotate the screen, each of which has its own characteristics. Use the screen to rotate <span style="font-family: Times New Roman">APK</span><span style="font-family: 宋体">, support</span> <span style="font-family: Times New Roman">0</span><span style="font-family: 宋体">,</span><span style="font-family: Times New Roman"></span><span style="font-family: 宋体"></span><span style="font-family: Times New Roman"></span><span style="font-family: 宋体"></span><span style="font-family: Times New Roman"></span> <span style="font-family: 宋体"> Degrees Four Directions</span></p></p><p><p>of Rotation. however, it is necessary to use the software to set, of course, the first time software settings. After the system starts, it will take its own initiative</p></p><p><p>Angle Rotation. In addition, the <span style="font-family: Times New Roman">android</span> <span style="font-family: 宋体">startup animation cannot be rotated during the system startup, and the system only has access to the table</span></p></p><p><p>Rotation occurs on the Face.</p></p><p><p></p></p><p><p>When using the configuration item for screen rotation<span style="font-family: Times New Roman"></span> , <span style="font-family: 宋体">the animation of the Android system during the boot process has been rotated to enter</span></p></p><p><p>After the desktop you do not feel the rotation action, more suitable for product applications, additional configuration item rotation currently does not support <span style="font-family: Times New Roman"></span> the</p></p><p><p>Only <span style="font-family: Times New Roman">0</span>of<span style="font-family: 宋体">the</span><span style="font-family: Times New Roman"></span>support<span style="font-family: 宋体">. </span> <span style="font-family: Times New Roman"></span> <span style="font-family: 宋体">The rotation of the three angles of a degree. </span></p></p><p><p>The above is the two ways of screen rotation, where the screen rotation does not consider the gravity sensor Factor. This feature is based on</p></p><p><p>Android <span style="font-family: 宋体">System Product Customer needs, Hope this document can solve your screen angle rotation problem in product DESIGN. </span></p></p><p><p></p></p> <p><p>"share" Schindler iTOP4412 Development board-android System screen rotation settings</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.