Home > Tricks & Tips > Display application fullscreen

Display application fullscreen

There will be times you want your application to display in full, that is, full-screen.



The trick is very simple😀

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        // set full-screen
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);

Hope you enjoy it!

Pete Houston

  1. May 29, 2014 at 7:35 am

    I just like the valuable information you provide for your articles.
    I will bookmark your weblog and test once more here regularly.
    I am rather certain I will learn lots of new stuff
    right here! Good luck for the next!

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: