Solution to full screen modification in Android 4.0

Source: Internet
Author: User

Recently, I am working on a flat panel. The back home on the bottom and the STATUS_BAR on the battery WIFI cannot be removed after full screen setting. After searching for information, I found a better method. I would like to share it here.
Method 1 (program code ):
Add a line of statement in OnCreate
Copy codeThe Code is as follows: getWindow (). getDecorView (). setSystemUiVisibility (View. SYSTEM_UI_FLAG_LOW_PROFILE );

Before setContentView.
An outdated method:
Copy codeThe Code is as follows: getWindow (). getDecorView (). setSystemUiVisibility (View. STATUS_BAR_HIDDEN );

Some may not have the same 4.0API.
Copy codeThe Code is as follows: getWindow (). getDecorView (). setSystemUiVisibility (View. SYSTEM_UI_FLAG_SHOW_FULLSCREEN );

Use this for mobile phones:
Copy codeThe Code is as follows: getWindow (). getDecorView (). setSystemUiVisibility (View. SYSTEM_UI_FLAG_HIDE_NAVIGATION );

This is the code method, but there is still a problem, because the source code explanation has this sentence
Copy codeThe Code is as follows: * There is a limitation: because navigation controls are so important, the least user
* Interaction will cause them to reappear immediately.

That is to say, this thing is very important and will still appear! I tried it and found that when popupwindow and Dialog are displayed, the following black bars are reproduced.
Next we will introduce the second method. Now we will change the flat root to two files.
Copy codeThe Code is as follows: $ adb remount
$ Adb shell mv/system/app/SystemUI. odex/system/app/SystemUI. odexold
$ Adb shell mv/system/app/SystemUI.apk old
$ Adb reboot

Or rename the two files in your next RE File Manager and restart them. In this way, you will not have the following status bar in any program, including in standby mode!

Related Article

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.