Android gsensor is adjusted to four directions

Source: Internet
Author: User

From: // http://blog.csdn.net/pkigavin/article/details/8747209

 

According to/build/tools/buildinfo. SH: Echo "Ro. build. characteristics = $ target_aapt_characteristics "to find the target_aapt_characteristics = default place In the MK file (forgot the name) in the build folder. Change to tablet. You can try it.


In the build \ core \ product_config.mk file, replace target_aapt_characteristics with tablet.

Ro. SF. LCD _density = changed to 160


Rotation allowed
Search
<Bool name = "config_allowallrotations"> false </bool>
Changed:
<Bool name = "config_allowallrotations"> true </bool>
CRT screen off
Search
<Bool name = "config_animatescreenlights"> false </bool>
Changed:
<Bool name = "config_animatescreenlights"> true </bool>
Virtual key
Search
<Bool name = "config_shownavigationbar"> false </bool>
Changed:
<Bool name = "config_shownavigationbar"> true </bool>
Disable Input Method Switching
Search
<Bool name = "show_ongoing_ime_switcher"> true </bool>
Changed:
<Bool name = "show_ongoing_ime_switcher"> false </bool>
Do not wake up the screen when you unplug the charger
Search
<Bool name = "config_unplugturnsonscreen"> true </bool>
Changed:
<Bool name = "config_unplugturnsonscreen"> false </bool>
Lock screen Rotation
Search
<Bool name = "config_enablelockscreenrotation"> false </bool>
<Bool name = "lockscreen_isportrait"> true </bool>
Changed:
<Bool name = "config_enablelockscreenrotation"> true </bool>
<Bool name = "lockscreen_isportrait"> false </bool>

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.