Display no Notification Bar - Android User Interface

Android examples for User Interface:Display

Description

Display no Notification Bar

Demo Code


//package com.java2s;
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);
    }//www. j  a  v a 2s. c  o  m
}

Related Tutorials