set Activity to Full Screen - Android android.app

Android examples for android.app:Screen

Description

set Activity to Full Screen

Demo Code

import android.app.Activity;
import android.content.res.Resources;
import android.view.Window;
import android.view.WindowManager;

public class Main{

    public static void setFullScreen(Activity activity) {
        activity.getWindow().setFlags(/*  w ww .j  a  v  a2  s .  c  o m*/
                WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }

}

Related Tutorials