Turn off no Notification Bar - Android android.view

Android examples for android.view:Window

Description

Turn off no Notification Bar

Demo Code

import android.app.Activity;
import android.view.Window;
import android.view.WindowManager;

public class Main{

    public static void noNotificationBar(Activity activity) {
        final Window win = activity.getWindow();
        win.setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    }/*from   w ww .j a v  a 2s.c  om*/

}

Related Tutorials