Android App Development: How to make an activity fullscreen

In order to make an activity full screen simply add the following lines to the onCreate() method as follows:

[cc lang=”java”]

// make full screen
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

[/cc]

Leave a Reply

Your email address will not be published. Required fields are marked *