Making our application accessing full screen in android activity

If you wish an activity of  your application to take entire screens of the phone , use below lines of code in the starting of onCreate() method of that activity.

               getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                                                 WindowManager.LayoutParams.FLAG_FULLSCREEN);


              requestWindowFeature(Window.FEATURE_NO_TITLE);



By doing so even phone status  bar (Battery level, signal level) will not appear..mean to say your activity will cover entire screen.

No comments:

Post a Comment