0

I'm new to this forum, and first of all, i apologize for my English,

I have a question about Android 6.0.1, I'm customizing the operating system with the source codes for the IMX6 board. It's possible to remove or hide the "status bar" (notification bar) on the top of the operating system by editing the build.prop file or others files?

Thank you in advance,

Phykrex
  • 11
  • 2
  • Welcome to [Stack Overflow](http://stackoverflow.com/) ! Please read [How to Ask Question](http://stackoverflow.com/help/how-to-ask) and provide a [Minimal, Complete, and Verifiable example](http://stackoverflow.com/help/mcve) ! – Saurabh Bhandari Jul 19 '17 at 10:09

2 Answers2

3
    public class WelcomeActivity extends AppCompatActivity{

           @Override
        protected void onCreate(@Nullable Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);

            requestWindowFeature(Window.FEATURE_NO_TITLE);
    this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
setContentView(R.layout.activity_welcome);
    }
    }
Kamlesh
  • 407
  • 1
  • 3
  • 17
0

write this code in activity's onCreate method

   

    @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);
            setContentView(R.layout.activity_splash); 
        }